arXiv Science⌕ Search

arXiv · 2610.25315

Exact quantum Hamming-weight computation at optimal depth and minimum width

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.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Wei Zi, Pei Yuan, Junhong Nie. 2026-10-18. Exact quantum Hamming-weight computation at optimal depth and minimum width. https://arxiv.org/abs/2610.25315

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related papers

Quantum superposition of black hole states as a communication resource

The interplay between black holes and quantum information has revealed deep connections between gravity and quantum mechanics. For example, the classical spacetime geometry of a black hole has been shown to degrade quantum entanglement shared by nearby observers, one of whom is in free fall. Here we examine how this picture changes when the black hole's mass degrees of freedom are allowed to exist in a coherent quantum superposition, corresponding to a superposition of distinct spacetime geometries. We show that such quantum coherence can mitigate the loss of entanglement between nearby observers, thereby enhancing the performance of quantum communication protocols operating in the vicinity of the black hole.

quant-ph↗

Classical simulators as quantum error mitigators via circuit cutting

We introduce a circuit cutting-based error mitigation framework, simulated quantum error mitigation (SQEM), in which an auxiliary error-mitigation subcircuit is simulated classically while the main computation is executed on quantum hardware. For the class of circuits considered here, SQEM can be implemented with polynomial overhead by mitigating one qubit at a time and classically recombining the resulting output distributions. This qubit-wise strategy avoids the exponential overhead of cutting all protected qubits simultaneously, while providing a scalable approximation to joint mitigation. We demonstrate the method using Pauli check sandwiching within VQE hardware-efficient ansätze and obtain ground-state energies close to noiseless ansatz simulations, including chemical accuracy for LiH.

quant-ph↗

A quantum oscillator interacting with a classical oscillator

We study a quantum oscillator interacting with, and back-reacting on, a classical oscillator. This can be done consistently provided the quantum system decoheres, while the backreaction has a stochastic component which causes the classical system to undergo diffusion. Nonetheless, the state of the quantum oscillator can remain pure conditioned on the trajectory of the classical oscillator. We solve the system using the classical-quantum path integral formulation, and compute the free and bridge correlators of the theory, which we use to find the heating rate. In addition, we explicitly compute the conditioned, and unconditional purity of the system. This serves as a toy model for a number of other systems in which one subsystem can be treated as effectively classical, such as a scalar quantum field interacting with another field undergoing decoherence, or a system emitting radiation, one of which is treated classically.

quant-ph↗