Reuse & Permissions

It is not necessary to obtain permission to reuse this article or its components as it is available under the terms of the Creative Commons Attribution 4.0 International license. This license permits unrestricted use, distribution, and reproduction in any medium, provided attribution to the author(s) and the published article's title, journal citation, and DOI are maintained. Please note that some figures may have been included with permission from other third parties. It is your responsibility to obtain the proper permission from the rights holder directly for these figures.

Export citation

Export citation

Choose format for download:

Download Citation
  • Letter
  • Open Access

Training variational quantum algorithms with random gate activation

Shuo Liu1, Shi-Xin Zhang2,*, Shao-Kai Jian3,†, and Hong Yao1,‡

  • 1Institute for Advanced Study, Tsinghua University, Beijing 100084, China
  • 2Tencent Quantum Laboratory, Tencent, Shenzhen, Guangdong 518057, China
  • 3Department of Physics & Engineering Physics, Tulane University, New Orleans, Louisiana 70118, USA

  • *shixinzhang@tencent.com
  • †sjian@tulane.edu
  • ‡yaohong@tsinghua.edu.cn

Phys. Rev. Research 5, L032040 – Published 18 September, 2023

DOI: https://doi.org/10.1103/PhysRevResearch.5.L032040

Abstract

Variational quantum algorithms (VQAs) hold great potential for near-term applications and are promising to achieve quantum advantage in practical tasks. However, VQAs suffer from severe barren plateau problems and have a significant probability of being trapped in local minima. In this Research Letter, we propose a training algorithm with random quantum gate activation for VQAs to efficiently address these two issues. This algorithm processes effectively many fewer training parameters than the conventional plain optimization strategy, which efficiently mitigates barren plateaus with the same expressive capability. Additionally, by randomly adding two-qubit gates to the circuit ansatz, the optimization trajectories can escape from local minima and reach the global minimum more frequently due to more sources of randomness. In real quantum experiments, the training algorithm can also reduce the quantum computational resources required and be more quantum noise resilient. We apply our training algorithm to solve variational quantum simulation problems for ground states and present convincing results that showcase the advantages of our strategy, where better performance is achieved by the combination of mitigating barren plateaus, escaping from local minima, and reducing the effect of quantum noise.

View figure in article

Physics Subject Headings (PhySH)

Article Text

Supplemental Material

References (88)

  1. A. Peruzzo, J. McClean, P. Shadbolt, M.-H. Yung, X.-Q. Zhou, P. J. Love, A. Aspuru-Guzik, and J. L. O'Brien, A variational eigenvalue solver on a photonic quantum processor, Nat. Commun. 5, 4213 (2014).
  2. J. R. McClean, J. Romero, R. Babbush, and A. Aspuru-Guzik, The theory of variational hybrid quantum-classical algorithms, New J. Phys. 18, 023023 (2016).
  3. E. Farhi, J. Goldstone, and S. Gutmann, A quantum approximate optimization algorithm, arXiv:1411.4028.
  4. E. Farhi and H. Neven, Classification with quantum neural networks on near term processors, arXiv:1802.06002.
  5. J. Preskill, Quantum computing in the NISQ era and beyond, Quantum 2, 79 (2018).
  6. S.-X. Zhang, Z.-Q. Wan, C.-K. Lee, C.-Y. Hsieh, S. Zhang, and H. Yao, Variational Quantum-Neural Hybrid Eigensolver, Phys. Rev. Lett. 128, 120502 (2022).
  7. S.-X. Zhang, Z.-Q. Wan, C.-Y. Hsieh, H. Yao, and S. Zhang, Variational quantum-neural hybrid error mitigation, Adv. Quantum Technol. 2300147 (2023).
  8. Z. Holmes, K. Sharma, M. Cerezo, and P. J. Coles, Connecting Ansatz Expressibility to Gradient Magnitudes and Barren Plateaus, PRX Quantum 3, 010313 (2022).
  9. J. R. McClean, S. Boixo, V. N. Smelyanskiy, R. Babbush, and H. Neven, Barren plateaus in quantum neural network training landscapes, Nat. Commun. 9, 4812 (2018).
  10. T. L. Patti, K. Najafi, X. Gao, and S. F. Yelin, Entanglement devised barren plateau mitigation, Phys. Rev. Res. 3, 033090 (2021).
  11. K. Sharma, M. Cerezo, L. Cincio, and P. J. Coles, Trainability of Dissipative Perceptron-Based Quantum Neural Networks, Phys. Rev. Lett. 128, 180505 (2022).
  12. C. Ortiz Marrero, M. Kieferová, and N. Wiebe, Entanglement-induced barren plateaus, PRX Quantum 2, 040316 (2021).
  13. S. Wang, E. Fontana, M. Cerezo, K. Sharma, A. Sone, L. Cincio, and P. J. Coles, Noise-induced barren plateaus in variational quantum algorithms, Nat. Commun. 12, 6961 (2021).
  14. A. Arrasmith, M. Cerezo, P. Czarnik, L. Cincio, and P. J. Coles, Effect of barren plateaus on gradient-free optimization, Quantum 5, 558 (2021).
  15. E. Grant, L. Wossnig, M. Ostaszewski, and M. Benedetti, An initialization strategy for addressing barren plateaus in parametrized quantum circuits, Quantum 3, 214 (2019).
  16. G. Verdon, M. Broughton, J. R. McClean, K. J. Sung, R. Babbush, Z. Jiang, H. Neven, and M. Mohseni, Learning to learn with quantum neural networks via classical neural networks, arXiv:1907.05415.
  17. H.-Y. Liu, T.-P. Sun, Y.-C. Wu, Y.-J. Han, and G.-P. Guo, Mitigating barren plateaus with transfer-learning-inspired parameter initializations, New J. Phys. 25, 013039 (2023).
  18. A. Rad, A. Seif, and N. M. Linke, Surviving the barren plateau in variational quantum circuits with Bayesian learning initialization, arXiv:2203.02464.
  19. A. Kulshrestha and I. Safro, BEINIT: Avoiding barren plateaus in variational quantum algorithms, arXiv:2204.13751.
  20. F. Sauvage, S. Sim, A. A. Kunitsa, W. A. Simon, M. Mauri, and A. Perdomo-Ortiz, FLIP: A flexible initializer for arbitrarily-sized parametrized quantum circuits, arXiv:2103.08572.
  21. S. H. Sack, R. A. Medina, A. A. Michailidis, R. Kueng, and M. Serbyn, Avoiding Barren Plateaus Using Classical Shadows, PRX Quantum 3, 020365 (2022).
  22. H. R. Grimsley, G. S. Barron, E. Barnes, S. E. Economou, and N. J. Mayhall, Adaptive, problem-tailored variational quantum eigensolver mitigates rough parameter landscapes and barren plateaus, npj Quantum Inf. 9, 19 (2023); 9, 24(E) (2023).
  23. K. Zhang, M.-H. Hsieh, L. Liu, and D. Tao, Gaussian initializations help deep variational quantum circuits escape from the barren plateau, arXiv:2203.09376.
  24. M. Cerezo, A. Sone, T. Volkoff, L. Cincio, and P. J. Coles, Cost function dependent barren plateaus in shallow parametrized quantum circuits, Nat. Commun. 12, 1791 (2021).
  25. A. V. Uvarov and J. D. Biamonte, On barren plateaus and cost function locality in variational quantum algorithms, J. Phys. A: Math. Theor. 54, 245301 (2021).
  26. Z. Liu, L.-W. Yu, L.-M. Duan, and D.-L. Deng, Presence and Absence of Barren Plateaus in Tensor-Network Based Machine Learning, Phys. Rev. Lett. 129, 270501 (2022).
  27. A. Pesah, M. Cerezo, S. Wang, T. Volkoff, A. T. Sornborger, and P. J. Coles, Absence of Barren Plateaus in Quantum Convolutional Neural Networks, Phys. Rev. X 11, 041011 (2021).
  28. X. Liu, G. Liu, J. Huang, H.-K. Zhang, and X. Wang, Mitigating barren plateaus of variational quantum eigensolvers, arXiv:2205.13539.
  29. M. Bilkis, M. Cerezo, G. Verdon, P. J. Coles, and L. Cincio, A semi-agnostic ansatz with variable structure for quantum machine learning, arXiv:2103.06712.
  30. Y. Du, T. Huang, S. You, M.-H. Hsieh, and D. Tao, Quantum circuit architecture search for variational quantum algorithms, npj Quantum Inf. 8, 62 (2022).
  31. K. Zhang, M.-H. Hsieh, L. Liu, and D. Tao, Toward trainability of deep quantum neural networks, arXiv:2112.15002.
  32. A. Anand, L. B. Kristensen, F. Frohnert, S. Sim, and A. Aspuru-Guzik, Information flow in parameterized quantum circuits, arXiv:2207.05149.
  33. J. Kim, J. Kim, and D. Rosa, Universal effectiveness of high-depth circuits in variational eigenproblems, Phys. Rev. Res. 3, 023203 (2021).
  34. E. C. Martín, K. Plekhanov, and M. Lubasch, Barren plateaus in quantum tensor network optimization, Quantum 7, 974 (2023).
  35. L. Bittel and M. Kliesch, Training Variational Quantum Algorithms Is NP-Hard, Phys. Rev. Lett. 127, 120502 (2021).
  36. E. R. Anschuetz, Critical points in quantum generative models, arXiv:2109.06957.
  37. L. Zhou, S.-T. Wang, S. Choi, H. Pichler, and M. D. Lukin, Quantum Approximate Optimization Algorithm: Performance, Mechanism, and Implementation on Near-Term Devices, Phys. Rev. X 10, 021067 (2020).
  38. J. Rivera-Dean, P. Huembeli, A. Acín, and J. Bowles, Avoiding local minima in variational quantum algorithms with neural networks, arXiv:2104.02955.
  39. L. Slattery, B. Villalonga, and B. K. Clark, Unitary block optimization for variational quantum algorithms, Phys. Rev. Res. 4, 023072 (2022).
  40. M. Larocca, N. Ju, D. García-Martín, P. J. Coles, and M. Cerezo, Theory of overparametrization in quantum neural networks, Nat. Comput. Sci. 3, 542 (2023).
  41. D. Faílde, J. D. Viqueira, M. M. Juane, and A. Gómez, Using differential evolution to avoid local minima in variational quantum algorithms, arXiv:2303.12186.
  42. Z. Wang, P.-L. Zheng, B. Wu, and Y. Zhang, Quantum dropout: On and over the quantum approximate optimization algorithm, Phys. Rev. Res. 5, 023171 (2023).
  43. P. J. J. O'Malley, R. Babbush, I. D. Kivlichan, J. Romero, J. R. McClean, R. Barends, J. Kelly, P. Roushan, A. Tranter, N. Ding, B. Campbell, Y. Chen, Z. Chen, B. Chiaro, A. Dunsworth, A. G. Fowler, E. Jeffrey, E. Lucero, A. Megrant, J. Y. Mutus et al., Scalable Quantum Simulation of Molecular Energies, Phys. Rev. X 6, 031007 (2016).
  44. A. Kandala, A. Mezzacapo, K. Temme, M. Takita, M. Brink, J. M. Chow, and J. M. Gambetta, Hardware-efficient variational quantum eigensolver for small molecules and quantum magnets, Nature (London) 549, 242 (2017).
  45. J. I. Colless, V. V. Ramasesh, D. Dahlen, M. S. Blok, M. E. Kimchi-Schwartz, J. R. McClean, J. Carter, W. A. de Jong, and I. Siddiqi, Computation of Molecular Spectra on a Quantum Processor with an Error-Resilient Algorithm, Phys. Rev. X 8, 011021 (2018).
  46. Y. Cao, J. Romero, J. P. Olson, M. Degroote, P. D. Johnson, M. Kieferová, I. D. Kivlichan, T. Menke, B. Peropadre, N. P. Sawaya, S. Sim, L. Veis, and A. Aspuru-Guzik, Quantum chemistry in the age of quantum computing, Chem. Rev. 119, 10856 (2019).
  47. H. R. Grimsley, S. E. Economou, E. Barnes, and N. J. Mayhall, An adaptive variational algorithm for exact molecular simulations on a quantum computer, Nat. Commun. 10, 3007 (2019).
  48. S. McArdle, S. Endo, A. Aspuru-Guzik, S. C. Benjamin, and X. Yuan, Quantum computational chemistry, Rev. Mod. Phys. 92, 015003 (2020).
  49. J. Tilly, G. Jones, H. Chen, L. Wossnig, and E. Grant, Computation of molecular excited states on IBM quantum computers using a discriminative variational quantum eigensolver, Phys. Rev. A 102, 062425 (2020).
  50. J.-G. Liu, Y.-H. Zhang, Y. Wan, and L. Wang, Variational quantum eigensolver with fewer qubits, Phys. Rev. Res. 1, 023025 (2019).
  51. Z. Cai, Resource Estimation for Quantum Variational Simulations of the Hubbard Model, Phys. Rev. Appl. 14, 014059 (2020).
  52. D. Wecker, M. B. Hastings, and M. Troyer, Progress towards practical quantum variational algorithms, Phys. Rev. A 92, 042303 (2015).
  53. W. W. Ho and T. H. Hsieh, Efficient variational simulation of non-trivial quantum states, SciPost Phys. 6, 029 (2019).
  54. P.-L. Dallaire-Demers, J. Romero, L. Veis, S. Sim, and A. Aspuru-Guzik, Low-depth circuit ansatz for preparing correlated fermionic states on a quantum computer, Quantum Sci. Technol. 4, 045005 (2019).
  55. S. Tamiya, S. Koh, and Y. O. Nakagawa, Calculating nonadiabatic couplings and Berry's phase by variational quantum eigensolvers, Phys. Rev. Res. 3, 023244 (2021).
  56. A. Uvarov, J. Biamonte, and D. Yudin, Variational quantum eigensolver for frustrated quantum systems, Phys. Rev. B 102, 075104 (2020).
  57. N. Klco, E. F. Dumitrescu, A. J. McCaskey, T. D. Morris, R. C. Pooser, M. Sanz, E. Solano, P. Lougovski, and M. J. Savage, Quantum-classical computation of Schwinger model dynamics using quantum computers, Phys. Rev. A 98, 032331 (2018).
  58. D.-B. Zhang, B.-L. Chen, Z.-H. Yuan, and T. Yin, Variational quantum eigensolvers by variance minimization, Chin. Phys. B 31, 120301 (2022).
  59. F. Zhang, N. Gomes, Y. Yao, P. P. Orth, and T. Iadecola, Adaptive variational quantum eigensolvers for highly excited states, Phys. Rev. B 104, 075159 (2021).
  60. S. Liu, S.-X. Zhang, C.-Y. Hsieh, S. Zhang, and H. Yao, Probing many-body localization by excited-state variational quantum eigensolver, Phys. Rev. B 107, 024204 (2023).
  61. C. Cade, L. Mineh, A. Montanaro, and S. Stanisic, Strategies for solving the Fermi-Hubbard model on near-term quantum computers, Phys. Rev. B 102, 235122 (2020).
  62. R. Wiersema, C. Zhou, Y. de Sereville, J. F. Carrasquilla, Y. B. Kim, and H. Yuen, Exploring entanglement and optimization within the hamiltonian variational ansatz, PRX Quantum 1, 020319 (2020).
  63. A. C. Y. Li, M. S. Alam, T. Iadecola, A. Jahin, J. Job, D. M. Kurkcuoglu, R. Li, P. P. Orth, A. B. Özgüler, G. N. Perdue, and N. M. Tubman, Benchmarking variational quantum eigensolvers for the square-octagon-lattice Kitaev model, Phys. Rev. Res. 5, 033071 (2023).
  64. W. Kutzelnigg, Quantum chemistry in Fock space. I. The universal wave and energy operators, J. Chem. Phys. 77, 3081 (1982).
  65. W. Kutzelnigg and S. Koch, Quantum chemistry in fock space. II. effective hamiltonians in fock space, J. Chem. Phys. 79, 4315 (1983).
  66. W. Kutzelnigg, Quantum chemistry in Fock space. IV. The treatment of permutational symmetry. Spin-free diagrams with symmetrized vertices, J. Chem. Phys. 82, 4166 (1985).
  67. R. J. Bartlett, S. A. Kucharski, and J. Noga, Alternative coupled-cluster ansätze II. The unitary coupled-cluster method, Chem. Phys. Lett. 155, 133 (1989).
  68. A. G. Taube and R. J. Bartlett, New perspectives on unitary coupled-cluster theory, Int. J. Quantum Chem. 106, 3393 (2006).
  69. T. Yanai, Y. Kurashige, D. Ghosh, and G. K.-L. Chan, Accelerating convergence in iterative solution for large-scale complete active space self-consistent-field calculations, Int. J. Quantum Chem. 109, 2178 (2009).
  70. T. Yanai and G. K.-L. Chan, Canonical transformation theory for multireference problems, J. Chem. Phys. 124, 194106 (2006).
  71. G. Harsha, T. Shiozaki, and G. E. Scuseria, On the difference between variational and unitary coupled cluster theories, J. Chem. Phys. 148, 044107 (2018).
  72. S.-X. Zhang, J. Allcock, Z.-Q. Wan, S. Liu, J. Sun, H. Yu, X.-H. Yang, J. Qiu, Z. Ye, Y.-Q. Chen, C.-K. Lee, Y.-C. Zheng, S.-K. Jian, H. Yao, C.-Y. Hsieh, and S. Zhang, TensorCircuit: a quantum software framework for the NISQ era, Quantum 7, 912 (2023).
  73. See Supplemental Material at http://link.aps.org/supplemental/10.1103/PhysRevResearch.5.L032040 for details, including the following: (1) box plots, (2) analysis of the barren plateaus, (3) best VQE energy analysis, (4) numerical results with the adam optimizer and different decay steps, (5) numerical results with the stochastic gradient descent (SGD) optimizer, (6) numerical results with different rates of random gate activation, (7) training dynamics, (8) comparison with the initialization strategy, (9) robustness against quantum noise, (10) efficiency comparison for the plain and RA strategies, and (11) relation to the entanglement phase transition. References [81, 82, 83, 84, 85, 86, 87, 88] are cited therein.
  74. D. P. Kingma and J. Ba, Adam: A method for stochastic optimization, arXiv:1412.6980.
  75. S.-X. Zhang, C.-Y. Hsieh, S. Zhang, and H. Yao, Neural predictor based quantum architecture search, Mach. Learn.: Sci. Technol. 2, 045027 (2021).
  76. S.-X. Zhang, C.-Y. Hsieh, S. Zhang, and H. Yao, Differentiable quantum architecture search, Quantum Sci. Technol. 7, 045023 (2022).
  77. J. Li, X. Yang, X. Peng, and C.-P. Sun, Hybrid Quantum-Classical Approach to Quantum Optimal Control, Phys. Rev. Lett. 118, 150503 (2017).
  78. K. Mitarai, M. Negoro, M. Kitagawa, and K. Fujii, Quantum circuit learning, Phys. Rev. A 98, 032309 (2018).
  79. M. Schuld, V. Bergholm, C. Gogolin, J. Izaac, and N. Killoran, Evaluating analytic gradients on quantum hardware, Phys. Rev. A 99, 032331 (2019).
  80. L. Banchi and G. E. Crooks, Measuring analytic gradients of general quantum evolution with the stochastic parameter shift rule, Quantum 5, 386 (2021).
  81. Y. Li, X. Chen, and M. P. A. Fisher, Quantum Zeno effect and the many-body entanglement transition, Phys. Rev. B 98, 205136 (2018).
  82. B. Skinner, J. Ruhman, and A. Nahum, Measurement-Induced Phase Transitions in the Dynamics of Entanglement, Phys. Rev. X 9, 031009 (2019).
  83. Y. Li, X. Chen, and M. P. A. Fisher, Measurement-driven entanglement transition in hybrid quantum circuits, Phys. Rev. B 100, 134306 (2019).
  84. S. Choi, Y. Bao, X.-L. Qi, and E. Altman, Quantum Error Correction in Scrambling Dynamics and Measurement-Induced Phase Transition, Phys. Rev. Lett. 125, 030505 (2020).
  85. M. J. Gullans and D. A. Huse, Dynamical Purification Phase Transition Induced by Quantum Measurements, Phys. Rev. X 10, 041020 (2020).
  86. S.-K. Jian, C. Liu, X. Chen, B. Swingle, and P. Zhang, Measurement-Induced Phase Transition in the Monitored Sachdev-Ye-Kitaev Model, Phys. Rev. Lett. 127, 140601 (2021).
  87. S. Liu, M.-R. Li, S.-X. Zhang, S.-K. Jian, and H. Yao, Universal Kardar-Parisi-Zhang scaling in noisy hybrid quantum circuits, Phys. Rev. B 107, L201113 (2023).
  88. L. Bottou, Stochastic gradient descent tricks, in Neural Networks: Tricks of the Trade, Lecture Notes in Computer Science Vol. 7700 (Springer, Berlin, 2012), pp. 421–436.

Outline

Information

Sign In to Your Journals Account

Filter

Filter

Article Lookup

Enter a citation