TRANSMISSION // 2612.03014v1

A Quantum Constant Adder with Logarithmic Depth

Source published

A theoretical circuit adds a known number modulo 2ⁿ using linear-size gates, logarithmic depth and one borrowed qubit, assuming all-to-all connectivity.

AI-generated conceptual illustration for A Quantum Constant Adder with Logarithmic Depth
AI-generated conceptual illustration; not documentary evidence.

Adding a fixed number is a recurring task in quantum arithmetic. Jingquan Luo and Lvzhou Li describe an exact circuit for adding a constant modulo 2ⁿ, with linear gate count and logarithmic depth in an all-to-all connectivity model.

Adding a known number may sound simple, but a quantum circuit must perform the operation reversibly: it cannot discard information in a way that disrupts a quantum computation. Constant addition is one building block in modular arithmetic, which appears in algorithms such as Shor’s factoring algorithm.

Jingquan Luo and Lvzhou Li present a circuit that adds a fixed n-bit constant to an n-qubit register, with the result taken modulo 2ⁿ. Any overflow beyond the register’s n bits is discarded. The circuit is exact in the model studied, rather than an approximation that succeeds only some of the time.

Their construction uses O(n) NOT, controlled-NOT (CNOT) and Toffoli gates, has depth O(log(n+1)), and uses one dirty ancilla. These expressions describe how resource use scales as the register grows; they are not specific gate counts for a particular register size. The paper’s comparison with earlier constant adders identifies improvements in asymptotic gate count or depth, but the result is not an unqualified claim that every implementation will run faster.

A dirty ancilla is a qubit that can be borrowed even if it starts in an unknown state. Unlike a qubit initialized to zero, it may carry correlations with other parts of the system. The circuit must return it unchanged, including those correlations.

Two passes, then parallel operations within each

The construction uses the binary pattern of the constant to divide the arithmetic into two sequential passes: the first updates positions where the constant has a zero, and the second handles positions where it has a one. Within each pass, the targeted bits are grouped into segments. Segment boundaries depend on other register values, so the circuit has to handle those relationships coherently, without measuring the state.

To do this, the authors develop controlled ladders—sequences of reversible operations that propagate information through a register. Their version allows an update to depend on several control bits, and is used to carry out the segmented arithmetic. The passes are sequential, but operations within the circuit can be arranged in parallel layers. Finally, the register is split into two halves: while one half is updated, the other can provide temporary workspace. This lets the construction use only one external dirty ancilla.

The depth claim assumes all-to-all connectivity, meaning any qubit can interact with any other. In that model, the authors show that the circuit has logarithmic depth. This does not establish the same depth on hardware where qubits connect only to nearby neighbours; arranging interactions on such devices could add costs not counted in the model.

What “optimal” means

The authors say the gate count, depth and number of ancillas are optimal in the worst case over constants. Their lower-bound argument considers incrementing by one, for which the highest output bit depends on every input bit. In the stated gate model, this dependence implies a logarithmic depth lower bound, while the argument also establishes a linear gate lower bound. They further argue that an additional qubit is needed for an NCT implementation of increment for register widths of at least four. These are worst-case statements; they do not mean every constant requires the same resources.

This is a result about an abstract reversible-circuit model, not a demonstration on a quantum processor. The analysis counts NOT, CNOT and Toffoli gates and assumes all-to-all connectivity. It does not establish practical runtime, error rates or the full physical cost of fault-tolerant execution. Although constant addition is useful within larger arithmetic routines, the paper does not quantify the resource savings for a complete algorithm such as Shor’s.

The source is an arXiv preprint; the supplied material does not establish that it has undergone peer review. Its claims should be read as results presented by the authors, not as independently confirmed consensus. The paper also says GPT-6.2 was used to discuss and verify ideas and assist with drafting, while the authors take responsibility for the work. Further scrutiny and the fit between the circuit model and real hardware will matter in assessing its practical significance.

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.