Any Clifford+T circuit of depth D can be implemented exactly in constant depth with fanout using poly(n)·2^O(D²) width, breaking the double-exponential classical barrier and collapsing the magic hierarchy.
There is an absolute constant h* such that every bounded-arity Clifford+ T circuit acting on n qubits (including any input auxiliary qubits) admits an exact, clean unitary implementation of depth at most h* over {H,S,T,CNOT,FANOUT} (preserving arbitrary superpositions and entanglement with any reference) with total width Word(n,D)≤poly(n)2O(D2) for ordinary depth D, and WT(n,d,ℓ)≤poly(n)2O(d2logℓ)=poly(n)ℓO(d2) for d layers of T gates separated by arbitrary Clifford circuits (including an initial and a final Clifford layer) of spread at most ℓ≥2 (including dense Cliffords with ℓ≤2n). Here the spread of a Clifford unitary is the largest Hamming weight of a row or column of its 2n×2n binary symplectic matrix (Definition 2.2).
(Hadamard–diagonal form with frame labels). Let U=Cd+1TdCd⋯T1C1 be a Clifford+ T circuit on n qubits with T -depth d, where each Tj is a layer of τj gates from {T,T†} and each Cj is an n -qubit Clifford unitary with symplectic frame map Mj:=MCj (Definition 2.2). Set τ=∑j=1dτj, and let ℓ≤2n bound the row and column weights of every Mj. Then FoutHYmDm⋯HY2D2HY1D1Vprepketψket0=Uketψ⊗ketη, with an auxiliary state ketη independent of ketψ, and with the following properties. (a) Blocks. There are m=d+1 blocks: one per T layer and a final block j=d+1 (τd+1=0) that only writes the last frame vd+1. (b) Adjacent use. Each diagonal Dj acts only on read-only native wires Yro (holding the precomputed shifts sj), on Yj-1 after HYj-1, and on Yj. Diagonals two or more blocks apart share only Yro. (c) Degree. Every Dj is a Boolean phase of degree at most 4 (and at most 3 for j=d+1). (d) Registers. The register sizes are |Yj|=8τj+2n for j≤d (the eight vertices in columns 0--3 of each T gadget plus 2n label targets) and |Yd+1|=2n. The remaining 2τ column- 4 vertices (live outputs Bell-connected inside Vprep and leftover dummies) sit outside the chain registers. (e) Terms. Each diagonal Dj has O(ℓ(τj+n)) monomials, for L0=O(ℓ(τ+n(d+1))) monomials in total. (f) Width. The chain blocks use ∑j|Yj|=8τ+2n(d+1) register wires, 2τ column- 4 wires, and at most 5L0=O(ℓ(τ+n(d+1))) clean auxiliary qubits for Corollary 2.12 (at most 4L0 fanout copies plus at most L0 internal scratch qubits for degree- 4 C4Z gates). Preparing each intervening Clifford layer as a single 2n -qubit Choi state (locally Clifford-equivalent to a graph state [DDM03, VdNDDM04]) together with the T -Choi states and the native shift parities s1,…,sd+1 in Vprep uses O(n2(d+1)) wires; in total, the circuit has width O(n2(d+1)). (g) Depth. The circuits Vprep (gate teleportation, native shift parities, and fixed gadget preparations), Fout, and each block HYjDj (Corollary 2.12) all have constant depth with fanout. The total depth is O(d+1). (h) Incidence. Each wire of Yj is touched by O(ℓ) monomials in Dj and in Dj+1, so the incidence is a0=O(ℓ). When ℓ=O(1) (for example, when every clock layer is its own block), a0=O(1).
Going deeper
The catalyst construction of CZ. (a) The catalyst ketkappa lives on three registers kappa1,kappa2,kappa12 modulo 4. The parity p12=x1⊕x2 is computed into a fresh auxiliary qubit and uncomputed afterwards. Three controlled-swap blocks (pink) each read one bit: kappa1mathrel+=x1, kappa2mathrel+=x2, kappa12mathrel-=p12. Together they change the sum by 2x1x2, which flips the sign of ketkappa exactly when x1x2=1, and returns ketkappa. The three shift blocks commute, so they can be applied in any order (or in parallel once each control bit is copied across its swaps). (b) Implementing +1=BA+ on a one-hot register as two layers of controlled swaps.
(Growth in one merge pass). Let V=HYmDm⋯HY1D1 be a Hadamard–diagonal chain with parameters (m,kmax,L,a) (Definition 5.1). Apply the merge of Lemma 5.7 in parallel to all consecutive disjoint pairs (routing each boundary wire q∈Y2(j-1) by the four-case rule of Section 5.6, adjoining to merged block j the commuting retired-frame writer (-1)fj-1ret·tj-1ret on fresh ket+ -initialized terminal targets tj-1ret followed by Htj-1ret, and adding one final write-only block for the last pair). This produces a chain satisfying properties (i)–(v) and invariants (a)–(b) of Definition 5.1. For a≥2, its parameters satisfy m′≤⌈m/2⌉+1,k′max≤10,L′≤KLa5,a′≤Ka4, where K is an absolute constant for kmax≤10 (and K(kmax)=2O(kmax) on a first pass with kmax>10).
Imagine you have a long assembly line where each station must wait for the previous one to finish. You want to run all stations at once by cloning the workpiece onto parallel tables. Classically, the number of tables you need is doubly huge: huge raised to huge. Quantum assembly lines were recently shown to need only singly huge tables, but that bound ignores how short the line is.
This paper shows that if the line has D stations, you can run them all at once using roughly 2^(D²) tables — far fewer than the doubly-huge classical bill. If the line is only about √(log n) stations long, a merely polynomial number of tables suffices. The secret is a 'catalyst': a reusable helper that breaks an expensive check into cheap pieces. Each cheap piece can be slid past the barrier between stations, and the catalyst comes back unchanged.
The catch: the number of tables, while much better in theory, is still enormous for long lines, and the constant overhead — the paper estimates under ten thousand layers of fixed wiring — is not meant for any real machine. The paper also leans heavily on three AI systems for the construction and writing, and on other preprints not yet reviewed.
The abstract, word for word, with the seven densest phrases unpacked.
In a surprising result, Nehoran, Slote and Yuen [NSY26] proved that all unitary matrices can be implemented in constant depth with access to fanout, using an exponential number of auxiliary qubits1. Their construction scales only with the number of qubits that the unitary acts on. In this work we introduce a different method for flattening quantum circuits with fanout, which scales with the depth of the circuit2. Our method builds on measurement-based quantum computation3, where it has long been known that any Clifford circuit can be flattened using gate teleportation. In effect, after every gate the quantum state is teleported back to the start of the circuit, where it arrives up to a Pauli correction. This correction can be moved to the end of a Clifford circuit, because Clifford circuits map Paulis to Paulis. The method breaks down for the T gate, whose Pauli correction becomes an S correction. To include T gates we build a new gadget, inspired by correction protocols in non-local quantum computation, where partial information already suffices to correct an S gate, at the cost of entanglement exponential in the T -depth4. This construction yields the following result: every bounded-arity Clifford+ T circuit on n qubits of depth D admits an exact, constant-depth unitary implementation with unbounded fanout and width poly(n)2O(D2)5. Moreover, we refine the result to circuits of T -depth d whose intermediate Clifford circuits have spread at most ℓ6, a measure of how much a Clifford circuit can mix the Paulis between two layers of T gates. Applied to shallow circuits, these techniques give the following results. Clifford+ T circuits of depth O(sqrtlogn) are in QNC 0f (and hence QAC 0f). Using the compiler of Vasconcelos [Vas26], which synthesizes general rotations directly from T gates, we bootstrap this result to arbitrary bounded-arity quantum circuits of almost the same depth, up to a small approximation error. Additionally, we show that the whole QNC hierarchy can be simulated in QAC 0f with a quasipolynomial number of auxiliary qubits. Finally, our new technique gives a direct compiler that collapses any constant- T -depth Clifford+ T circuit with access to fanout to an absolute constant depth h*, showing that any polynomial-width circuit family in QAC 0f can be approximated (nonuniformly, to inverse-polynomial diamond-norm error) by a circuit of depth at most h* using only Clifford+ T gates and fanout. As a direct consequence, the magic hierarchy collapses to an absolute constant level7 (exactly for constant-depth Clifford+ T local circuits, and approximately in the nonuniform setting for arbitrary two-qubit local gates).
Three lines of prior work converge at this paper.
Read five parts, in this order.
Skip Section 2 if you know QNC⁰_f, fanout parallelization, and Clifford+T. Skip Appendices A–B unless checking the rail-swap details.
If the construction is wrong, these are the places to look first.
(One-pass catalytic merge). Let D1 and D2 be the diagonals of two consecutive blocks HY2D2HY1D1 of a Hadamard–diagonal chain with parameters (m,kmax,L,a) (Definition 5.1), where D1 acts on (Y0,Yro,Y1) with L1 monomials of degree at most dY0 in Y0, dYro in Yro, and dY1 in Y1, and D2 acts on (Y1,Y2) with L2 monomials of degree at most k2. A gate of D2 may touch several wires of Y1. Give each monomial gate g of D2 its own private outer catalyst (Lemma 3.4), and abbreviate a pair (g,S) (with nonempty S⊆supp(g)) by S, collecting all catalyst registers kappaS into kappa with state ketkappa. Then, given a hop register W1 of |Y1| qubits, there exist a circuit Uprep acting on (Y1,W1,Y2,kappa) and a combined diagonal Dcombined acting on (Y0,Yro,Y1,kappa) (never touching Y2) such that, for every state ketψ on (Y0,Yro,Y1,Y2), CcorrectHY1,kappaDcombinedUprepketψket0W1ketkappa=ketηY1,kappa⊗(D2HY1D1ketψ)Y1→W1, where ketη is an auxiliary state independent of ketψ (Fig. 13). On the branch with hop records r on Y1 and Bell records βkappa=(βkappaS)S on kappa, one string per catalyst register kappaS, the correction Ccorrect removes the Pauli byproduct Pr,βkappa=XW1rZW1z(W1)ZY2z(2),z(W1)i=∑SniimSpmod2,z(2)j=∑SnijmSpmod2, where mS(r,βkappa) are the singlet parities of Lemma 5.3, each of degree at most 3 in (r,βkappa). For bounded k2=O(1), the preparation Uprep runs in constant depth with fanout (in general, its depth depends only on k2) and never touches Y0 or Yro. The parameters of Dcombined satisfy k′max≤dY0+dYro+2dY1,LDcombined≤L1(1+a4k2)dY1,a′≤a(1+a4k2)dY1, where a′ is the incidence across the cut before D1. The persistent resource uses |W1|+|kappa|≤|Y1|+L24k2 fresh wires (excluding temporary clean fanout workspace inside Uprep).
(Growth in one merge pass). Let V=HYmDm⋯HY1D1 be a Hadamard–diagonal chain with parameters (m,kmax,L,a) (Definition 5.1). Apply the merge of Lemma 5.7 in parallel to all consecutive disjoint pairs (routing each boundary wire q∈Y2(j-1) by the four-case rule of Section 5.6, adjoining to merged block j the commuting retired-frame writer (-1)fj-1ret·tj-1ret on fresh ket+ -initialized terminal targets tj-1ret followed by Htj-1ret, and adding one final write-only block for the last pair). This produces a chain satisfying properties (i)–(v) and invariants (a)–(b) of Definition 5.1. For a≥2, its parameters satisfy m′≤⌈m/2⌉+1,k′max≤10,L′≤KLa5,a′≤Ka4, where K is an absolute constant for kmax≤10 (and K(kmax)=2O(kmax) on a first pass with kmax>10).
(Coherent T correction). Let earlier records sit on a register ketR, and let (fX,fZ) be the incoming Pauli frame: polynomials over F2 of degree at most δ in R, already including the Bell outcome of the T teleportation. The input state is ∑RγRketR⊗TXfX(R)ZfZ(R)ketψ, with the live qubit possibly entangled with a reference. Then there is a circuit U =Hcols0--3Dsw(-1)Q0S†B2Hcols1--4, Q0(y) =∑k=03(yAkyAk+1+yBkyBk+1), Dsw =(-1)fX(R)∑k∈{0,2}(yAk+yBk)(yAk+1+yBk+1), acting on the earlier records ketR, the live input qubit on A0, a dummy ket0 on B0, and eight fresh qubits initialized in ket0 on columns 1 through 4. Let r=(rA0,rB0,…,rA3,rB3)∈F28 be the new records: the values of columns 0 to 3 after the last Hadamards. The circuit has the following properties. (a) Diagonal. The fixed preparation phase (-1)Q0S†B2 is independent of R, and Dsw is a Boolean diagonal phase of degree at most δ+2 touching only R and columns 0 to 3. (b) Output. The register ketR is only read, since Dsw is diagonal on it. The new records stay on columns 0 to 3, and the output is entangled with (R,r) as ∑R∑r∈F28γRβR,rketRketr⊗XfX′ZfZ′Tketψ⊗ketd(fX,r), where the branch amplitudes βR,r depend only on (R,r) and not on ketψ. In branch (R,r), the live qubit on A4 carries the outgoing Pauli frame fX′=fX+a1+a2,fZ′=fZ+c1+c2+a1fX, where, writing J=A for fX=0 and J=B for fX=1, the byproducts of the two coherent rail swaps are (a1,c1)=(rJ1,rA0) and (a2,c2)=(rA3,rJ2). Explicitly, fX′ =fX+rA1+rA3+fX(rA1+rB1), fZ′ =fZ+rA0+rA2+fX(rB1+rA2+rB2). (c) Degree. As polynomials in (R,r), we have degfX′,degfZ′≤δ+1. (d) Leftovers. The dummy on B4 ends in the computational basis state ketd(fX,r) with d(fX,r)=rB1+rB3+fX(rA1+rB1), and all relative branch phases (including e-iπfX/4) are absorbed into βR,r, independent of ketψ. (e) Depth. For any bounded incoming degree δ=O(1), the circuit U has constant depth with fanout (Corollary 2.12); in general, the depth depends only on δ.
Nothing on this page was recomputed. Every claim points to the paper so you can check it.
We realized, however, that the correction gadget has a lot of internal structure, and that replacing the general gadget might improve on this. We gave this problem and this structure to ChatGPT-Astra 6.2, and it came up with a construction that scales as 2poly(D), with D the circuit depth. This raised the natural question of what the optimal exponent could be. We gave the construction of Astra 6.2 to Claude Fable 5.2 and Gemini Neon, and through iterative improvements by all three AI models, working interactively and mostly with Astra 6.2, we arrived at the final construction with exponent 2, on which this paper is based. We suggested methods to make this work, and the models added tricks of their own, most notably the construction of the catalyst state and the bookkeeping of the coherent rewrites. We would not easily have found these ourselves, and certainly not at this speed. We then reorganized the resulting construction to match our own understanding and to use ingredients that we are more familiar with. Several AI models, including Gemini Neon, Claude Opus and Claude Fable, assisted in writing out that version, both by drafting first versions of some parts of the technical construction and by proofreading and editing.
More latest news
Read all