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
TL;DR
Quantum LEGO Learning presents a modular, architecture-agnostic framework for hybrid quantum–classical models that partitions learning into a frozen classical feature block and a trainable VQC head, formalized as $f_{ m lg} = \widehat{f}_{v} \circ f_{c}$. The authors derive block-wise generalization bounds $\mathcal{L}(f_{\rm lg}) = \epsilon_{\rm app} + \epsilon_{\rm est} + \epsilon_{\rm opt}$, showing the approximation error depends chiefly on the classical encoder while estimation and optimization relate to the quantum block, enabling qubit-count independence in the approximation term. They demonstrate noise resilience and hardware viability through gradient estimation on quantum hardware and experiments on quantum dot classification and genome TFBS tasks, including IBM Heron hardware. The work offers a scalable, interpretable blueprint for near-term quantum learning, outlining explicit trade-offs and conditions under which quantum blocks provide advantages, and suggesting extensions to adaptive classical blocks and structured quantum heads.
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.
