|q⟩ Bad Qubits

advanced · Physics · Magic States & Distillation

Why Magic States

A fault-tolerant quantum computer is built from a quantum error-correcting code together with a set of logical gates that can be applied without spreading errors uncatastrophically. The cleanest such gates are transversal: they act on the encoded block as a tensor product of single-physical-qubit operations, so a fault in one physical qubit stays confined to one qubit of the block. Transversality is exactly what makes a gate fault-tolerant for free. The trouble is that transversal gates are not enough.

The Eastin–Knill obstruction

The Eastin–Knill theorem states that for any quantum code that detects at least one error, the set of transversal logical gates is a finite group — and a finite group can never be universal for quantum computation, because universality requires a dense subgroup of the (continuous) unitary group.[^gottesman-eastin-knill]

For many natural codes the transversal gates land inside the Clifford group

Cn={U:UPnU=Pn},\mathcal{C}_n = \{\, U : U\,\mathcal{P}_n\,U^\dagger = \mathcal{P}_n \,\},

the normalizer of the nn-qubit Pauli group Pn\mathcal{P}_n. The Clifford group is generated by {H,S,CNOT}\{H, S, \mathrm{CNOT}\} and is the symmetry group of the stabilizer formalism. But the Clifford group alone is not universal — worse, by the Gottesman–Knill theorem any circuit built only from Clifford gates, stabilizer-state inputs, and computational-basis measurements can be simulated efficiently on a classical computer. A purely Clifford "quantum computer" offers no speedup.

The missing ingredient

To climb out of the Clifford world we need just one non-Clifford gate. The canonical choice is the TT gate (the π/8\pi/8 gate)

T=(100eiπ/4).T = \begin{pmatrix} 1 & 0 \\ 0 & e^{i\pi/4} \end{pmatrix}.

The set {H,S,CNOT,T}\{H, S, \mathrm{CNOT}, T\} — Clifford plus TT — is universal: any unitary can be approximated to arbitrary precision. So fault-tolerant universality reduces to one problem: implement TT fault-tolerantly. And that is precisely the gate the Eastin–Knill theorem forbids us from getting transversally on a code whose transversal set is the Clifford group.

Magic states resolve the tension

The resolution, due to Bravyi and Kitaev, is to move the hard part off the data and into a special ancilla.[^bravyi-kitaev] Suppose we are handed a fresh copy of the magic state

T=T+=12(0+eiπ/41).|T\rangle = T|+\rangle = \frac{1}{\sqrt{2}}\bigl(|0\rangle + e^{i\pi/4}|1\rangle\bigr).

Then, using only Clifford operations (a controlled-NOT, a measurement, and a Clifford correction that depends on the outcome), we can consume that one copy of T|T\rangle to apply a TT gate to an arbitrary data qubit. The non-Clifford resource has been factored out of the circuit: the only thing that is not Clifford is the preparation of T|T\rangle, which is done once, offline, in a dedicated factory.

Why "magic"?

States that can be prepared by Clifford circuits from 0|0\rangle are stabilizer states, and they are classically simulable. A magic state is a state that lies outside the stabilizer set in a way that cannot be removed by Cliffords — it carries genuine non-Clifford resource, which later lessons quantify with magic monotones. The term is informal but vivid: this little ancilla is the spark that the otherwise-classical Clifford machinery cannot manufacture for itself.

The catch, and the rest of the module

There is one more obstacle. Because T|T\rangle cannot be made by a transversal (hence cheap, robust) circuit, factories produce it noisily. A raw magic state arrives with some error probability pp. Magic-state distillation is the protocol that takes many noisy copies and, using only Clifford operations and measurements, outputs fewer copies of much higher fidelity. The rest of this module develops this story: the TT gate and its magic state, the stabilizer/magic distinction, injection, noise models, the famous 15-to-1 distillation routine, its error threshold, its resource cost, and the monotones that measure magic.

[^bravyi-kitaev]: Bravyi, Kitaev, Universal quantum computation with ideal Clifford gates and noisy ancillas, arXiv:quant-ph/0403025. [^gottesman-eastin-knill]: Eastin, Knill, Restrictions on transversal encoded quantum gate sets, arXiv:0811.4262.

Sign in on the full site to ask questions and join the discussion.