Chinese Journal of Quantum Electronics ›› 2021, Vol. 38 ›› Issue (1): 75-85.

• Quantum Optics • Previous Articles     Next Articles

Linear nearest neighbor synthesis algorithm of quantum circuits based on pre-evaluation

WANG Yizhen1, GUAN Zhijin1;2∗, GUAN Haiyu1   

  1. 1 College of Information Science and Technology, Nantong University, Nantong 226019, China; 2 Jiangsu Key Laboratory of Asic Design, Nantong University, Nantong 226019, China
  • Received:2019-12-26 Revised:2020-02-14 Published:2021-01-28 Online:2021-02-01

Abstract: Linear nearest neighbor (LNN) quantum circuit is an important quantum circuit architecture, which lays a foundation for the physical realization of quantum circuit. In order to construct LNN quantum logic circuits, a linear nearest neighbor logic synthesis algorithm based on pre-evaluation is proposed. In this algorithm, partial non-nearest neighbor quantum circuits are globally reordered firstly, then the reordered quantum circuits are evaluated by heuristic method, and the set of quantum circuits with the lowest nearest neighbor cost is found by computing the minimum chaos value. Finally, SWAP gates are added to convert the quantum circuit to a nearest neighbor structure with the lowest quantum cost. Through pre-evaluation, on the one hand, the algorithm can accurately calculate whether there are redundant SWAP gates that can be deleted in the quantum circuit and delete them. On the other hand, it can minimize the number of SWAP gates added when each non-nearst neighbor quantum gate is converted into LNN quantum gate, and then the quantum circuit with the lowest quantum cost is obtained. The experimental results show that compared with the known algorithm, the proposed algorithm has less average gates, higher optimization rate of quantum cost and a wider application range.

Key words: quantum circuit, linear nearest neighbor, SWAP gate, quantum cost

CLC Number: