Size optimization of CNOT circuits on NISQ
Anpeng Zhang, Xiutao Feng and Shengyuan Xu
Academy of Mathmatics and Systems Science Chinese Academy of Science, Beijing, China,
{zhanganpeng,fengxt,xushengyuan18}@amss.ac.cn
Abstract.
Quantum computers in practice today require strict memory constraints,
where 2-qubit operations can only be performed between the qubits closest to each
other in a graph structure. So a quantum circuit must undergo a transformation to
the graph before it can be implemented. In this paper, we study the optimization
of the CNOT circuits on some noisy intermediate-scale quantum(NISQ) devices.
Compared with previous works, we decompose it into two sub-problems: optimization
with a given initial qubit distribution and optimization without limitations of initial
qubit distribution. We find that most of the previous researches focused on the
first sub-problem, and ignored the influence of different distribution of qubits in the
same topology structure on the optimization results. In this paper, We take both
sub-problems into account and give some new optimization algorithms. In short, our
method is divided into two steps: matrix optimization and routing optimization. We
implement matrix optimization with the algorithm in [XZL
+
20] and put forward a
new heuristic algorithm with MILP method which can solve the second step. We
implement our algorithm on IBM20 and some other NISQ devices, the results are
better than most other methods in our experiment.
Keywords:
CNOT circuits
·
topologically-constrained
·
graph structure
·
MILP
·
NISQ
1 Introduction
With the rapid development of quantum computing technology, quantum computer has
gradually become a reality. Now noisy intermediate-scale quantum (NISQ) [Pre18] comput-
ers with 10-80 qubits have been made by some laboratories such as IBM and Google [Nay19].
In current quantum computers, many physical implementations of quantum computers
such as superconducting quantum circuits [Nay19] [ROT
+
18] and ion traps [BSK
+
12]
[BHL
+
16] impose strict memory limits, where 2-qubit operations (such as CNOT gates)
can only be performed between the nearest qubits in a lattice or graphical structure. For
a given quantum circuit with no limitation of memory operation, how to transform it into
a circuit that can be realized on a real quantum computer has become an urgent problem
to be solved. The traditional solution to this problem is to exchange qubits through the
SWAP gate operation between adjacent qubits to achieve the realization of two quantum
gates between two non-adjacent qubits [ZPW18] [HS18]. However, this scheme is too costly,
which usually increases the depth of the circuit and the number of gates by 1.5 to 3 times.
In fact, finding the exact optimal solution appears intractable [HND17].
In 2019, Kissinger
et al
[KdG19] showed that a pure CNOT circuit can be compiled
directly on an NISQ without significantly increasing the number of CNOT gates. Inspired
by classic SLP problem, they transformed a CNOT circuit (linear map) into a matrix and
then performed Restricted Gauss elimination to find its optimal implementation under the
limit of some topological graphs. Later Nash
et al
proposed a similar algorithm which can
implement any CNOT circuit with a 4
n2
-size equivalent CNOT circuit on any connected
arXiv:2210.05184v1 [quant-ph] 11 Oct 2022