English

Rise of conditionally clean ancillae for efficient quantum circuit constructions

Quantum Physics 2025-05-21 v2

Abstract

We introduce conditionally clean ancilla qubits, a new quantum resource, recently explored by [NZS24], that bridges the gap between traditional clean and dirty ancillae. Like dirty ancillae, they begin and end in an unknown state and can be borrowed from existing system qubits, avoiding the space overhead of explicit qubit allocation. Like clean ancillae, they can be treated as initialized in a known state within specific computations, thus avoiding the overhead of toggle detection required for dirty ancillae. We present new circuit constructions leveraging conditionally clean ancillae to achieve lower gate counts and depths, particularly with limited ancilla availability. Specifically, we provide constructions for: (a) nn-controlled NOT using 2n2n Toffolis and O(logn)O(\log{n}) depth given 2 clean ancillae. (b) nn-qubit incrementer using 3n3n Toffolis given log2n\log_2^*{n} clean ancillae. (c) nn-qubit quantum-classical comparator using 3n3n Toffolis given log2n\log_2^*{n} clean ancillae. (d) unary iteration over [0,N)[0,N) using 2.5N2.5N Toffolis given log2n\log_2^*{n} clean ancillae. (e) unary iteration via skew tree over [0,N)[0, N) using 1.25N1.25N Toffolis given nn dirty ancillae. We also introduce laddered toggle detection, a technique to replace clean ancillae with dirty ancillae in all our constructions, incurring a 2x Toffoli gate overhead. Our results demonstrate that conditionally clean ancillae are a valuable tool for quantum circuit design, especially in the resource-constrained early fault-tolerant era.

Keywords

Cite

@article{arxiv.2407.17966,
  title  = {Rise of conditionally clean ancillae for efficient quantum circuit constructions},
  author = {Tanuj Khattar and Craig Gidney},
  journal= {arXiv preprint arXiv:2407.17966},
  year   = {2025}
}
R2 v1 2026-06-28T17:53:24.674Z