量子电子学报 ›› 2023, Vol. 40 ›› Issue (5): 747-758.doi: 10.3969/j.issn.1007-5461.2023.05.014

• 量子光学 • 上一篇    下一篇

HHL 量子算法的普适量子线路设计

季雯 1, 叶宾 1,2*   

  1. ( 1 中国矿业大学信息与控制工程学院, 江苏 徐州 221116; 2 地下空间智能控制教育部工程研究中心, 江苏 徐州 221116 )
  • 收稿日期:2021-09-24 修回日期:2021-11-20 出版日期:2023-09-28 发布日期:2023-09-28
  • 通讯作者: E-mail: yebin@cumt.edu.cn E-mail:E-mail: yebin@cumt.edu.cn
  • 作者简介:季 雯 ( 1996 - ), 女, 江苏徐州人, 研究生, 主要从事量子计算方面的研究。E-mail: ts19060065a31@cumt.edu.cn
  • 基金资助:
    徐州市科技计划项目 (KC22286), 河南省网络密码技术重点实验室研究课题 (LNCT2019-S06)

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

摘要: HHL (Harrow-Hassidim-Lloyd) 量子算法实现了近似求解线性方程组Ax = b, 是许多复杂量子算法的重要组 成部分。尽管HHL 量子算法相比于经典算法能够实现指数级加速, 但是目前HHL 量子算法大多为抽象的算法描述 或分析, 所设计出的量子线路规模很小, 且不具有普适性。在分析HHL 量子算法原理的基础上, 使用通用量子门自 上而下地设计了算法的关键模块, 包括酉矩阵的通用量子门分解模块、量子相位估计模块、量子全加器与乘法器模 块、量子态条件旋转变换模块等, 从而实现了求解线性方程组的普适量子线路。利用IBM qiskit 量子计算开发平台进 行的量子仿真实验表明, 所设计的HHL 量子线路能够求解一般形式的线性方程组, 且易于扩展为中大规模的量子 线路。

关键词: 量子计算, HHL 量子算法, 量子线路, 量子相位估计, IBM qiskit 平台

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

中图分类号: