A Classical-Quantum Adder with Constant Workspace and Linear Gates
Quantum Physics
2025-08-01 v1
Abstract
In 2004, Cuccaro et al found a quantum-quantum adder with gate cost and ancilla qubits. Since then, it's been an open question whether classical-quantum adders can achieve the same asymptotic complexity. These costs are particularly relevant to modular arithmetic circuits, which often offset by the classically known modulus. In this paper, I construct an adder that uses 3 clean ancillae and Toffoli gates to add a classical offset into a quantum register. I also present an adder with a Toffoli cost of that uses 2 clean ancillae and dirty ancillae. I further show that applying the presented adders conditioned on a control qubit requires no additional workspace or Toffolis.
Cite
@article{arxiv.2507.23079,
title = {A Classical-Quantum Adder with Constant Workspace and Linear Gates},
author = {Craig Gidney},
journal= {arXiv preprint arXiv:2507.23079},
year = {2025}
}