English

Asymptotically Optimal Quantum Circuits for Comparators and Incrementers

Quantum Physics 2026-03-16 v1

Abstract

We present quantum circuits for comparison and increment operations that achieve an asymptotically optimal gate count of Θ(n)\Theta(n) and depth of Θ(logn)\Theta(\log n) over the Clifford+Toffoli gate set, while using a provably minimal number of qubits. We extend these results to classical-quantum comparators, yielding an improved classical-quantum adder with an optimal qubit count. Given the ubiquity of these operations as algorithmic building blocks, our constructions translate directly into reduced circuit complexity for many quantum algorithms. As a notable example, they can be used to improve a space-efficient circuit for Shor's factoring algorithm, reducing circuit depth from O(n3)\mathcal{O}(n^3) to O(n2log2n)\mathcal{O}(n^2 \log^2 n) without increasing either the qubit count or the asymptotic gate complexity. Underpinning these results is a general theorem demonstrating how to trade ancilla qubits for control qubits with low overhead in both depth and gate count, providing a broadly applicable tool for quantum circuit design.

Keywords

Cite

@article{arxiv.2603.12917,
  title  = {Asymptotically Optimal Quantum Circuits for Comparators and Incrementers},
  author = {Vivien Vandaele},
  journal= {arXiv preprint arXiv:2603.12917},
  year   = {2026}
}
R2 v1 2026-07-01T11:18:19.037Z