- Open Access
Enhancing the Harrow-Hassidim-Lloyd (HHL) algorithm in systems with large condition numbers
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 on quantum computers when compared to their traditional counterparts, it faces a challenge related to the condition number () scaling of the 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 (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 . 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 and values of up to , and (b) application to quantum chemistry, where we consider matrices up to size that reach of about 393. The molecular systems that we consider are , KH, RbH, and CsH.
Physics Subject Headings (PhySH)
Article Text
References (26)
- A. W. Harrow, A. Hassidim, and S. Lloyd, Quantum algorithm for linear systems of equations, Phys. Rev. Lett. 103, 150502 (2009).
- 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).
- J. Golden, D. J. O'Malley, and V. Hari, Quantum computing and preconditioners for hydrological linear systems, Sci. Rep. 12, 22285 (2022).
- G. Brassard, P. Hoyer, M. Mosca, and A. Tapp, Quantum amplitude amplification and estimation, AMS Contemporary Mathematics 305, 74 (2002).
- A. Ambainis, Variable time amplitude amplification and a faster quantum algorithm for solving systems of linear equations, arXiv:1010.4458.
- B. D. Clader, B. C. Jacobs, and C. R. Sprouse, Preconditioned quantum linear system algorithm, Phys. Rev. Lett. 110, 250504 (2013).
- C. Shao and H. Xiang, Quantum circulant preconditioner for a linear system of equations, Phys. Rev. A 98, 062321 (2018).
- 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).
- D. V. Babukhin, Harrow-Hassidim-Lloyd algorithm without ancilla postselection, Phys. Rev. A 107, 042408 (2023).
- 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).
- 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).
- 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).
- 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.
- D. Dervovic, M. Herbster, P. Mountney, S. Severini, N. Usher, and L. Wossnig, Quantum linear systems algorithms: a primer, arXiv:1802.08227.
- 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) .
- 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).
- 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).
- J. C. Garcia-Escartin and P. Chamorro-Posada, SWAP test and Hong-Ou-Mandel effect are equivalent, Phys. Rev. A 87, 052330 (2013).
- L. Lin, Lecture notes on quantum algorithms for scientific computation, arXiv:2201.08309.
- M. Treinish et al., Qiskit: An open-source framework for quantum computing, GitHub, IBM QISKIT repository (2022), https://github.com/Qiskit/qiskit.
- K. Bourzac, Chemistry is quantum computing's killer app, C&EN 95, 27 (2017).
- 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).
- R. A. Brooks, C. H. Anderson, and N. F. Ramsey, Rotational magnetic moments of diatomic alkalis, Phys. Rev. Lett. 10, 441 (1963).
- 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).
- 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).
- G. M. J. Barca et al., Recent developments in the general atomic and molecular electronic structure system, J. Chem. Phys. 152, 154102 (2020).