QOC: Quantum On-Chip Training with Parameter Shift and Gradient Pruning

被引:12
|
作者
Wang, Hanrui [1 ]
Li, Zirui [2 ]
Gu, Jiaqi [3 ]
Ding, Yongshan [4 ]
Pan, David Z. [3 ]
Han, Song [1 ]
机构
[1] MIT, Cambridge, MA USA
[2] Shanghai Jiao Tong Univ, Shanghai, Peoples R China
[3] Univ Taxes Austin, Austin, TX USA
[4] Yale Univ, New Haven, CT USA
来源
PROCEEDINGS OF THE 59TH ACM/IEEE DESIGN AUTOMATION CONFERENCE, DAC 2022 | 2022年
关键词
D O I
10.1145/3489517.3530495
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
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.
引用
收藏
页码:655 / 660
页数:6
相关论文
共 50 条
  • [1] A Layer-wise Training and Pruning Method for Memory Efficient On-chip Learning Hardware
    Lew, Dongwoo
    Park, Jongsun
    2022 19TH INTERNATIONAL SOC DESIGN CONFERENCE (ISOCC), 2022, : 97 - 98
  • [2] Efficient stochastic parallel gradient descent training for on-chip optical processor
    Yuanjian Wan
    Xudong Liu
    Guangze Wu
    Min Yang
    Guofeng Yan
    Yu Zhang
    Jian Wang
    Opto-Electronic Advances, 2024, 7 (04) : 7 - 18
  • [3] Efficient stochastic parallel gradient descent training for on-chip optical processor
    Wan, Yuanjian
    Liu, Xudong
    Wu, Guangze
    Yang, Min
    Yan, Guofeng
    Zhang, Yu
    Wang, Jian
    OPTO-ELECTRONIC ADVANCES, 2024, 7 (04)
  • [4] On-chip Nonlinear Activation and Gradient Functions for Photonic Backpropagation Training and Inference
    Ashtiani, F.
    Idjadi, M. H.
    2023 IEEE PHOTONICS CONFERENCE, IPC, 2023,
  • [5] On-chip quantum teleportation
    Gates, J. C.
    Kundys, D.
    Smith, P. G. R.
    2013 CONFERENCE ON LASERS AND ELECTRO-OPTICS EUROPE AND INTERNATIONAL QUANTUM ELECTRONICS CONFERENCE (CLEO EUROPE/IQEC), 2013,
  • [6] ASIC USERS SHIFT ANALOG ON-CHIP
    MEYER, E
    COMPUTER DESIGN, 1990, 29 (05): : 67 - &
  • [7] On-chip temperature gradient liquid chromatography
    Shih, CY
    Chen, Y
    Xie, J
    He, Q
    Tai, YC
    MEMS 2005 Miami: Technical Digest, 2005, : 782 - 785
  • [8] On-chip temperature gradient interaction chromatography
    Shih, CY
    Chen, Y
    Xie, J
    He, Q
    Tai, YC
    JOURNAL OF CHROMATOGRAPHY A, 2006, 1111 (02) : 272 - 278
  • [9] On-Chip Quantum Communication Devices
    Trenti, Alessandro
    Achleitner, Martin
    Prawits, Florian
    Schrenk, Bernhard
    Conradi, Hauke
    Kleinert, Moritz
    Incoronato, Alfonso
    Zanetto, Francesco
    Zappa, Franco
    Di Luch, Ilaria
    Cirkinoglu, Ozan
    Leijtens, Xaveer
    Bonardi, Antonio
    Bruynsteen, Cedric
    Yin, Xin
    Kiessler, Christian
    Herrmann, Harald
    Silberhorn, Christine
    Bozzio, Mathieu
    Walther, Philip
    Thiel, Hannah C.
    Weihs, Gregor
    Huebel, Hannes
    JOURNAL OF LIGHTWAVE TECHNOLOGY, 2022, 40 (23) : 7485 - 7497
  • [10] Ultimate On-Chip Quantum Amplifier
    Astafiev, O. V.
    Abdumalikov, A. A., Jr.
    Zagoskin, A. M.
    Pashkin, Yu. A.
    Nakamura, Y.
    Tsai, J. S.
    PHYSICAL REVIEW LETTERS, 2010, 104 (18)