Chinese Journal of Quantum Electronics ›› 2023, Vol. 40 ›› Issue (5): 747-758.doi: 10.3969/j.issn.1007-5461.2023.05.014

• Quantum Optics • Previous Articles     Next Articles

A general quantum circuit design method for HHL quantum algorithm

JI Wen 1, YE Bin 1,2*   

  1. ( 1 School of Information and Control Engineering, China University of Mining and Technology, Xuzhou 221116, China; 2 Engineering Research Center of Intelligent Control for Underground Space, Ministry of Education, Xuzhou 221116, China )
  • Received:2021-09-24 Revised:2021-11-20 Published:2023-09-28 Online:2023-09-28

Abstract: Harrow-Hassidim-Lloyd (HHL) quantum algorithm has basically realized the function of solving linear equation Ax = b, and it is also the essential ingredient of many complex quantum algorithms. Although HHL quantum algorithm achieves exponential speedup over its classical counterpart, most of the current HHL quantum algorithms are abstract algorithm descriptions or their analyses. Especially, the HHL quantum circuits developed so far are small in scale and not general. By analyzing the basic units of HHL quantum algorithm, the key modules of HHL algorithm, including a unitary matrix decomposition module by general quantum gates, a quantum phase estimation module, a quantum full adder and multiplier module, and a conditional rotation module of quantum state, etc, were designed from top to down using general quantum gates, thus achieving a general quantum circuit for solving linear equations. Quantum simulations on the IBM qiskit quantum computation development platform show that the designed quantum circuits are suitable for solving more general linear equations and can be easily extended to medium or large-scale quantum circuits.

Key words: quantum computation, HHL quantum algorithm, quantum circuit, quantum phase estimation; IBM qiskit platform

CLC Number: