A linear-size, logarithmic-depth quantum constant adder with one dirty ancilla

Quantum arithmetic circuits often add known classical constants, for instance when implementing modular arithmetic for Shor's factoring algorithm. We give an exact circuit that performs this addition modulo $2^n$ on an $n$-qubit register. It uses one dirty ancilla and $O(n)$ NOT, CNOT, and Toffoli gates. With all-to-all connectivity, its depth is $O(\log(n+1))$. The gate count, depth, and number of ancillas are optimal in the worst case over constants.

Authors

Institutions

Publication Details

Journal
arXiv
Published
2026-12-02
Primary Topic
Quantum Computing Algorithms and Architecture
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

A linear-size, logarithmic-depth quantum constant adder with one dirty ancilla

Jingquan Luo, Lvzhou Li
arXiv
Quantum Computing Algorithms and Architecture
preprint

A linear-size, logarithmic-depth quantum constant adder with one dirty ancilla

Jingquan Luo, Lvzhou Li
preprint en

Abstract

Quantum arithmetic circuits often add known classical constants, for instance when implementing modular arithmetic for Shor's factoring algorithm. We give an exact circuit that performs this addition modulo $2^n$ on an $n$-qubit register. It uses one dirty ancilla and $O(n)$ NOT, CNOT, and Toffoli gates. With all-to-all connectivity, its depth is $O(\log(n+1))$. The gate count, depth, and number of ancillas are optimal in the worst case over constants.

arXiv
Sun Yat-sen University (CN)
Quantum Computing Algorithms and Architecture
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon