Reducing the number of non-Clifford quantum gates present in a circuit is an important task for efficiently implementing quantum computations, especially in the fault-tolerant regime. We present a new method for reducing the number of T-gates in a quantum circuit based on the ZX-calculus, which matches or beats previous approaches to T-count reduction on the majority of our benchmark circuits in the ancilla-free case, in some cases yielding up to 50% improvement. Our method begins by representing the quantum circuit as a ZX-diagram, a tensor network-like structure that can be transformed and simplified according to the rules of the ZX-calculus. We then show that a recently-proposed simplification strategy can be extended to reduce T-count using a new technique called phase teleportation. This technique allows non-Clifford phases to combine and cancel by propagating non-locally through a generic quantum circuit. Phase teleportation does not change the number or location of non-phase gates and the method also applies to arbitrary non-Clifford phase gates as well as gates with unknown phase parameters in parametrised circuits. Furthermore, the simplification strategy we use is powerful enough to validate equality of many circuits. In particular, we use it to show that our optimised circuits are indeed equal to the original ones. We have implemented the routines of this paper in the open-source library PyZX.
An Exactness Barrier for ZX-Calculus Optimization of Synthesized Clifford+T Circuits
University Paris City(巴黎城市大学);University of Reunion(留尼汪大学);Dipartimento di Fisica e Chimica Emilio Segrè, Università degli Studi di Palermo(巴勒莫大学埃米利奥·塞格雷物理与化学系);Department of Mathematics, University of Colombo(科伦坡大学数学系);School of Physics, Mathematics and Computing, University of Western Australia(西澳大利亚大学物理、数学与计算学院);PEACCEL, AI for Biologics(PEACCEL生物制剂人工智能公司)
Reducing the CNOT count for Clifford+T circuits on NISQ architectures
在将量子线路映射到物理层时,必须考虑底层硬件架构所施加的众多约束。物理量子位的连接性是一种这样的约束,其将诸如CNOT的两量子位操作限制为“连接的”量子位。交换门可以用来将逻辑量子比特放置在可接受的物理量子比特上,但是它们需要显著增加hocT计数。在本文中,我们考虑的问题,减少在Clifford+T电路的连接受限的架构,如嘈杂的中间尺度量子(NISQ)计算设备的hocT计数。我们“切片”的阿达玛门的位置的电路和“建立”的中间{CNOT,T}子电路使用斯坦纳树,显着改善以前的方法。我们比较了我们的算法的性能,同时将不同的基准电路和随机电路映射到一些众所周知的架构,如9-qubit正方形网格,16-qubit正方形网格,Rigetti 16-qubit Aspen,16-qubit IBM QX 5和20-qubit IBM Tokyo。与Qiskit和TKET转译器以及使用SWAP门相比,我们的方法给出了更少的hocT计数。假设NISQ电路实现中的大多数误差是由于CNOT误差引起的,那么我们的方法将允许电路可靠地实现比以前的方法多几倍的CNOT门。