WorksPhysics and Astronomy
Ancilla-Free Exact Dicke-State Synthesis with Optimal Size and Depth
Abstract
We construct exact circuits for -qubit Dicke states of any Hamming weight using single-qubit gates and CNOTs in depth without ancillary qubits. The gate count and depth are asymptotically optimal for every . We compress symmetric blocks to free output qubits for weight-dependent phases. A sign correction followed by a collective rotation produces a state whose overlap with the target is at least a positive constant, so exact amplitude amplification takes steps. For balanced Dicke states (), the logarithmic depth disproves the depth lower bound conjectured by Yuan and Zhang (2025).
Introduction
The -qubit Dicke state of weight is the uniform superposition of all computational basis states with exactly ones,
where is the Hamming weight of . These states form an orthonormal basis of the symmetric subspace [1]. In the decoded quantum interferometry algorithm, represents a uniform superposition over all sets of error locations in a codeword [2]. In quantum metrology, the balanced state serves as a probe for estimating small collective spin rotations when is even [3].
For , preparing requires gates [4], [5] and depth [6]. When is constant, the circuits of Bärtschi and Eidenbenz [7] and Yuan and Zhang [6] attain both bounds without ancillary qubits. For balanced Dicke states, however, their bounds give gates and depth (Table I). Liu, Childs, and Gottesman achieve polylogarithmic depth for arbitrary weights by coherent symmetrization, using ancillary qubits [8]. We ask whether every Dicke state admits a linear-size preparation circuit that attains optimal depth using only the output qubits.
Problem 1 (Exact Dicke-state preparation). Can every -qubit Dicke state be prepared exactly using single-qubit gates and CNOTs, with depth and without ancillary qubits?
Our Results
Our circuits meet the size and depth bounds in Problem 1 using only the output qubits.
Theorem 1. For every and , there is an ancilla-free circuit that prepares exactly using arbitrary single-qubit gates and CNOTs, with depth.
In particular, for , our logarithmic-depth construction rules out the depth lower bound conjectured by Yuan and Zhang [6] for Dicke-state preparation. We call the Hamming weights nontrivial. For , the input is already the target state. For , we prepare the target by applying a Pauli gate to each qubit in parallel.
For every nontrivial Dicke state, the reduced state of any pair of qubits is entangled [4]. Huang et al. [5] call states with this property -like and show in their Supplemental Material that preparing any such -qubit state requires CNOT gates. Yuan and Zhang [6] show that preparing any nontrivial -qubit Dicke state requires depth . Thus our gate count and depth are both asymptotically optimal.
Related Work
Bärtschi and Eidenbenz give exact Dicke-state preparation using gates and depth without ancillary qubits [9]. Their construction also yields coherent preparation of symmetric states. Bellante et al. [10] develop TreeRLSP, a tree-tensor-network method for preparing regular language states, including Dicke states.
Liu, Childs, and Gottesman give deterministic coherent symmetrization [8]. Zij, Yuan, and Nie [11] start from a biased product state and use an exact Hamming-weight counter to implement the reflections for amplitude amplification steps. Our sign correction and inverse rotation reduce the number of steps to . Khattar et al. [2] use a reversible divide-and-conquer algorithm to map each index to the corresponding set of occupied positions. Their circuit uses gates for a sparse encoding of Dicke states.
Joshi and Vasconcelos give exact constant-depth Dicke-state preparation with unbounded fanout [12]. Gretta, Gupta, and Joshi obtain constant-depth preparation of polylogarithmic-weight Dicke states using unbounded-control Toffoli gates, and of arbitrary symmetric states with additional fanout gates [13]. Their Dicke-state construction combines constant initial overlap and uniform amplitudes in the target-weight subspace with exact amplitude amplification.
Yu et al. use collective measurements and feedback [14]. For even , Yang, Wei, and Yin prepare with an adaptive circuit of depth or a unitary circuit of depth [15]. Both use additional qubits and succeed with constant probability. They ask whether a unitary circuit can achieve depth with ancillary qubits. Theorem 1 achieves this depth using only the output qubits.
Construction Overview
Our construction has three components: a constant-overlap initial state, ancilla-free weight-dependent phase circuits, and exact amplitude amplification. Figure 1 shows how they fit together.

Figure 1. Circuit overview. (a) For an input , compresses each block as illustrated. The qubits in state are used to compute the total weight with and apply its phase with . uncomputes the arithmetic and decompresses the blocks. (b) For , prepares the initial state, amplifies its target component, and completes phase matching and global-phase correction (Section V). Here and .
Table 1. Selected upper bounds for deterministic exact preparation of a Dicke state of weight by unitary circuits. Here and .
For the entries marked , we bound the gate count by multiplying width and depth for the full circuit in [8] and for each subcircuit separately in [6]. By [6 Lemma 12], we can limit each division subcircuit to temporary qubits while preserving the depth bound. This gives gates per division subcircuit and gates in total after summing over the division and leaf subcircuits.
A constant-overlap initial state. After bit complementation, assume . One layer of single-qubit rotations prepares the biased product state
Its overlap with is . We choose the signs of the Dicke coefficients of to match those of a rotated Dicke state. Set and . Apply a weight-dependent sign correction , taking , and then apply . The resulting target overlap is
For sufficiently large , choose . Let denote the standard deviation of the Hamming weight in . On a weight interval of width centered at , every is . We approximate the collective rotation by a quantum walk and show that the sum of the magnitudes of its amplitudes over this interval is . Multiplying these bounds gives a constant overlap for the walk after sign correction. The approximation error is small enough that the overlap for the collective rotation remains bounded below by a positive constant. For bounded , the product state alone suffices (Lemma 2).
Weight-dependent phases without ancillas. We need the phase circuit only on the symmetric subspace . For such inputs, each full block of 31 qubits lies in the span of its 32 Dicke states. Encoding the block weight in five qubits leaves the other 26 in . We use these qubits to compute the total weight and apply the corresponding phase, then reverse the arithmetic and decompress the blocks. Lemma 1 thus implements any prescribed weight-dependent phase on with gates and depth using only the output register. This gives both the sign correction and the phase shifts needed for amplification.
Exact amplitude amplification. Let prepare the initial state above. Following the constant-overlap approach of [13], we amplify the target amplitude by alternating phase shifts on the target and on the initial state. The latter shift uses and . Since the initial overlap is at least a positive constant, iterations suffice. A final phase-matching step cancels any remaining component orthogonal to . Each step uses gates and depth, proving Theorem 1.
Preliminaries
States and notation. The Dicke states form an orthonormal basis of the symmetric subspace
For , define by . We use to denote the corresponding computational basis state. The symbol denotes bitwise addition modulo two. All logarithms are base two.
Circuit model. We use arbitrary single-qubit gates and CNOTs. Circuit size counts these elementary gates. Depth counts layers of gates acting on disjoint sets of qubits. A Dicke-state preparation circuit maps to exactly.
For state preparation, ancillas are qubits beyond the output qubits.
Weight-dependent phases within the output register
We construct an ancilla-free circuit that applies a prescribed phase to each Dicke component of a symmetric state. This operation is used for sign correction and amplitude amplification in the state-preparation circuit.
We compress each constant-size symmetric block into a binary encoding of its weight [9]. The resulting qubits in state are used to compute the total weight by reversible carry-save addition [16]. After applying the required phase, we reverse the computation and decompress the blocks.
Lemma 1. For every function , there is an -qubit circuit with gates and depth satisfying
Proof. For , exact synthesis [17] gives a circuit with constant gate count and depth. For , partition the qubits into blocks of sizes , where for and . Set . Five qubits suffice to encode each block weight, leaving enough space for the addition and phase circuits below. For each block size , choose a unitary satisfying
for every block weight . A single acts coherently on all these weights. Since , each has an exact implementation with constant gate count and depth without ancillary qubits [9, 17]. Applying these circuits to all blocks in parallel requires gates and constant depth. The decomposition
allows each block to be compressed by . Since block yields qubits in state for every , the compressed state contains qubits in state . Summing the encoded block weights gives the total Hamming weight .
Summation and storage. Treat the binary block weights as rows and sum them using a tree of reversible carry-save adders. Let . Each full adder uses one qubit initialized to to store the carry:
The identity gives a constant-size implementation. First XOR into , and compute their product into the carry qubit. Then XOR into that qubit, restore , and XOR into the sum qubit.
The sum and carry satisfy . Toffoli gates admit constant-size ancilla-free decompositions [17]. Missing bits are treated as zeros. A column with two input bits uses one Toffoli gate to compute the carry and one CNOT to replace the second bit by their XOR. Within each round, adders for different triples or columns act on disjoint qubits and run in parallel. We retain the input and carry bits needed for uncomputation.
For the rows of at most five bits, let be the number of rows remaining to be summed after carry-save rounds with . Each round replaces triples by pairs, so . Let be the number of rounds needed to reduce the rows to two. Then
Each round reduces the row count by , so . Summing over gives
Round has at most columns. The total number of carry qubits used across all rounds is at most
This gives gates and depth.
Add the two remaining numbers into an -qubit register initialized to using the carries
and sum bits . Uncompute the carries while preserving . This uses carry qubits and gates and depth. Since , we have . Together with the qubits initially used to encode the block weights and at most carry qubits retained from the carry-save additions, the total space is at most
Phase application. The total weight stored in determines the phase . The phase circuit reuses the qubits reset to by uncomputing the temporary carry bits of the final ripple-carry adder. Split into three high-order bits and low-order bits, and set . The encoded block weights and the carries retained from the carry-save additions together use at most qubits.
For each low-order bit , a balanced CNOT tree creates additional computational-basis copies. The trees run in parallel and collectively use additional qubits in state and gates with depth . The copies are reused across all high-order cases and uncomputed after the last case.
For each high-order value, compute a flag indicating whether the three high-order bits equal that value. This uses at most three available qubits in state for the root and intermediate flags. Use the equality flag at the root to construct a binary prefix tree for the low-order bits. At a node, let be the flag and a copy of the corresponding low-order bit of . Let be an available qubit in state . Apply a Toffoli from to followed by a CNOT from to . This replaces by . The parent qubit is reused for the branch with . Thus, a node is marked exactly when the high bits match and the low bits read so far agree with its path. The nodes at level use distinct copies of bit , so they can be processed in parallel. The tree has depth and uses additional flag qubits. Apply at each leaf, making the phase angle be zero for . On each computational basis input, only the leaf matching the full weight is marked across all high-order cases. Reverse the tree and the computation of the high-order equality flag before the next high-order case.
The phase stage uses at most temporary qubits within the output register. Including , the phase stage therefore occupies at most
Indeed, and for . The maximum number of qubits used during addition is bounded separately by (4). The same temporary qubits are reused in both stages.
Uncompute the arithmetic, then invert the block compressions. The result is . The high-order register has constant size, so the phase stage uses gates and depth . Together with compression and arithmetic, this proves the stated bounds.
To apply a phase to a single specified weight for , test whether equals that weight. Apply one phase gate to the test flag and then reverse the test. The temporary carry qubits reset to suffice, and the phase stage uses gates and depth. For weight zero, test that all encoded block weights are zero using a balanced AND tree, apply the phase, and reverse the test and compression. This avoids weight summation. If is the number of bits encoding the block weights, this requires available qubits in state , with $2B_0-1\le10Q-1\le nn\ge32.
An initial state with constant overlap
Starting from a product state, we construct an initial state whose overlap with is bounded below by a positive constant independent of and . This bound allows us to prepare exactly using amplitude amplification steps.
Complementing all bits reduces nontrivial weights to . Set and define the product state
where . The probabilities form a binomial distribution with mean and standard deviation . Set for integers or , and let . Then . The standard deviation of the weight distribution satisfies . By Stirling’s formula, the coefficient of in is . Direct amplitude amplification therefore takes iterations as grows.
Let
denote the single-qubit rotation about the axis, and recall that . For , let
We set the sign at zero to . Section VI computes exactly for the angles used below. Lemma 1 implements with gates and depth. With , define
For , let denote this overlap at . The algorithm chooses the largest overlap among (Section VI). Figure 2 illustrates the resulting sign correction. The first two candidates suffice for the following bound.
Figure 2. For and , the algorithm selects , giving . At this overlap, only the final phase-matching step is needed. Starting from the product state () requires two standard amplification steps before phase matching. The plots show at the selected angle. (a) Product-state coefficients and rotated-target coefficients . (b) Contributions to the overlap after the inverse rotation, without sign correction and with it.
Lemma 2. There is a constant such that for all $1\le k\le n/2.
For large , we compare the rotated state at with a quantum walk on the weight lattice. On an interval of width around , each is and the absolute walk amplitudes sum to . Their weighted sum therefore remains bounded below by a constant after accounting for the approximation error. For bounded , the product state suffices.
Amplitudes of the Product State
We first establish
At , Stirling’s bounds give .
For the second bound, set and define
Stirling’s bounds for , , and give
Since and , both and lie in . Thus and . Throughout , . Since , Taylor’s theorem gives for . The Stirling correction for the denominator factorials is at most . Using and , we obtain
Comparison with a Continuous-Time Quantum Walk
Near weight , the rotation couples adjacent weights with nearly constant strength. We approximate it by a continuous-time quantum walk on with constant couplings. For integer , the Bessel function of the first kind has the integral representation [18]
Set and . Extend by zero outside . For , we claim
Identify with for . Let be the generator of in this basis, extended by zero outside this range. On , define and for . The diagonal change of basis gives , where is a real symmetric tridiagonal operator with off-diagonal coefficients
and zero elsewhere. Compare with . Figure 3 illustrates the two couplings.

Figure 3. Weight-basis comparison, with . The larger nodes mark the starting point , corresponding to Hamming weight . Replacing by gives the walk used to compare with .
For every integer ,
For , subtract the expressions under the square roots and use . Here and . Outside this range, and . Let . Under the Fourier transform, acts by multiplication by . The Jacobi–Anger expansion [18] therefore gives
Applying Parseval’s identity to and its derivative gives and , where . Shifting indices and applying the triangle inequality give
Since and are bounded and self-adjoint, Duhamel’s formula gives
Substituting and gives (9), since taking entrywise absolute values does not increase the distance.
Bounds on Bessel Functions
Set and . Krasikov’s bound [19] gives
Together with [19] and , this implies
Parseval’s identity applied to (10) gives and . Hence
The interval contains constant probability mass, while each absolute amplitude is at most by (11). Hence
Proof of Lemma 2. If , then by (7). Suppose , so , and take . Since on ,
Thus implies . By (7), (12), and ,
By Cauchy–Schwarz and (9), this sum differs from by at most , since . Hence
The two cases give the claim with .
Exact amplitude amplification
Proof of Theorem 1. By bit complementation, assume . For , let multiply by and fix all other Dicke basis states. Lemma 1 implements this operation on . For the angle selected in Section IV, the state has overlap with . If , this state is already . Otherwise, put and write
where is a unit vector orthogonal to . The operator applies phase to . Thus the usual amplification step [20] is . After such steps,
If , apply one phase-matching step [20, 21]. After , the overlap with is . Applying adds to the state. To cancel the coefficient of , we therefore need
Since , the right-hand side must have modulus . Squaring and substituting the expression for gives
For , the choice of gives , so the required real part lies in . For , we have and it equals . Choose on the upper unit semicircle with this real part. Then , and the required second phase is . The coefficient of is then . If , the coefficient is already one after . In either case a single-qubit gate proportional to the identity cancels the final global phase, including the sign in if omitted from its implementation.
Each complete weight-dependent phase circuit and each collective rotation preserves . Lemma 2 gives , so the number of amplification steps is . The circuit consists of one phase circuit and two layers of single-qubit rotations. Each amplification step uses , and two single-weight phase circuits. Lemma 1 therefore gives gates and depth without ancillary qubits, including any final bit flips.
Classical circuit generation
Algorithm 1 generates the circuit by selecting the rotation with the largest overlap after sign correction. It compares the four squared overlaps exactly and keeps the smallest in case of a tie. Both (13) and (14) use the target weight , with .
Proposition 1. Algorithm 1 generates the circuits of Theorem 1 in time polynomial in .
Proof. An integer recurrence determines every required sign exactly. Each overlap has algebraic degree at most four, and all lie in a common real field of degree at most two. As in Section IV, assume after bit complementation.
Algorithm 1 Generate a circuit for
Input: Integers and
Output: Layers of CNOTs and exact algebraic single-qubit gates with their qubit indices
if then return the empty circuit
if then return one layer of gates
,
, ,
for in do
Compute by (13) with
Compute by (14)
if then
end for
Generate the sign circuit for using Lemma 1
,
Form from , , and , in that order
if then
Append to the amplification steps for , , (Section V)
if then append to
return
Exact signs. Fix in and suppress its subscript for the moment. Set , an integer for each of the three positive candidates. For any output string of weight , exactly weight- input strings share ones with it. Each has transitions , giving the sign , and unchanged bits. Each unchanged bit contributes after the common factor is taken out of the product. Summing over and normalizing the Dicke states gives
where
Thus , with . Starting from , the Krawtchouk difference relation [22] yields
The last term is omitted at . Indeed, for , and taking the coefficient of in
gives (13). At the rotation is the identity, so and every sign is .
Overlaps and angle selection. For , write
Separating the even and odd weights in (6) gives
Here , , , are rational. Because , every lies in . For , is rational. All are nonnegative, so comparing their squares in determines the maximizing candidate exactly.
Vandermonde’s identity gives . These integers and the numerators and denominators of , , , have bits. Generating the binomial coefficients consecutively and evaluating the parity sums by Horner’s rule takes arithmetic operations per candidate, including the recurrence. Fast integer arithmetic therefore computes all sign tables and overlaps in bit operations.
Amplification parameters. For the selected overlap , compute . If , then . Otherwise start with and repeatedly form
This adds to the current angle. Accept the update when , and stop when or before the first update with . The number of accepted updates is , and the final pair is . For this is the initial pair. Since , only comparisons are needed.
The formulas in Section V now give the final phases by exact algebraic operations. Adjoining , and to gives a field of degree at most 32. The constant number of operations preserves the bound on coefficient bit lengths, so bounded-degree arithmetic and sign tests take only polynomial time.
Elementary gates. For each block size , compose the inverse coherent Dicke transform [9] with a unary-to-binary conversion. The resulting circuit acts only on the qubits of the block, and the entries of each gate matrix are algebraic numbers. For , exact synthesis of the phase circuit uses algebraic operations and root extractions. These constructions generate the qubit indices, parallel layers and exact algebraic descriptions of the gate matrices in polynomial time in .
Conclusion
We give ancilla-free circuits that exactly prepare any -qubit Dicke state using gates in depth. Both bounds are asymptotically optimal for . By implementing weight-dependent phases within the output kets, we prepare an initial state with constant overlap with the target, so exact amplitude amplification takes only steps. Future work includes reducing the gate count by optimizing the phase circuits and the rotation angle, and adapting the construction to finite gate sets and restricted qubit connectivity.
Acknowledgments
Yunqi Huang and Shenggen Zheng were supported by the Guangdong Provincial Quantum Science Strategic Initiative (Grant No. GDZX2503001) and the Shenzhen Science and Technology Program (Grant No. ZDYJ20251211120859002). Zekun Ye was supported by start-up research funding from Fuzhou University (Grant No. XRC-26004). Wei Zi acknowledges support from the National Natural Science Foundation of China (Grant No. 62602563).
Content Generated by AI
OpenAI ChatGPT (Codex) assisted with the Abstract and Sections I–VII: literature comparison, proof development and checking, drafting and revision, the figures, and resource accounting. Its contributions include generated mathematical arguments and code. The authors are responsible for all claims, references, and results.
References
References
- [1]D. Castro-Silva, T. Gur, and S. Strelchuk, “Symmetric quantum computation,” in 17th Innovations in Theoretical Computer Science Conference (ITCS 2026), ser. Leibniz International Proceedings in Informatics, vol. 362. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2026, pp. 35:1–35:10, arXiv:2501.01214v2.
- [2]T. Khattar, N. Shutty, C. Gidney, A. Zalckman, N. Yosri, D. Maslov, R. Babbush, and S. P. Jordan, “Verifiable quantum advantage via optimized DQI circuits,” 2025, arXiv:2510.10967v1.DOI
- [3]Y. Wang and B. M. Terhal, “Preparing Dicke states in a spin ensemble using phase estimation,” Physical Review A, vol. 104, p. 032407, 2021.DOI
- [4]X. Wang and K. Mølmer, “Pairwise entanglement in symmetric multi-qubit systems,” The European Physical Journal D, vol. 18, no. 3, pp. 385–391, 2002, arXiv:quant-ph/0106145.DOI
- [5]C. Chang, T. Wang, F. Wu, D. Ding, Q. Ye, L. Kong, F. Zhang, X. Ni, Z. Song, Y. Shi, H.-H. Zhao, C. Deng, and J. Chen, “Quantum instruction set design for performance,” Physical Review Letters, vol. 130, no. 7, p. 070601, 2023, Supplemental Material.
- [6]P. Yuan and S. Zhang, “Depth-efficient quantum circuit synthesis for deterministic Dicke state preparation,” 2025, arXiv:2505.15413v1.
- [7]A. Bärtschi and S. Eidenbenz, “Short-depth circuits for Dicke state preparation,” in IEEE International Conference on Quantum Computing and Engineering, 2022, pp. 87–96, arXiv:2207.09998.DOI
- [8]Z. Liu, A. M. Childs, and D. Gottesman, “Low-depth quantum symmetrization,” Physical Review X, vol. 16, p. 031056, 2026, arXiv:2411.0419v2.
- [9]A. Bärtschi and S. Eidenbenz, “Deterministic preparation of Dicke states,” in Fundamentals of Computation Theory, 2019, pp. 126–139, arXiv:1904.07358.DOI
- [10]E. Bellante, R. Irmejs, M. Florido-Llinàs, M. Cea Fernández, M. Crupi, M. Kiser, and J. I. Cirac, “Compiling quantum regular language states,” Proceedings of the ACM on Programming Languages, vol. 10, no. OOPSLA2, pp. 320–347, 2026, article 326; arXiv:2602.02698v1.DOI
- [11]W. Zi, P. Yuan, and J. Nie, “Exact quantum Hamming-weight computation at optimal depth and minimum width,” 2026, arXiv:2610.25315v1.
- [12]M. R. Joshi and F. Vasconcelos, “Constant-depth unitary preparation of Dicke states,” 2026, arXiv:2601.10693v3.
- [13]L. Gretta, M. Gupta, and M. R. Joshi, “Polylogarithmic-weight Dicke states in QAC⁰ and arbitrary symmetric states in QAC⁰,” 2026, arXiv:2604.15298v3.
- [14]Y. Yu, S. R. Muleady, Y.-X. Wang, N. Schine, A. V. Gorshkov, and A. M. Childs, “Efficient preparation of Dicke states,” Physical Review Letters, vol. 136, p. 030601, 2026, arXiv:2411.03428.arxiv.org/abs/2411.03428
- [15]M. Yang, R. Wei, and C. Yin, “Digital quantum algorithms for generating and utilizing spin squeezed states,” 2026, arXiv:2609.36004v1.
- [16]W. Zi, P. Yuan, J. Nie, and S. Zhang, “Efficient depth–ancilla tradeoffs for Hamming weight computation and symmetric Boolean functions,” 2026, arXiv:2608.04627v2.
- [17]A. Barenco, C. H. Bennett, R. Cleve, D. P. DiVincenzo, N. Margolus, P. Shor, T. Sleator, J. A. Smolin, and H. Weinfurter, “Elementary gates for quantum computation,” Physical Review A, vol. 52, pp. 3457–3467, 1995, arXiv:quant-ph/9503016.
- [18]National Institute of Standards and Technology, “NIST Digital Library of Mathematical Functions, chapter 10: Bessel functions,” 2026, eqs. 10.9.2 and 10.12.1–10.12.3. https://dlmf.nist.gov/10.
- [19]I. Krasikov, “Approximations for the Bessel and Airy functions with an explicit error term,” LMS Journal of Computation and Mathematics, vol. 17, no. 1, pp. 209–225, 2014.
- [20]G. Brassard, P. Høyer, M. Mosca, and A. Tapp, “Quantum amplitude amplification and estimation,” in Quantum Computation and Information, ser. Contemporary Mathematics. American Mathematical Society, 2002, vol. 305, pp. 53–74, arXiv:quant-ph/0005055.DOI
- [21]P. Høyer, “Arbitrary phases in quantum amplitude amplification,” Physical Review A, vol. 62, p. 052304, 2000, arXiv:quant-ph/0006031.DOI
- [22]National Institute of Standards and Technology, “NIST Digital Library of Mathematical Functions, sec. 18.22(ii): Difference equations in x,” 2026, eq. 18.22.12 and Table 18.22.2. https://dlmf.nist.gov/18.22.ii, accessed November 5, 2026.
