← Back to section · Quantum Computing

Computing on Logical Qubits: Transversal Gates, Eastin–Knill, and Magic State Distillation

Protection is not computation: why logical gates are hard, the boundary drawn by the Eastin–Knill theorem, the division of labour between transversal gates and lattice surgery, and why magic state distillation eats most of a fault-tolerant machine's budget.

Published 22 November 2026 · 5 min read · PQ Frontier

Computing on Logical Qubits: Transversal Gates, Eastin–Knill, and Magic State Distillation
AI-generated site artwork
Video explainer · Quantum Error Correction

Protecting quantum information is only the first step. Computation requires applying gates, measurements and conditional operations to the protected logical qubits — without ever decoding them (decoding means running unprotected), and without letting any single physical fault be amplified by a gate into a logical error. Gate implementations satisfying these constraints are called fault-tolerant gates, and they are a subtler business than error correction itself.

Transversal gates: the ideal fault-tolerant gate

The cleanest fault-tolerant gate is a transversal gate: apply the physical gate qubit-by-qubit between corresponding qubits of two code blocks (or within one block), with no coupling between different physical qubits. Its fault tolerance is almost free: a fault in one physical gate contaminates at most one qubit per block, which correction handles easily. The Steane code and some surface-code operations enjoy this treatment — transversal CNOT on CSS codes and transversal Clifford gates on the Steane code are classic examples.

But transversal gates have a ceiling. The Eastin–Knill theorem proves that for any non-trivial error-correcting code, the set of gates implementable transversally can never be universal — some class of gates (typically non-Clifford gates such as T) cannot be done this way. The surface code sits exactly in this situation: its Clifford operations are available transversally or via lattice surgery, but the T gate has no such route. This theorem sets the engineering agenda for the whole field: the last piece of universal computation must come from state injection.

Magic states: moving the difficulty from gates to states

The solution packages non-Clifford power into a special quantum state — a magic state, typically ∣T⟩=(∣0⟩+eiπ/4∣1⟩)/2|T\rangle = (|0\rangle + e^{i\pi/4}|1\rangle)/\sqrt{2}, the state corresponding to the T gate. Given a high-fidelity magic state, Clifford operations plus measurement suffice to “teleport” the T gate onto the data: the magic state is consumed and the gate is applied. The problem is thereby transformed: how do we prepare high-fidelity magic states?

Directly prepared magic states have only physical-gate fidelity, far from enough. Magic state distillation, the purification protocol of Bravyi and Kitaev, takes many noisy magic states as input, runs a short Clifford circuit built on a small error-correcting code to measure them jointly, discards the batches in which errors are detected, and keeps survivors whose noise is strongly suppressed. One round can be iterated: the classic 15-to-1 protocol consumes 15 input states to produce 1 output state, cutting the error rate from pp to roughly 35p335p^3; two cascaded rounds push noise at the 10−310^{-3} level below the 10−1010^{-10} that algorithms demand.

Other ways around: code switching and gauge fixing

Magic states are not the only route around Eastin–Knill. Code switching keeps two codes whose transversal gate sets complement each other (the surface code is good at Clifford gates; colour codes can implement T transversally, for example) and converts the logical state between codes whenever the other code’s gate is needed. The conversion proceeds through measurements and correction, and the logical information never leaves protected space. Switching between three-dimensional and two-dimensional colour codes — a dimensional jump — is the representative scheme of this route.

Gauge fixing is the softer version of the same idea: some codes (subsystem codes, three-dimensional colour codes) contain a set of “gauge qubit” freedoms, and fixing different gauges amounts to switching between different ordinary codes, changing the transversal gate set accordingly. Both routes genuinely work, but both pay in more complex block structure and in switching procedures that themselves need fault-tolerant design. The industry’s main bet remains magic states, because their interface is the cleanest: factory and data region are fully decoupled, independently optimizable, and production can be pipelined. For resource estimates, code switching serves mostly as a control group — a reminder that the cost of distillation is not a law of physics but the price of the currently best engineering choice.

The distillation factory: most of the machine

The cost of distillation sets the size of a fault-tolerant machine. In most resource estimates, magic state factories occupy the majority of the physical qubits and the majority of the runtime: every T gate the algorithm consumes requires the factory to deliver one more high-fidelity magic state. Factoring RSA-2048 with Shor’s algorithm needs on the order of 10910^9 T gates, so the factory must run continuously at enormous throughput. Recent optimizations — cheaper distillation protocols and new routes such as magic state cultivation — are all, in essence, cost-cutting for this factory, and their improvements rewrite the machine’s total resource bill directly.

The factory’s internal pipeline is worth a look as well. A two-level distillation factory is organized in production lines: many small blocks of the first level purify crude magic states to intermediate quality in parallel, larger blocks of the second level perform the final purification, and the finished states are buffered and fed to the data region at the algorithm’s consumption rate. The distance and parallelism of each level must be solved jointly against the target logical error rate — factory design is one of the most complex optimization problems in the whole machine. The recently proposed magic state cultivation route tries to rewrite this pipeline: “grow” a medium-quality magic state inside a small block, then let it be purified while the block around it gradually grows, avoiding the waste of distillation’s many large-batch rounds; early estimates suggest another order-of-magnitude cut in the cost per T gate. If it delivers, the machine-wide resource bill will be rewritten again — which makes it a variable worth watching in fault-tolerance progress.

Summary

Error correction solves storage; fault-tolerant gates solve motion. The Eastin–Knill theorem forces universal computation to take a detour: turn the hardest gate into the hardest state to prepare, then purify the state by distillation. When resource estimates quote huge numbers, most of the bill is usually not the data qubits — it is this factory.

Tags: logical qubitsmagic statesfault-tolerant gates