Quantum LEGO Learning: A Modular Design Principle for Hybrid Artificial Intelligence

Jun Qi, Chao-Han Huck Yang, Pin-Yu Chen, Min-Hsiu Hsieh, Hector Zenil, Jesper Tegner · DOI

Abstract

Hybrid quantum-classical learning models increasingly integrate neural networks with variational quantum circuits (VQCs) to exploit complementary inductive biases. However, many existing approaches rely on tightly coupled architectures or task-specific encoders, limiting conceptual clarity, generality, and transferability across learning settings. In this work, we introduce Quantum LEGO Learning, a modular and architecture-agnostic learning framework that treats classical and quantum components as reusable, composable learning blocks with well-defined roles. Within this framework, a pre-trained classical neural network serves as a frozen feature block, while a VQC acts as a trainable adaptive module that operates on structured representations rather than raw inputs. This separation enables efficient learning under constrained quantum resources and provides a principled abstraction for analyzing hybrid models. We develop a block-wise generalization theory that decomposes learning error into approximation and estimation components, explicitly characterizing how the complexity and training status of each block influence overall performance. Our analysis generalizes prior tensor-network-specific results and identifies conditions under which quantum modules provide representational advantages over comparably sized classical heads. Empirically, we validate the framework through systematic block-swap experiments across frozen feature extractors and both quantum and classical adaptive heads. Experiments on quantum dot classification demonstrate stable optimization, reduced sensitivity to qubit count, and robustness to realistic noise.

Introduction

The integration of classical deep learning with quantum computing holds significant promise for the Noisy Intermediate-Scale Quantum (NISQ) era. However, current hybrid models often function as "black boxes," where the tight coupling of classical and quantum parameters makes it difficult to isolate performance drivers. Furthermore, training these models is plagued by optimization challenges such as "barren plateaus"—regions of vanishing gradients—and the corrupting influence of hardware noise.

Quantum LEGO Learning addresses these challenges by proposing a modular, compositional design principle. By treating quantum and classical components as independent, reusable blocks, the framework enhances the scalability, interpretability, and robustness of hybrid artificial intelligence.

The Quantum LEGO Framework

The core of the framework is the separation of high-dimensional feature extraction from task-specific adaptation. This is achieved through two primary building blocks:

  1. Frozen Classical Feature Block: A heavy-duty, pre-trained classical model (e.g., ResNet or a Tensor-Train Network) processes raw input data. This block is frozen during hybrid training, meaning its weights remain static, effectively serving as a fixed feature extractor.
  2. Trainable Parametric Quantum Block: A Variational Quantum Circuit (VQC) acts as the adaptive "head." It receives structured representations from the classical block via a Tensor Product Encoder (TPE). Only the parameters within this quantum block are updated during training, which significantly simplifies the optimization landscape.
The Quantum LEGO Learning architecture integrates a frozen classical feature extractor with a trainable variational quantum circuit via a Tensor Product Encoder (TPE).

Theoretical Foundations

The authors provide a block-wise generalization theory that mathematically decomposes model error into approximation, estimation, and optimization components. A key insight is the "Qubit Independence Paradox": the model's representational power is primarily determined by the classical feature block, while the quantum block focuses on task adaptation. This suggests that high performance can be achieved with relatively few qubits, a critical advantage for near-term quantum hardware.

Furthermore, decoupling the blocks prevents "destructive interference" between classical and quantum parameter spaces. Because the classical block is frozen, quantum measurement noise is prevented from backpropagating through the entire network, allowing the system to degrade gracefully under noisy conditions.

Experimental Validation

The framework was validated on two high-dimensional tasks: Quantum Dot Charge Stability Diagrams and Genome TFBS (Transcription Factor Binding Site) Prediction.

Key Results

  • Accuracy and Hardware Performance: On the quantum dot task, models using ResNet backbones achieved approximately 97% accuracy in simulations. When deployed on the 156-qubit IBM Heron r2 processor, the models maintained 90–92% accuracy despite physical noise, significantly outperforming standalone quantum models.
  • Efficiency: The framework demonstrated "weak sensitivity" to qubit counts. Reducing the quantum block from 20 to 16 qubits resulted in only marginal performance drops, confirming that the classical block handles the bulk of the representational heavy lifting.
  • Convergence: In genomic tasks, the hybrid models achieved lower loss and higher accuracy faster than classical baselines with equivalent parameter budgets, suggesting that shallow VQCs are inherently better at capturing certain complex data correlations.

Conclusion and Future Work

Quantum LEGO Learning demonstrates that modularity is a powerful tool for hybrid AI. By isolating the quantum component as a plug-and-play module, researchers can achieve stable optimization and noise resilience. While the framework currently relies on the quality of pre-trained classical features, future work will explore more sophisticated non-linear quantum encoders and Bayesian classical blocks to further enhance adaptability.

Summary updated

BibTeX
@misc{qi2026quantum,
  author = {Jun Qi and Chao-Han Huck Yang and Pin-Yu Chen and Min-Hsiu Hsieh and Hector Zenil and Jesper Tegner},
  title = {{Quantum LEGO Learning: A Modular Design Principle for Hybrid Artificial Intelligence}},
  year = {2026},
  eprint = {2601.21780},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.21780},
}
Figure