Optimal Space-Depth Trade-Off of CNOT Circuits in Quantum Logic Synthesis

Jiaqing Jiang, Xiaoming Sun, Shang-Hua Teng, Bujiao Wu, Kewen Wu, Jialin Zhang

Abstract

In quantum logic synthesis, reducing circuit depth is critical due to the decoherence of physical qubits. While ancillae (extra qubits) can be used to parallelize circuits, they are a limited resource. This paper establishes an asymptotically optimal space-depth trade-off for CNOT circuits. We prove that any $n$-qubit CNOT circuit can be parallelized to a depth of $O(\max\{\log n, \frac{n^2}{(n+m)\log (n+m)}\})$ using $m$ ancillae. This bound is tight and improves upon previous results by factors of up to $\log^2 n$. We also provide evidence that optimizing CNOT circuits for size or depth under topological constraints is NP-hard.

Introduction

The current "Noisy Intermediate-Scale Quantum" (NISQ) era is defined by qubits with limited coherence times. Consequently, minimizing the execution time—or circuit depth—is a primary objective in quantum circuit design. Parallelization is a key strategy for depth reduction, often facilitated by the use of additional qubits known as ancillae.

Previous research established bounds for extreme cases: Moore and Nilsson (2001) showed that $O(n^2)$ ancillae allow for $O(\log n)$ depth, while Patel, Markov, and Hayes (2008) explored the zero-ancilla regime. However, a general trade-off for an arbitrary number of ancillae $m$ remained elusive. This work fills that gap, providing a constructive algorithm that achieves the theoretical lower bound for any $m \geq 0$.

Methodology: Parallel Matrix Synthesis

The synthesis of CNOT circuits can be framed as a linear algebra problem over the finite field $\mathbb{F}_2$. A CNOT gate acting on qubits $i$ (control) and $j$ (target) corresponds to a row operation: adding row $i$ to row $j$. Thus, synthesizing a circuit is equivalent to reducing an invertible $n \times n$ matrix to the identity matrix using these operations.

To achieve the optimal trade-off, the authors employ several advanced techniques:

  1. Parallel Gaussian Elimination: The algorithm identifies sets of independent row operations that can be executed simultaneously.
  2. Method of Four Russians Adaptation: For regimes with available ancillae, the algorithm uses the extra space to pre-compute additive bases, allowing for the elimination of multiple columns at once.
  3. Recursive Decomposition: The matrix is partitioned into blocks, and the elimination process is applied recursively to manage complexity and maximize parallelism.
Recursive matrix decomposition and traversal process for parallel CNOT circuit synthesis.

The figure above illustrates the recursive strategy. The matrix is divided into sub-matrices (e.g., $M_1, A, M_2$), which are then further partitioned into smaller blocks ($A_1, A_2, \dots$). The "Traverse" steps represent the parallel application of row operations across these blocks to systematically reach the identity state.

Key Results and Insights

The primary contribution is the discovery and proof of the tight depth bound: $$D = O\left(\max\left\{\log n, \frac{n^2}{(n+m)\log (n+m)}\right\}\right)$$

Ancilla Efficiency

A significant finding is that $O(n^2)$ ancillae are not required to reach logarithmic depth. The authors demonstrate that $m = O(n^2 / \log^2 n)$ ancillae are sufficient to achieve $O(\log n)$ depth, representing a $\log^2 n$ improvement in space efficiency over the Moore-Nilsson construction.

Zero-Ancilla Improvement

In the case where no extra qubits are available ($m=0$), the algorithm achieves a depth of $O(n / \log n)$. This is a significant improvement over the previously known $O(n)$ bound, effectively speeding up CNOT synthesis for constrained hardware.

Hardness of Optimization

Beyond the constructive results, the paper proves that finding the absolute minimum size or depth for CNOT circuits under topological constraints (where gates can only be applied between specific pairs of qubits) is NP-hard to approximate. This justifies the use of asymptotic and heuristic approaches in practical compilers.

Conclusion

This work provides a comprehensive theoretical framework for the space-depth trade-off in CNOT circuit synthesis. By establishing tight bounds and providing an efficient $O(n^\omega)$ synthesis algorithm, it offers a roadmap for optimizing quantum circuits across a wide range of hardware capabilities. Future research may extend these techniques to universal gate sets and specific hardware topologies like 2D grids.

Summary updated

Abstract

Decoherence -- in the current physical implementations of quantum computers -- makes depth reduction a vital task in quantum-circuit design. Moore and Nilsson (SIAM Journal of Computing, 2001) demonstrated that additional qubits -- known as ancillae -- can be used to provide an extended space to parallelize quantum circuits. Specifically, they proved that, with $O(n^2)$ ancillae, any $n$-qubit CNOT circuit can be transformed into an equivalent one of $O(\log n)$ depth. However, the near-term quantum technologies can only support a limited amount of qubits, making space-depth trade-off a fundamental research subject for quantum-circuit synthesis. In this work, we establish an asymptotically optimal space-depth trade-off for CNOT circuits. We prove that any $n$-qubit CNOT circuit can be parallelized to $$O\left(\max\left\{\log n, \frac{n^2}{(n+m)\log (n+m)}\right\}\right)$$ depth with $m$ ancillae. This bound is tight even if the task is expanded from exact synthesis to the approximation of CNOT circuits with arbitrary two-qubit quantum gates. Our result can be extended to stabilizer circuits via the reduction by Aaronson and Gottesman (Physical Review A, 2004). Furthermore, we provide hardness evidence for optimizing CNOT circuits in terms of size or depth. Our result has improved upon two previous papers that motivated our work. Moore-Nilsson's construction (aforementioned) for $O(\log n)$-depth CNOT circuit synthesis: We have reduced their need for ancillae by a factor of $\log^2 n$ by showing that $m= O(n^2/\log^2 n)$ additional qubits -- which is asymptotically optimal -- suffice to build equivalent $O(\log n)$-depth $O(n^2/\log n)$-size CNOT circuits. Patel-Markov-Hayes's construction (Quantum Information & Computation 2008) for $m = 0$: We have reduced their depth by a factor of $n$ and achieved the asymptotically optimal bound of $O(n/\log n)$.
BibTeX
@inproceedings{jiang2020optimal,
  author = {Jiaqing Jiang and Xiaoming Sun and Shang-Hua Teng and Bujiao Wu and Kewen Wu and Jialin Zhang},
  title = {{Optimal Space-Depth Trade-Off of CNOT Circuits in Quantum Logic Synthesis}},
  booktitle = {SODA},
  year = {2020},
  doi = {10.1137/1.9781611975994.13},
}
Figure