Quantum computing · Theory

The Clifford Hierarchy from Clifford Stabilizers in 2D

Alison Warman, Sakura Schafer-Nameki

arXiv:2611.25025v1 ↗PDF ↗Submitted 18 November 2026

Question
A gate that acts on each qubit of a code separately cannot spread errors, but such gates are limited. In two dimensions, codes whose checks are Pauli operators admit only Clifford gates by constant-depth circuits; this is the Bravyi–König theorem. Codes whose checks are themselves Clifford operators do slightly better and reach the \(T\) gate, one level higher in the Clifford hierarchy. A general bound was then conjectured: constant-depth gates sit at most one level above the checks in two dimensions. Is that so?
Result
No. The paper gives two explicit families of two-dimensional qubit codes with Clifford checks, \(k\) logical qubits for every \(k\ge3\), and distance \(L\) on an \(L\times L\) patch, in which the logical gate \(C^{k-1}Z\) is transversal. That gate lies at level \(k\) of the hierarchy, and the paper shows that no change of logical basis lowers the level. In the first family the gate is a product of \(L\) single-qubit Pauli \(Z\) operators on a line, with \(3k-2\) qubits per lattice edge. In the second it is one layer of \(CZ\) gates between two code blocks, with \(3k-4\) qubits per edge.

The paper in detail

The Clifford hierarchy is a ladder. Pauli operators form level one; a gate is at level \(j+1\) if it maps every Pauli operator, by conjugation, to a gate at level \(j\). Clifford gates are level two, \(T\) and \(CCZ\) level three, and the controlled phase on \(k\) qubits, \[C^{k-1}Z\ket{x_1\cdots x_k}=(-1)^{x_1x_2\cdots x_k}\ket{x_1\cdots x_k},\] level \(k\). Bravyi and König showed that a \(D\)-dimensional Pauli stabilizer code has constant-depth logical gates only up to level \(D\). Known non-Abelian codes in two dimensions fitted the pattern "level of the checks plus one".

The codes are Kitaev quantum doubles. Each lattice edge carries an element of a finite group \(G\), checks at vertices average over multiplication by group elements, and checks on plaquettes ask that the product around the plaquette is the identity. On a square patch each of the four sides has a boundary labelled by a subgroup of \(G\). A logical state is fixed by four fluxes, one ending on each side, that meet at a plaquette and satisfy \(g_lg_t=g_bg_r\).

The building block takes \(G=D_4\times\mathbb Z_2\), where \(D_4\) is the symmetry group of the square with rotation \(r\) and reflection \(s\), and \(m\) generates the second factor. The left and right sides carry \(\langle sr\rangle\), the bottom \(\langle s,m\rangle\), and the top \(\langle s,t\rangle\) with \(t=r^2m\). A horizontal flux \((sr)^{a_2}\) crosses a vertical flux \(s^{a_1}\). They do not commute, and the mismatch \(r^2\) can be repaired only if the vertical line also carries \(m^{a_1a_2}\). The string of \(Z\) operators on the \(m\) qubits, which for a surface code would be the logical \(Z\), therefore acts as \((-1)^{a_1a_2}\): a logical \(CZ\).

To climb further the construction is iterated. The flux \(m\) of one step becomes the reflection of a new copy of \(D_4\), and a new \(\mathbb Z_2\) is added. Each further crossing multiplies the exponent by one more logical bit, so after \(k-1\) steps the last \(\mathbb Z_2\) flux has exponent \(a_1a_2\cdots a_k\). Strings on the intermediate reflections give the whole tower \(CZ,CCZ,\dots\). The second construction places two such blocks on the same lattice, one rotated by \(90^\circ\), and counts where the two last fluxes cross, through a group 2-cocycle that is implemented by a layer of \(CZ\) gates. It saves two qubits per edge.

The authors expect the known constant-depth adaptive preparation of the \(D_4\) double, demonstrated on a trapped-ion device, to be a starting point for preparing these codes. They also expect an advantage in computations that apply many non-Clifford gates, since the gate can be repeated once the code is prepared. Extending just-in-time decoders to the boundaries and to code switching, and a threshold analysis, are listed as next steps.

Transferable methods

  1. Forcing a flux to carry a product of logical bits

    In an Abelian code the fluxes crossing a patch in the two directions are independent. Non-Abelian multiplication couples them, and a careful choice of boundary subgroups leaves exactly one way to satisfy the plaquette condition. The coupling is a polynomial in the logical bits, and iterating it raises the degree.

    In \(D_4\) the elements \(sr\) and \(s\) satisfy \((sr)s=s(sr)r^2\), and \(r^2\) is central. Take \(g_l=g_r=(sr)^{a_2}\), \(g_b=s^{a_1}m^{A}\) and \(g_t=s^{a_1}t^{A}\) with \(t=r^2m\). Then \[g_lg_t=(sr)^{a_2}s^{a_1}t^{A}=s^{a_1}m^{A}(sr)^{a_2}\,r^{2(a_1a_2+A)}=g_bg_r\,r^{2(a_1a_2+A)}.\] The plaquette condition holds if and only if \(A=a_1a_2\) modulo 2.

    For general \(k\) there are \(k-1\) copies with generators \(r_j,s_j\), and \(t_j=r_j^2s_{j+1}\), except that the last one is \(r_{k-1}^2m\). Crossing the \(j\)-th horizontal flux \((s_jr_j)^{a_{j+1}}\) with the vertical flux \(s_j^{A_{j-1}}\) leaves \(r_j^{2a_{j+1}A_{j-1}}\). This must cancel the \(r_j^{2A_j}\) in \(t_j^{A_j}\), so (editorial form of Eq. (26)) \[A_0=a_1,\qquad A_j=a_{j+1}A_{j-1}\quad\Longrightarrow\quad A_{k-1}=a_1a_2\cdots a_k.\] The bits \(a_1,\dots,a_k\) are free and everything else is determined, which is why the patch encodes \(k\) qubits. Enumeration for \(k\le5\) confirms this.

    A line of \(Z\) operators on the \(m\) qubits between the left and right sides commutes with every check, because the left and right subgroups contain no \(m\). It multiplies the state by \(-1\) raised to the exponent of \(m\) in the flux it crosses, so \[\prod_{i\in\gamma}Z_{m,i}\ \longmapsto\ (-1)^{a_1a_2\cdots a_k}=C^{k-1}Z.\] The second construction uses the 2-cocycle \(\alpha(g,h)=(-1)^{\mu_A(g)\mu_B(h)}\), where \(\mu_A,\mu_B\) read the exponents of the two \(m\) fluxes. It evaluates to \(\alpha(g_b,g_r)/\alpha(g_l,g_t)=(-1)^{AB}\) with \(A\) and \(B\) the products of the bits of the two blocks.

    How to reuse it

    Any code whose logical labels are solutions of a nonlinear constraint offers the same opportunity: a physical operator that is diagonal and simple can act as a high-degree phase polynomial on the free labels. Nilpotent groups of higher class, or twisted Abelian gauge theories, produce other polynomials. The price is always in the logical \(X\) operators and in preparation and decoding, because the nonlinearity that helps the diagonal gate makes the code non-Abelian.

  2. A rank bound on the Clifford hierarchy

    A change of logical basis can change the level of a gate, so a claim that a gate sits at level \(k\) needs an argument that does not depend on the basis. The rank of \(V-\lambda\) does not. Gates low in the hierarchy cannot be close in rank to a multiple of the identity.

    Claim: every non-scalar \(V\) at level \(j\) on \(k\) qubits satisfies \(\operatorname{rank}(V-\lambda)\ge2^{k-j}\) for every phase \(\lambda\). At level one this holds because a non-scalar Pauli operator has two eigenvalues, each of multiplicity \(2^{k-1}\).

    For the induction step let \(V\) be at level \(j+1\), let \(P\) be a Pauli operator and put \(V_P=VPV^{-1}P^{-1}\), which is at level \(j\). From \[V_P-1=(V-\lambda)PV^{-1}P^{-1}+\lambda P\,(V^{-1}-\lambda^{-1})\,P^{-1}\] follows \(\operatorname{rank}(V_P-1)\le2\operatorname{rank}(V-\lambda)\). If some \(V_P\) is not a scalar, the hypothesis gives \(\operatorname{rank}(V-\lambda)\ge2^{k-j-1}\). Otherwise \(V\) commutes with every Pauli operator up to a phase, so \(V\) is itself a Pauli operator up to a phase.

    The gate \(C^{k-1}Z\) differs from the identity in one basis vector, so \(\operatorname{rank}(C^{k-1}Z-1)=1\). A gate at level \(k-1\) would need rank at least 2. Hence \(C^{k-1}Z\) is not at level \(k-1\) in any basis, and it is at level \(k\) in the standard one.

    How to reuse it

    The same bound decides quickly whether a gate with few nontrivial eigenvalues can lie low in the hierarchy, whatever the encoding. It applies to multi-controlled gates, to reflections about a state, and to oracles that mark few inputs. It is only a necessary condition: a gate of high rank distance from the scalars may still be far up the hierarchy.

Source: Main text, Eqs. (4)–(12) (the two-qubit block), (13)–(17) and (22)–(28) (general k); End Matter, Eqs. (36)–(46) (2-cocycle and gate), (49)–(50) (Clifford level). 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 non-Clifford power sits in the encoding, not in the gate. In a Pauli stabilizer code, a Pauli operator that preserves the code space must act as a logical Pauli. Here the code space is defined by a non-Abelian group, and the exponent of one flux is forced to equal a product of logical bits, so a plain string of \(Z\)'s reads out that product as a phase. It refutes a conjectured bound posted only weeks earlier, and shows that two-dimensional geometry alone does not limit the level of transversal gates once checks may be Clifford.

Limitations. Nothing here is a full fault-tolerance scheme. Preparing the code, switching between it and surface codes, and decoding at the boundaries are left for later work; the code switching as described measures qubits and post-selects the \(+1\) outcomes. No threshold is computed, and the authors point to known results for single copies of the \(D_4\) code. Logical \(X\) operators are not Pauli strings but non-Abelian ribbon operators, so the full logical gate set is not transversal. The distance is stated in the theorem, and the text explains the absence of short strings at corners without a separate proof. The qubit count per edge grows linearly with \(k\). The authors acknowledge Claude Code (Fable 5.2 and Opus 5.5) and "ChatGPT Astra-6" for improving arguments and writing, and Fable 5.2 for the initial exploration of the question.

Description based on the full arXiv HTML of v1, read 2026-11-23: the letter and the End Matter (2-cocycle, evaluation of the logical gate, code switching, qubit circuits, level of the gates). Editorial checks: for Construction I with k = 2, 3, 4 and 5 (groups of order 16, 128, 1,024 and 8,192), enumeration of all boundary holonomies satisfying g_l g_t = g_b g_r gives exactly 2^k solutions, all with g_l = g_r, one for each logical bit string, and in each the exponent of m in g_b and in g_t is the product of the k bits. Boundary subgroups that share a corner intersect trivially. Left and right multiplication by r and s act as Clifford operators on the three-qubit encoding of D_4. The distance, the decoder statements and the lattice circuits were not checked.