Quantum computing · Theory (AI-assisted)

Dicke states of any weight in logarithmic depth with no ancilla qubits

Yunqi Huang, Wei Zi, Jianhao He, Zekun Ye, Shenggen Zheng

arXiv:2611.27640v1 ↗PDF ↗Submitted 20 November 2026

Question
The Dicke state \(\ket{D^n_k}\) is the equal superposition of all \(n\)-bit strings with exactly \(k\) ones. It is a standard resource in metrology and in decoded quantum interferometry, and every nontrivial one needs \(\Omega(n)\) gates and \(\Omega(\log n)\) depth to prepare. Known ancilla-free circuits meet both bounds only when \(\min(k,n-k)\) is a constant; for the balanced state \(k=n/2\) they use \(O(n^2)\) gates and linear depth, and Yuan and Zhang conjectured in 2025 that depth \(\Omega(k)\) is unavoidable without ancillas. Can every Dicke state be prepared exactly with \(O(n)\) gates in \(O(\log n)\) depth using only the \(n\) output qubits?
Result
Yes. For every \(n\ge2\) and \(1\le k\le n-1\) the paper gives an exact circuit of \(O(n)\) single-qubit gates and CNOTs, of depth \(O(\log n)\), on the \(n\) output qubits alone. Both bounds are optimal, and the balanced case refutes the conjectured \(\Omega(k)\) depth lower bound. The circuit applies a layer of rotations, a sign correction that depends only on Hamming weight, and a second layer of rotations, which gives a state whose overlap with the target is at least a constant. A constant number of exact amplitude-amplification steps finishes the job. A classical algorithm writes the circuit in time polynomial in \(n\), with exactly computed signs and angles.

The paper in detail

A Dicke state is symmetric under permuting qubits, and the \(n+1\) Dicke states \(\ket{D^n_0},\dots,\ket{D^n_n}\) span the symmetric subspace. A tensor-power rotation \(R_y(\varphi)^{\otimes n}\) keeps that subspace invariant, and so does any operation that multiplies each \(\ket{D^n_w}\) by a phase depending on \(w\). The construction uses only these two kinds of operations, so the whole computation happens inside an \((n+1)\)-dimensional space, even though the circuit acts on \(n\) qubits.

The first ingredient applies \(\ket{D^n_w}\mapsto e^{if(w)}\ket{D^n_w}\) for any function \(f\), with \(O(n)\) gates and \(O(\log n)\) depth and no ancilla. Split the qubits into blocks of 31. On symmetric inputs each block lies in the span of its 32 Dicke states, so a fixed 31-qubit unitary can rewrite the block's Dicke state as its weight in five binary digits followed by 26 qubits in \(\ket0\). Those freed qubits hold a tree of carry-save adders that sums the block weights, the phase is applied by a tree of flags addressed by the total, and everything is undone. A careful count shows the freed qubits always suffice.

The second ingredient is a good starting state. One rotation layer prepares the product state \(\bigl(\sqrt{1-k/n}\ket0+\sqrt{k/n}\ket1\bigr)^{\otimes n}\), whose Hamming weight is binomial with mean \(k\). Its overlap with the target is only \(\Theta(k^{-1/4})\), which would need \(\Theta(k^{1/4})\) amplification steps. The fix is to imagine rotating the target slightly, by \(\theta=O(n^{-1/2})\), compute the signs of the rotated target's Dicke coefficients, impose those signs on the product state, and rotate back. All the product state's weight then adds up in phase with the target, and the overlap becomes a constant.

With a constant overlap \(F\), amplitude amplification with reflections built from the phase circuits reaches the target in \(O(1)\) steps, and a final step with two tuned phases removes the remainder exactly. The proof bounds the overlap below by \(1/128\) using a comparison with a continuous-time quantum walk on the weight lattice, whose amplitudes are Bessel functions. Algorithm 1 instead computes the overlap exactly for four candidate angles and keeps the best. For \(n=128\), \(k=32\) it chooses \(\theta\) with overlap \(0.8384\), so only the phase-matching step is needed, against two amplification steps from the plain product state.

Transferable methods

  1. Weight-dependent phases using freed qubits of the symmetric state

    A phase that depends only on Hamming weight normally needs a register to count the ones. On symmetric states, compressing each small block to its binary weight empties most qubits, and those become the counting register.

    Partition the \(n\) qubits into \(Q=\lceil n/31\rceil\) blocks of sizes \(s_i\le31\). A Dicke state decomposes over blocks as \[\ket{D^n_w}=\sum_{\sum_i j_i=w}\sqrt{\frac{\prod_i\binom{s_i}{j_i}}{\binom nw}}\;\bigotimes_i\ket{D^{s_i}_{j_i}},\] so on the symmetric subspace each block only ever holds a block Dicke state. A fixed unitary \(V_s\) with \(V_s\ket{D^s_j}=\ket{\mathrm{bin}(j)}\ket{0^{s-5}}\) acts coherently on all \(j\), leaving at least \(n-5Q\) qubits in \(\ket0\).

    The \(Q\) five-bit numbers are summed by rounds of carry-save adders, each mapping \((a,b,c,0)\) to \((a,b,a\oplus b\oplus c,\ ab\oplus ac\oplus bc)\), which preserves \(a+b+c\) as sum plus twice carry. Each round turns triples into pairs, so after \(O(\log Q)\) rounds two numbers remain and a ripple adder writes the total into \(m=\lceil\log_2(n+1)\rceil\) qubits. The paper bounds the carry qubits by \(\sum_t(5+t)g_t\le7(Q-2)\) and the peak space by \[5Q+7(Q-2)+(2m-1)\le14Q-7\le n.\] Editorial check: this and the phase-stage bound \(12Q+2L-10\le n\) hold for every tested \(n\) from 32 to 200000.

    The phase stage copies the low-order bits of the total by CNOT fan-out trees and walks a binary tree of flags, one Toffoli and one CNOT per node, so that exactly the leaf matching the total weight is marked; a single-qubit phase on each leaf applies \(e^{if(w)}\). Reversing the tree, the adders and the compressions returns every scratch qubit to its block, leaving \(e^{if(w)}\ket{D^n_w}\).

    How to reuse it

    Compressing a symmetric or otherwise redundant encoding to make room for workspace applies wherever a computation stays inside a small invariant subspace, for example permutation-invariant algorithms, phase oracles on Hamming weight, and symmetric-subspace simulations.

  2. Sign correction to a constant overlap, then exact amplification

    The product state has the right weight distribution but too little overlap with the target, because its components do not interfere constructively. Matching their signs to those of a slightly rotated target makes every component contribute positively.

    Write the product state as \(\ket P=\sum_wa_w\ket{D^n_w}\) with \(a_w^2\) binomial, and let \(\beta_w=\bra{D^n_w}R_\theta\ket{D^n_k}\) with \(R_\theta=R_y(\theta)^{\otimes n}\). With the sign correction \(S\ket{D^n_w}=\mathrm{sgn}(\beta_w)\ket{D^n_w}\), \[F=\bra{D^n_k}R_\theta^\dagger S\ket P=\sum_wa_w|\beta_w|.\] Near weight \(k\), \(a_w\gtrsim\sigma^{-1/2}\) over a window of width about \(\sigma=\sqrt{k(1-k/n)}\). Comparing the rotation with a walk of constant coupling gives \(|\beta_{k+j}|\approx|J_j(z)|\), and Bessel bounds give \(\sum_{|j|\lesssim z}|J_j(z)|\gtrsim\sqrt z\). Choosing \(z\) proportional to \(\sigma\) makes the product of the two scalings a constant; the proof gives \(F\ge1/128\).

    Signs are computed exactly. With \(q=4n/d^2\), \(\beta_w\) is a positive factor times the integer \(H_w=\sum_j(-1)^{k-j}\binom wj\binom{n-w}{k-j}q^j\), which satisfies the Krawtchouk recurrence \[(n-w)H_{w+1}=[n-w+qw-k(q+1)]H_w-qwH_{w-1}.\] Editorial check: the recurrence and the resulting signs match a direct computation of \(\beta_w\) exactly in the tested cases.

    With \(\alpha=\arcsin F\), \(t=\lfloor\pi/(4\alpha)-1/2\rfloor\) standard steps bring the target amplitude to \(\sin\beta\) with \(\beta=(2t+1)\alpha\le\pi/2\). One more step with phases \(u\) on the target and \(v\) on the starting state cancels the orthogonal remainder when \[\mathrm{Re}\,u=-\cot(2\alpha)\cot\beta,\qquad v=-\bar\xi/\xi,\] where \(\xi\) is the resulting overlap with the starting state. Editorial note: in the cases computed here the best of the four candidate angles gives \(F>1/\sqrt2\), so \(t=0\) and only this final step is used.

    How to reuse it

    Matching the signs of a cheap state to those of a nearby target state, then amplifying a constant overlap, is a general recipe for exact preparation of states with known amplitude structure, such as other symmetric or weight-structured states.

Source: Sec. III (Lemma 1: block compression, carry-save addition, phase tree; Eqs. (1)–(5)); Sec. IV (sign-corrected rotation, quantum-walk comparison, Bessel bounds; Eqs. (6)–(12)); Sec. V (exact amplification and phase matching). Based on the linked paper version. Derivations marked as editorial, and suggested uses in other problems, are editorial guidance rather than results of the paper.

Context & limitations

Why it matters. The result closes the asymptotic question for exact Dicke-state preparation in the standard gate model, without the \(O(n\log n)\) ancillas that earlier polylogarithmic-depth methods needed. The new tool is a way to apply any phase that depends only on Hamming weight to a symmetric state using the state's own qubits as scratch space: symmetric blocks are compressed into binary counts, which frees most qubits. Small-scale numerics done here suggest the constant is benign, since the best starting overlap stays near \(0.8\) and one final phase-matching step suffices.

Limitations. The gate count and depth are asymptotic, and the paper reports no explicit constants. Each 31-qubit block is compressed by an exactly synthesized unitary of unspecified, though constant, size, and the arithmetic uses Toffoli gates and CNOT fan-out trees with long-range connectivity. Gates are arbitrary single-qubit rotations with algebraic angles, so the cost in a fault-tolerant gate set such as Clifford+T is not addressed; the authors list finite gate sets and restricted connectivity as future work. The proven overlap bound, \(1/128\), is far below the overlaps seen in practice. The authors state that OpenAI ChatGPT (Codex) assisted with the abstract and all sections, including literature comparison, proof development and checking, drafting, figures and resource accounting, and that its contributions include generated mathematical arguments and code.

Description based on the full arXiv HTML of v1, read 2026-11-24: all sections, including Lemma 1 and its space accounting (Eqs. 1–5), Lemma 2 with the quantum-walk and Bessel bounds (Eqs. 6–12), the amplification and phase-matching proof (Sec. V) and Algorithm 1 with the Krawtchouk recurrence (Sec. VI). Editorial checks: the recurrence (13) and the sign rule were compared with a direct computation of the rotated Dicke amplitudes for (n, k) = (10, 3), (17, 8), (40, 13) at every candidate angle and agree exactly. For n = 128, k = 32 the overlaps are 0.2850, 0.5858, 0.8384 and 0.8130 for d = 0, 1/4, 1, 2, matching Fig. 2. Over all n ≤ 160 and 1 ≤ k ≤ n/2 the best of the four overlaps is never below 0.8047; at n = 400, 1000, 5000 and 20000 it lies between 0.79 and 0.90. Simulated in the two-dimensional amplification subspace, the phase-matching formulas give exactly the target (residual below 1e-16) for starting overlaps from 0.01 to 0.95. The space inequalities (4) and (5) hold for every tested n from 32 to 200000.