nLab Sandbox

This nLab page is for developing preliminary notes or making typographical experiments, etc. It may be edited by anybody, anytime. But you don’t necessarily need to delete other people’s ongoing notes here in order to add your own. In any case, overwritten edits may always be recovered from the page history.

If this edit page here is seemingly locked by “Anonymous”, just break the lock, as it is just caused by bot traffic. If the page is locked by an actual user, there is also the alternative Sandbox2.


Non-Clifford gates and magic states

The Clifford group of quantum gates on nn qbits (the normalizer of the Pauli group in U(2 n)U(2^n), generated by the Hadamard gate HH, the phase gate S=diag(1,i)S = diag(1,\mathrm{i}) and the CNOT gate) is computationally weak: By the [Gottesman-Knill theorem], Clifford quantum circuits acting on stabilizer states and followed by Pauli quantum measurements are efficiently simulable on a classical computer. But adjoining any one non-Clifford gate yields a universal gate set.

The prominent choice of that extra non-Clifford gate is the T-gate T=diag(1,e πi/4)T = \mathrm{diag}(1, e^{\pi \mathrm{i}/4}): The set Clifford+TT generates, up to global phase, a dense subgroup of SU ( 2 n ) SU(2^n) , so that every quantum circuit is efficiently approximated by Clifford+TT circuits (by the Solovay-Kitaev theorem).

The catch is that:

The now standard strategy to work around this problem, trades the missing gate for a resource state: TT-gates are enacted by gate teleportation, consuming magic states |A⟩=T|+⟩\vert A \rangle = T \vert + \rangle via a CNOT, a Z Z -measurement and a classically controlled SS-correction (which are all Clifford operations).

These magic states, in turn, are encoded without protection (“state injection”) and then purified by magic state distillation (Bravyi & Kitaev 2005), a protocol which uses only Clifford operations and measurements to turn many noisy copies into fewer, better ones.

The resulting architecture — the surface code as a protected “Clifford substrate”, fed with non-Clifford resources by dedicated “magic state factories” — is expensive: A TT-gate costs a few hundred times a Clifford gate in space-time overhead (Campbell, Terhal & Vuillot 2017, §II.5), and in the estimate of Fowler et al. 2012 for factoring, magic state production occupies over 94% of the physical qubits.

Accordingly, the “TT-count” (number of T-gates in a quantum circuit) has become a standard cost measure of quantum algorithms, and much current work aims to reduce this overhead by various proposed methods:

  1. by more efficient distillation (Litinski 2019);

  2. by magic state cultivation, which grows a TT-state inside a single surface-code patch at roughly the cost of a lattice-surgery CNOT and may make distillation unnecessary in practice (Gidney, Shutty & Jones 2024);

  3. by circumventing the 2-dimensional no-go theorem, either via 3-dimensional codes with transversal TT (Bombín 2015) or via non-constant-depth protocols on the surface code itself (Brown 2020). For review see Terhal 2015, §II.7, Campbell, Terhal & Vuillot 2017.

References

Review:

No-go theorems for transversal and topologically protected gates:

The analogous situation for anyons:

On magic states and their distillation for the surface code:

Circumventing the 2-dimensional no-go theorem:

Last revised on October 9, 2026 at 17:47:24. See the history of this page for a list of all contributions to it.