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
  • Open Access

Enhancing the Harrow-Hassidim-Lloyd (HHL) algorithm in systems with large condition numbers

Peniel Bertrand Tsemo1,2, Akshaya Jayashankar1, K. Sugisaki1,3,4,5, Nishanth Baskaran6, Sayan Chakraborty7,8, and V. S. Prasannaa1,8,*

  • 1Centre for Quantum Engineering, Research and Education, TCG CREST, Sector V, Salt Lake, Kolkata 700091, India
  • 2Department of Physics, IIT Tirupati, Chindepalle, Andhra Pradesh 517619, India
  • 3Graduate School of Science and Technology, Keio University, 7-1 Shinkawasaki, Saiwai-ku, Kawasaki, Kanagawa 212-0032, Japan
  • 4Quantum Computing Center, Keio University, 3-14-1 Hiyoshi, Kohoku-ku, Yokohama, Kanagawa 223-8522, Japan
  • 5Keio University Sustainable Quantum Artificial Intelligence Center (KSQAIC), Keio University, 2-15-45 Mita, Minato-ku, Tokyo 108-8345, Japan
  • 6Department of Electrical and Computer Engineering, The University of British Columbia, Vancouver, British Columbia V6T 1Z4, Canada
  • 7Institute for Advancing Intelligence, TCG CREST, Sector V, Salt Lake, Kolkata 700091, India
  • 8Academy of Scientific and Innovative Research (AcSIR), Ghaziabad 201002, India

  • *Contact author: srinivasaprasannaa@gmail.com

Phys. Rev. Research 7, 023270 – Published 17 June, 2025

DOI: https://doi.org/10.1103/msvx-1drx

Abstract

Although the Harrow-Hassidim-Lloyd (HHL) algorithm offers an exponential speedup in system size for treating linear equations of the form Ax⃗=b⃗ on quantum computers when compared to their traditional counterparts, it faces a challenge related to the condition number (κ) scaling of the A matrix. In this work, we address the issue by introducing the postselection-improved HHL (Psi-HHL) framework that operates on a simple yet effective premise: subtracting mixed and wrong signals to extract correct signals while providing the benefit of optimal scaling in the condition number of A (denoted as κ) for large κ scenarios. This approach, which leads to minimal increase in circuit depth, has the important practical implication of having to use substantially fewer shots relative to the traditional HHL algorithm. The term “signal” refers to a feature of |x〉. We design circuits for overlap and expectation value estimation in the Psi-HHL framework. We demonstrate performance of Psi-HHL via numerical simulations. We carry out two sets of computations, where we go up to 26-qubit calculations, to demonstrate the ability of Psi-HHL to handle situations involving large-κ matrices via (a) a set of toy matrices, for which we go up to size 64×64 and κ values of up to ≈1×106, and (b) application to quantum chemistry, where we consider matrices up to size 256×256 that reach κ of about 393. The molecular systems that we consider are Li2, KH, RbH, and CsH.

View figure in article

Physics Subject Headings (PhySH)

Article Text

References (26)

  1. A. W. Harrow, A. Hassidim, and S. Lloyd, Quantum algorithm for linear systems of equations, Phys. Rev. Lett. 103, 150502 (2009).
  2. N. Baskaran, A. S. Rawat, A. Jayashankar, D. Chakravarti, K. Sugisaki, S. Roy, S. B. Mandal, D. Mukherjee, and V. S. Prasannaa, Adapting the Harrow-Hassidim-Lloyd algorithm to quantum many-body theory, Phys. Rev. Res. 5, 043113 (2023).
  3. J. Golden, D. J. O'Malley, and V. Hari, Quantum computing and preconditioners for hydrological linear systems, Sci. Rep. 12, 22285 (2022).
  4. G. Brassard, P. Hoyer, M. Mosca, and A. Tapp, Quantum amplitude amplification and estimation, AMS Contemporary Mathematics 305, 74 (2002).
  5. A. Ambainis, Variable time amplitude amplification and a faster quantum algorithm for solving systems of linear equations, arXiv:1010.4458.
  6. B. D. Clader, B. C. Jacobs, and C. R. Sprouse, Preconditioned quantum linear system algorithm, Phys. Rev. Lett. 110, 250504 (2013).
  7. C. Shao and H. Xiang, Quantum circulant preconditioner for a linear system of equations, Phys. Rev. A 98, 062321 (2018).
  8. Y. Tong, D. An, N. Wiebe, and L. Lin, Fast inversion, preconditioned quantum linear system solvers, fast Green's-function computation, and fast evaluation of matrix functions, Phys. Rev. A 104, 032422 (2021).
  9. D. V. Babukhin, Harrow-Hassidim-Lloyd algorithm without ancilla postselection, Phys. Rev. A 107, 042408 (2023).
  10. D. Orsucci and V. Dunjko, On solving classes of positive-definite quantum linear systems with quadratically improved runtime in the condition number, Quantum 5, 573 (2021).
  11. A. M. Childs, R. Kothari, and R. D. Somma, Quantum algorithm for systems of linear equations with exponentially improved dependence on precision, SIAM J. Comput. 46, 1920 (2017).
  12. P. C. S. Costa, D. An, Y. R. Sanders, Y. Su, R. Babbush, and D. W. Berry, Optimal scaling quantum linear-systems solver via discrete adiabatic theorem, PRX Quantum 3, 040303 (2022).
  13. J. R. Shewchuk, An introduction to the conjugate gradient method without the agonizing pain, Technical report, School of Computer Science Carnegie Mellon University, Pittsburgh (1994), https://dl.acm.org/doi/10.5555/865018.
  14. D. Dervovic, M. Herbster, P. Mountney, S. Severini, N. Usher, and L. Wossnig, Quantum linear systems algorithms: a primer, arXiv:1802.08227.
  15. H. J. Morrell, A. Zaman, and H. Y. Wong, A step-by-step HHL algorithm walkthrough to enhance understanding of critical quantum computing concepts, IEEE Access 11, 77117 (2023) .
  16. X. Liu, H. Xie, Z. Liu, and C. Zhao, Survey on the improvement and application of HHL algorithm, J. Phys.: Conf. Ser. 2333, 012023 (2022).
  17. B. Duan, J. Yuana, C.-H. Yub, J. Huanga, and C.-Y. Hsie, A survey on HHL algorithm: From theory to application in quantum machine learning, Phys. Lett. A 384, 126595 (2020).
  18. J. C. Garcia-Escartin and P. Chamorro-Posada, SWAP test and Hong-Ou-Mandel effect are equivalent, Phys. Rev. A 87, 052330 (2013).
  19. L. Lin, Lecture notes on quantum algorithms for scientific computation, arXiv:2201.08309.
  20. M. Treinish et al., Qiskit: An open-source framework for quantum computing, GitHub, IBM QISKIT repository (2022), https://github.com/Qiskit/qiskit.
  21. K. Bourzac, Chemistry is quantum computing's killer app, C&EN 95, 27 (2017).
  22. N. Geum, G.-H. Jeung, A. Derevianko, R. Cõté, and A. Dalgarno, Interaction potentials of LiH, NaH, KH, RbH, and CsH, J. Chem. Phys. 115, 5984 (2001).
  23. R. A. Brooks, C. H. Anderson, and N. F. Ramsey, Rotational magnetic moments of diatomic alkalis, Phys. Rev. Lett. 10, 441 (1963).
  24. T. Noro, M. Sekiya, and T. Koga, Segmented contracted basis sets for atoms H through Xe: Sapporo-(DK)-nZP sets (n = D, T, Q), Theor. Chem. Acc. 131, 1124 (2012).
  25. B. P. Pritchard, D. Altarawy, B. Didier, T. D. Gibson, and T. L. Windus, A new basis set exchange: An open, up-to-date resource for the molecular sciences community, J. Chem. Inf. Model. 59, 4814 (2019).
  26. G. M. J. Barca et al., Recent developments in the general atomic and molecular electronic structure system, J. Chem. Phys. 152, 154102 (2020).

Outline

Information

Sign In to Your Journals Account

Filter

Filter

Article Lookup

Enter a citation