Exact quantum Hamming-weight computation at optimal depth and minimum width
Wei Zi, Pei Yuan, Junhong Nie
Key points
From the paper's conclusion- We also give exact circuits for every symmetric Boolean function with the same depth and size bounds, using only $m$ ancillary qubits returned to zero.
Abstract
Hamming-weight computation and symmetric Boolean functions are basic primitives for quantum arithmetic and state preparation, where circuit depth and qubit overhead matter. We construct an exact circuit computing the Hamming weight of an $n$-qubit register with depth $O(\log n)$ and size $O(n\log n)$, using only the $n$ input qubits and $m=\lceil\log_2(n+1)\rceil$ binary output qubits. The circuit uses arbitrary one-qubit gates and CNOTs with all-to-all connectivity. Both depth and total width are optimal. Our constructions combine tree structures and pipelining, temporarily using input qubits as workspace. We also give exact circuits for every symmetric Boolean function with the same depth and size bounds, using only $m$ ancillary qubits returned to zero. Finally, we apply the counter to exact preparation of balanced Dicke states for even $n$. With only $O(\log n)$ ancillary qubits, we obtain expected depth $O(\log^2 n)$ using measurements and classical feedforward, and depth $O(n^{1/4}\log n)$ using unitary gates alone.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Ancilla-Free Exact Dicke-State Synthesis with Optimal Size and DeptharXiv · 2026
- Beyond the $n/2$ Threshold: Quantum Query Complexity for Computing Hamming Weight and Symmetric FunctionsarXiv · 2026
- A Dichotomy for Exact Quantum Circuit AmplitudesarXiv · 2026
- Exact Quantum Algorithms for Composed Boolean FunctionsarXiv · 2026
- Vanilla Exact Synthesis of CNOT Circuits is NP-hardarXiv · 2026
- Two exact quantum queries use at most six variablesarXiv · 2026