arXiv · 2603.12917
Asymptotically Optimal Quantum Circuits for Comparators and Incrementers
Abstract
We present quantum circuits for comparison and increment operations that achieve an asymptotically optimal gate count of $\Theta(n)$ and depth of $\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 $\mathcal{O}(n^3)$ to $\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.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Vivien Vandaele. 2026-03-13. Asymptotically Optimal Quantum Circuits for Comparators and Incrementers. https://arxiv.org/abs/2603.12917
Cite the original work for its findings. Save a collection to share your selection of sources.