[Paper Review] QOC: Quantum On-Chip Training with Parameter Shift and Gradient Pruning
QOC presents the first experimental demonstration of scalable, on-chip training for Parameterized Quantum Circuits (PQCs) using parameter shift gradients on real NISQ devices. By introducing probabilistic gradient pruning to filter out noisy, low-magnitude gradients, QOC achieves over 90% accuracy on 2-class and 60% on 4-class image classification tasks, matching noise-free simulation performance while improving robustness and reducing circuit runs by up to 2×.
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 naive 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.
Motivation & Objective
- To enable practical, scalable training of Parameterized Quantum Circuits (PQCs) directly on real quantum hardware, avoiding exponential-cost classical simulations.
- To address the challenge of quantum noise in NISQ devices that degrades gradient fidelity and harms training convergence.
- To improve training robustness and efficiency by selectively computing only reliable gradients, reducing the number of required quantum circuit runs.
- To demonstrate that on-chip training with gradient pruning can achieve accuracy comparable to noise-free simulations on real quantum machines.
Proposed method
- Uses parameter shift rule to compute exact quantum gradients directly on NISQ hardware, enabling on-chip backpropagation without classical simulation.
- Proposes probabilistic gradient pruning that identifies and excludes gradients with high relative error, particularly small gradients prone to noise.
- Employs a stochastic sampling strategy based on accumulated gradient magnitudes to prioritize high-reliability gradients for optimization.
- Introduces a window-based accumulation mechanism for gradient magnitudes to stabilize pruning decisions over time.
- Applies the Adam optimizer with a cosine learning rate scheduler to enhance convergence during on-chip training.
- Deploys the framework on 5 real quantum devices (e.g., ibmq_jakarta, ibmq_santiago) for end-to-end evaluation on QNN benchmarks.
Experimental results
Research questions
- RQ1Can parameter shift gradients be effectively and efficiently computed on real NISQ quantum hardware for scalable PQC training?
- RQ2How do quantum noise and gate errors affect gradient fidelity, particularly for small-magnitude gradients?
- RQ3Can probabilistic gradient pruning reduce the impact of noisy gradients and improve training accuracy without increasing circuit runs?
- RQ4To what extent can on-chip PQC training with pruning match the performance of noise-free classical simulations?
- RQ5What is the scalability of on-chip training in terms of runtime and memory cost as qubit count increases?
Key findings
- On-chip training with QOC achieves over 90% accuracy on 2-class image classification tasks and over 60% on 4-class tasks using real quantum hardware.
- Probabilistic gradient pruning improves PQC accuracy by up to 7% compared to training without pruning, enhancing robustness against quantum noise.
- The method reduces the number of required quantum circuit runs by up to 2× while maintaining or improving accuracy, improving training efficiency.
- Runtime and memory costs for on-chip training scale nearly linearly with qubit count, demonstrating clear quantum advantage over classical simulation beyond 27 qubits.
- Classical simulation costs grow exponentially with qubit count, reaching intractable levels (thousands of GB) for circuits with more than 24 qubits, while on-chip execution remains feasible.
- Probabilistic pruning outperforms deterministic pruning by 1–7% in accuracy, as it reduces gradient sampling bias and preserves optimization diversity.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.