Overview
A quantum error-correcting code protects stored information. To compute, one must also act on the encoded information, and do so without undoing the protection: a logical gate must map the code space to itself, and a fault during the gate must not turn into more errors than the code corrects.
The simplest way to meet both requirements is a transversal gate, a product of operations on individual qubits or on corresponding qubits of different blocks. The Eastin–Knill theorem shows that transversal gates alone are never universal, and the Bravyi–König bound restricts which gates a topological code of a given dimension can protect. This page states both results and surveys the constructions that complete a universal gate set in spite of them: magic states, code switching and gauge fixing, and code deformation, of which lattice surgery is the variant most used in current designs. The review of Campbell, Terhal and Vuillot covers the same ground at greater length.
Intuition
Apply the same single-qubit gate to every qubit of a code block. Nothing connects one qubit of the block to another, so a faulty gate damages one qubit and an existing error stays where it is. If the resulting operation happens to preserve the code space, it is a logical gate obtained almost for free.
The catch is that a code's ability to detect local errors limits how many such gates exist. Suppose a code had a continuous family of transversal gates, for example logical rotations by any angle. A rotation by a tiny angle is a product of tiny rotations on single qubits, and to first order it is a sum of single-qubit operators. A code that detects single-qubit errors cannot distinguish any single-qubit operator from a multiple of the identity, so that sum cannot change the logical state at all. Continuous families are therefore impossible, and what remains is a finite set of gates. A finite set cannot approximate every unitary.
Universality has to come from an operation that is not transversal for the code in use: a measurement-based protocol that consumes a prepared resource state, a temporary change of code, or a slow change of the code's shape.
Prerequisites
Stabilizer codes and CSS codes, the Clifford group, and the definition of a fault-tolerant gadget.
Mathematical Definitions
Let be a Hilbert space with a fixed partition into subsystems, and let be a code with projector .
A unitary on is transversal with respect to the partition if
It is a logical operator if it maps the code space to itself, ; the logical gate it implements is the restriction of to . The transversal logical operators form a group.
For a gate acting on blocks of the same code, each on qubits, the subsystem is taken to be the -th qubit of every block, so that each acts on qubits, one from each block. A gate is strongly transversal when all the are equal.
A transversal gate is fault tolerant in the sense of a fault-tolerant gadget: a fault in one factor , or an error already present in subsystem , affects only subsystem of each block after the gate. This requires the subsystems to be small compared with the number of errors the code corrects; the usual case is one qubit per subsystem.
Standard examples: for any CSS code, the qubit-wise CNOT between two blocks implements the logical CNOT between every pair of corresponding logical qubits (Shor; Gottesman); the seven-qubit Steane code has a transversal implementation of the whole Clifford group; the fifteen-qubit punctured Reed–Muller code has a transversal gate. The partition is part of the definition: Eastin and Knill fix it by the errors the code is required to detect.
Let be the Pauli group on qubits. Define sets of -qubit unitaries recursively by
The sets are nested, . The second level is the Clifford group, the normaliser of the Pauli group. For the set is not a group, but it is closed under multiplication by Clifford gates on either side.
Examples: , and CNOT are in . The gates , controlled- and are in and not in ; for instance , which is a Clifford gate. More generally lies in .
The hierarchy was introduced by Gottesman and Chuang to classify the gates that can be applied by teleportation: a gate can be implemented by consuming a resource state prepared with and applying a correction from that depends on a Pauli measurement outcome. For the correction is a Clifford gate, which is why third-level gates are the ones supplied by magic states.
Theorems
Let with each finite dimensional, and let be a code with projector that detects every error on a single subsystem:
Let be the group of transversal logical operators, . Then the set of logical gates
is finite. In particular, if the transversal gates are not dense in the unitary group of , so they are not universal.
The statement covers gates on several code blocks: for blocks, take to be the -th subsystems of all blocks; the product code detects errors on such a subsystem whenever each block detects single-subsystem errors.
Proved by Eastin and Knill. For qubit stabilizer codes the result was obtained earlier by Zeng, Cross and Chuang.
- Finite-dimensional subsystems: with every .
- The code detects every error supported on a single subsystem of the partition that defines transversality (for one qubit per subsystem, distance at least 2).
- Gates are exactly code preserving and unitary; approximate codes, measurements and adaptive operations are not covered.
Proof · Proof of the Eastin–Knill theorem
Three standard facts about Lie groups are used: a closed subgroup of a Lie group is a Lie group; a connected Lie group is generated by the exponentials of its Lie algebra; a compact Lie group has finitely many connected components.
Step 1: is a compact Lie group. The set is the image of the compact group under a continuous homomorphism, hence a compact Lie group. The set is closed in , being defined by a continuous equation. It is a group: if then ; and a unitary that maps the finite-dimensional space into itself maps it onto itself, so also preserves . A closed subgroup of a compact Lie group is a compact Lie group.
Step 2: the Lie algebra of acts on by scalars. Let be a Hermitian operator with for all real . Since , belongs to the Lie algebra of , so
Differentiating at gives , that is . Each is an error on a single subsystem, so by hypothesis with real, and therefore
Hence acts on as the scalar , and for all .
Step 3: the identity component acts trivially. Let be the connected component of the identity in . Every element of is a finite product with each as in Step 2. By Step 2 each factor acts on as a phase, so every satisfies for some real .
Step 4: finiteness. The map sending to the restriction modulo phases is a group homomorphism into the projective unitary group of , and by Step 3 its kernel contains . It therefore factors through , which is finite because is compact. So at most distinct logical gates arise. A finite set is not dense in the projective unitary group of a space of dimension at least 2, which is a connected manifold of positive dimension.
The mechanism is visible in Step 2: a continuous family of transversal gates would contain gates arbitrarily close to the identity, generated by a sum of single-subsystem operators; a code that detects single-subsystem errors cannot tell such a generator from a multiple of the identity. This is the argument of Eastin and Knill.
The theorem requires exact error detection. If a code is only required to correct erasure approximately, a continuous transversal group becomes possible, at a price: Faist and co-authors prove lower bounds on the recovery error of codes covariant under a continuous group, which vanish only as the number or the dimension of the subsystems grows.
Consider a stabilizer code with geometrically local generators on a lattice of dimension and with distance growing with the linear size of the lattice. Let be a unitary that preserves the code space and is implemented by a circuit of constant depth built from gates of bounded range. Then the logical action of belongs to the -th level of the Clifford hierarchy.
For , which includes the surface code and the two-dimensional color codes, the logical gates obtainable this way are Clifford gates. For the conclusion is that maps every logical Pauli operator to a logical Clifford operator, a class that contains the gate and . Transversal gates are the depth-one case.
The bound was proved by Bravyi and König. Pastawski and Yoshida extended it to subsystem codes that have an error threshold and showed that a -dimensional code with a locality-preserving gate in level of the hierarchy has distance for linear size . The bound is attained: -dimensional color codes have transversal gates in level (Bombín; Kubica and Beverland).
No proof record is attached to this statement. The proof in the original paper divides the lattice into regions, each a union of well-separated pieces small enough to be correctable, and argues by induction on the number of regions using group commutators of with logical Pauli operators cleaned off successive regions.
- A family of qubit stabilizer codes on a -dimensional lattice, , whose stabilizer group has generators supported in regions of bounded diameter.
- The code distance is large compared with the range of the gates and of the stabilizer generators (it grows with the linear size of the lattice).
- The logical gate is implemented by a unitary circuit of depth independent of the lattice size whose gates act on qubits within a bounded distance.
Worked Examples
Transversal phase gates on the Steane code
The seven-qubit Steane code is the CSS code built from the Hamming code and its dual, the simplex code , whose seven non-zero codewords all have weight 4. Its logical basis states are
The strings in have weight 0 or 4; those in have weight 7 or 3. Apply , which multiplies a basis string of weight by . On the factor is . On it is . So
the transversal gate preserves the code and acts as the logical . Logical is .
Now try , which multiplies weight by . On the weight-0 term keeps its sign and the seven weight-4 terms acquire :
Its overlap with is and its overlap with is 0, so the component inside the code space has norm : the state has left the code. is not a logical operator of the Steane code.
A transversal T gate on the fifteen-qubit code
In the punctured Reed–Muller code, is the uniform superposition of the 16 codewords of the simplex code, whose non-zero words all have weight 8, and contains weights 7 and 15. Under the phases are on , and on . Hence
a transversal logical . The price is that this code has no transversal Hadamard: its and stabilizer groups are different. The two examples together illustrate the Eastin–Knill theorem and motivate code switching.
Algorithms and Implementations
Magic states and gate teleportation
The most widely used route keeps the code fixed and implements only Clifford gates on it. A gate from the third level of the Clifford hierarchy is then applied by teleportation, consuming a resource state and applying a Clifford correction (Gottesman and Chuang). Preparing the resource states with low error is the subject of magic state distillation.
Code switching and gauge fixing
Two codes with complementary transversal gates can be combined. The Steane code has transversal Clifford gates and the fifteen-qubit code a transversal ; Anderson, Duclos-Cianci and Poulin gave a fault-tolerant conversion between them, by viewing both as gauge fixings of one subsystem code. Paetznick and Reichardt showed that on the fifteen-qubit code a transversal Hadamard followed by error correction, which restores the stabilizers the Hadamard disturbed, completes a universal set using only transversal gates and error correction. In three-dimensional gauge color codes the same idea, measuring a different set of gauge operators to move between a code with transversal and one with transversal , gives a universal set without distillation (Bombín). Jochym-O'Connor and Laflamme reach universality by concatenating two codes so that each protects the gate the other lacks. None of these contradicts the Eastin–Knill theorem: the operation is transversal for one code at a time, and the measurements in between are not unitary gates on a fixed code.
Code deformation and braiding
A topological code can be changed gradually, by adding and removing stabilizers at its boundary or around holes, in steps small enough that the distance is maintained throughout. A closed sequence of such steps can act non-trivially on the logical qubits (Bombín and Martin-Delgado). In the surface code, logical qubits stored in pairs of holes (defects) are entangled by moving one hole around another of the opposite type, which implements a logical CNOT (Raussendorf and Harrington; Fowler and co-authors). Twist defects and corner manipulations give the remaining Clifford gates (Brown and co-authors). Merging and splitting patches, lattice surgery, replaces braiding by measurements of logical Pauli products (Horsman and co-authors). Vuillot and co-authors show that code deformation and lattice surgery are both instances of gauge fixing, which gives one framework for their fault-tolerance analysis. Consistent with the Bravyi–König bound, all of these give Clifford gates only in two dimensions.
Limitations and Common Pitfalls
- Eastin–Knill does not say non-Clifford gates cannot be transversal. It says no single code has a universal transversal set. The fifteen-qubit code has a transversal and lacks a transversal .
- Transversal depends on the partition. A gate that is a product over pairs of qubits within one block is transversal only for a partition into pairs, and is fault tolerant only if the code corrects errors on whole pairs.
- The Bravyi–König bound assumes geometric locality. It does not apply to codes whose checks are not local in a fixed dimension, such as general quantum LDPC codes.
- Level 3 of the hierarchy is not a group. A product of two third-level gates need not be in the third level, so "the set of gates in " is not a gate set closed under composition.
- A fast transversal gate still needs decoding. After a transversal CNOT the errors of two blocks are correlated; decoding each block separately discards that information.
State of the Art
As of 2026-11:
- Transversal logical gates have been run on reconfigurable neutral-atom arrays. Bluvstein and co-authors reported a logical processor with up to 280 physical qubits, including transversal entangling gates on surface-code and color-code blocks and circuits on 48 logical qubits in blocks with 228 logical two-qubit gates and 48 logical CCZ gates, the latter with error detection.
- For transversal Clifford circuits, decoding the blocks jointly allows the number of syndrome-extraction rounds between gates to be reduced from to (Cain and co-authors). Zhou and co-authors (published 2025) prove that universal computation with transversal gates, magic-state inputs and feed-forward remains fault tolerant with a constant number of rounds per operation for a broad class of codes including the surface code.
- For high-rate quantum LDPC codes, logical Clifford gates can be obtained from code symmetries: by partitioning the qubits of hypergraph product codes (Quintavalle, Webster and Vasmer) and by fold-transversal gates (Breuckmann and Burton). Xu and co-authors propose implementing such codes and their logical operations by atom rearrangement. Quantum LDPC codes with transversal non-Clifford gates have been constructed (Zhu and co-authors, published 2025; Golowich and Lin, a 2024 preprint).