量子电子学报 ›› 2023, Vol. 40 ›› Issue (4): 570-581.doi: 10.3969/j.issn.1007-5461.2023.04.016

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

一种二维架构下的量子电路布局与优化方法

张超 , 管致锦 *, 冯世光 , 牛义仁 , 朱明强   

  1. ( 南通大学信息科学技术学院, 江苏 南通 226019 )
  • 收稿日期:2021-04-12 修回日期:2021-05-28 出版日期:2023-07-28 发布日期:2023-07-28
  • 通讯作者: E-mail: guan.zj@ntu.edu.cn E-mail:E-mail: guan.zj@ntu.edu.cn
  • 作者简介:张 超 ( 1996 - ), 江苏扬州人, 研究生, 主要从事计算机辅助量子逻辑综合方面的研究。 E-mail: chao_z_ntu@qq.com
  • 基金资助:
    国家自然科学基金面上项目 (62072259), 江苏省研究生科研与实践创新计划项目 (SJCX20_1151)

A quantum circuit layout and optimization method in two⁃dimensional architecture

ZHANG Chao , GUAN Zhijin *, FENG Shiguang , NIU Yiren , ZHU Mingqiang   

  1. ( School of Information Science and Technology, Nantong University, Nantong 226019, China )
  • Received:2021-04-12 Revised:2021-05-28 Published:2023-07-28 Online:2023-07-28

摘要: 为解决将量子电路映射到二维架构并实现量子位近邻问题, 提出了一种二维架构下的量子电路布局与优化 方法。首先根据量子门在量子电路中的执行顺序和相互作用, 提出基于量子位权重的深度优先搜索量子位映射次 序, 再考虑到映射次序的已放入量子位、待放入量子位和未放入量子位的关系进行量子位的初始布局实现量子位的 初始映射;进而对近邻过程中的相同前瞻量子代价的选择进行了优化, 再根据优化后的代价结果, 插入SWAP 门, 实 现所有双量子门的最近邻。最后利用实验对提出的方法进行了验证, 并与已有的方法进行了比较。结果表明所提出 方法在中小规模的基准电路上平均优化率达到18%, 在中大规模的基准电路上平均优化率达到17%。

关键词: 量子物理, 量子电路, 量子映射, 最近邻, 二维架构

Abstract: In order to solve the problem of mapping quantum circuits to two-dimensional architecture and realizing qubit nearest neighbor, a quantum circuit layout and optimization method in two-dimensional architecture is proposed. Firstly, according to the execution order and interaction of quantum gates in quantum circuit, a depth-first search qubit mapping order based on the weight of qubits is proposed, then the initial qubit mapping is realized by taking into account the relationship between the put qubits in the mapping order, the qubits to be put in and the unput qubits. Secondly, the selection of the same lookahead quantum cost in the nearest neighbor process is optimized, then according to the optimized cost results, SWAP gates are inserted to realize the nearest neighbor of all double quantum gates. Finally, the proposed method is verified by experiments and compared with the existing methods, and it is shown that the average optimization rate of the propsed method reaches 18% on the small and medium-sized Benchmark and 17% on the medium and large-scale Benchmark.

Key words: quantum physics, quantum circuits, quantum mapping, nearest neighbor, two-dimensional architecture

中图分类号: