QOC: quantum on-chip training with parameter shift and gradient pruning
Hanrui Wang, Zirui Li, Jiaqi Gu, Yongshan Ding, David Z. Pan, Song Han
Abstract
Parameterized Quantum Circuits (PQC) are drawing increasing research interest thanks to its potential to achieve quantum advantages on near-term Noisy Intermediate Scale Quantum (NISQ) hardware. In order to achieve scalable PQC learning, the training process needs to be offloaded to real quantum machines instead of using exponential-cost classical simulators. One common approach to obtain PQC gradients is parameter shift whose cost scales linearly with the number of qubits. We present QOC, the first experimental demonstration of practical on-chip PQC training with parameter shift. Nevertheless, we find that due to the significant quantum errors (noises) on real machines, gradients obtained from naïve parameter shift have low fidelity and thus degrading the training accuracy. To this end, we further propose probabilistic gradient pruning to firstly identify gradients with potentially large errors and then remove them. Specifically, small gradients have larger relative errors than large ones, thus having a higher probability to be pruned. We perform extensive experiments with the Quantum Neural Network (QNN) benchmarks on 5 classification tasks using 5 real quantum machines. The results demonstrate that our on-chip training achieves over 90% and 60% accuracy for 2-class and 4-class image classification tasks. The probabilistic gradient pruning brings up to 7% PQC accuracy improvements over no pruning. Overall, we successfully obtain similar on-chip training accuracy compared with noise-free simulation but have much better training scalability. The QOC code is available in the TorchQuantum library.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext c017da64-057c-438e-b9f5-7ed889d96c34Cited by top-tier papers7
- QuantumNAT: quantum noise-aware training with noise injection, quantization and normalizationHanrui Wang, Jiaqi Gu, Yongshan Ding, Zirui Li et al.DAC 2022 · 60 citations
- Hybrid Gate-Pulse Model for Variational Quantum AlgorithmsZhiding Liang, Zhixin Song, Jinglei Cheng, Zichang He et al.DAC 2023 · 19 citations
- Elivagar: Efficient Quantum Circuit Search for ClassificationSashwat Anagolum, Narges Alavisamani, Poulami Das, Moinuddin K. Qureshi et al.ASPLOS 2024 · 19 citations
- Q-Pilot: Field Programmable Qubit Array Compilation with Flying AncillasHanrui Wang, Daniel Bochen Tan, Pengyu Liu, Yilian Liu et al.DAC 2024 · 15 citations
- TITAN: A Trajectory-Informed Technique for Adaptive Parameter Freezing in Large-Scale VQEYifeng Peng, Xinyi Li, Samuel Yen-Chi Chen, Kaining Zhang et al.NeurIPS 2025 · 8 citations
Builds on6
- SpAtten: Efficient Sparse Attention Architecture with Cascade Token and Head PruningHanrui Wang, Zhekai Zhang, Song HanHPCA 2021 · 412 citations
- SpArch: Efficient Architecture for Sparse Matrix MultiplicationZhekai Zhang, Hanrui Wang, Song Han, William J. DallyHPCA 2020 · 280 citations
- QuantumNAS: Noise-Adaptive Search for Robust Quantum CircuitsHanrui Wang, Yongshan Ding, Jiaqi Gu, Yujun Lin et al.HPCA 2022 · 199 citations
- QuantumNAT: quantum noise-aware training with noise injection, quantization and normalizationHanrui Wang, Jiaqi Gu, Yongshan Ding, Zirui Li et al.DAC 2022 · 60 citations
- Realistic Fault Models and Fault Simulation for Quantum Dot Quantum CircuitsCheng-Yun Hsieh, Chen-Hung Wu, Chia-Hsien Huang, His-Sheng Goan et al.DAC 2020 · 2 citations
Related papers
- Concentration of Data Encoding in Parameterized Quantum CircuitsGuangxi Li, Ruilin Ye, Xuanqiang Zhao, Xin WangNeurIPS 2022 · 42 citations
- Quantum Deep Equilibrium ModelsPhilipp Schleich, Marta Skreta, Lasse Bjørn Kristensen, Rodrigo A. Vargas-Hernández et al.NeurIPS 2024 · 8 citations
- Exponentially Many Local Minima in Quantum Neural NetworksXuchen You, Xiaodi WuICML 2021 · 67 citations
- On the principles of differentiable quantum programming languagesShaopeng Zhu, Shih-Han Hung, Shouvanik Chakrabarti, Xiaodi WuPLDI 2020 · 11 citations
- Alternating Layered Variational Quantum Circuits Can Be Classically Optimized Efficiently Using Classical ShadowsAfrad Basheer, Yuan Feng, Christopher Ferrie, Sanjiang LiAAAI 2023 · 13 citations
