|q⟩ Bad Qubits

advanced · Physics · Magic States & Distillation

Distillation Protocols

Magic-state distillation takes many noisy copies of a magic state and, using only stabilizer operations (Clifford gates, Pauli measurements, and stabilizer-state ancillas), outputs fewer copies of much higher fidelity. The flagship example is the 1515-to-11 protocol of Bravyi and Kitaev.[^bravyi-kitaev]

The idea: encode, then decode

Distillation is built from a quantum error-correcting code whose transversal TT (or TT^\dagger) gate is supported by its structure. The recipe is:

  1. Take 1515 noisy copies of the magic state, each carrying error ε\varepsilon.
  2. Treat them as if they were the inputs to a transversal logical TT on a particular [[15,1,3]][[15,1,3]] code.
  3. Measure the code's stabilizers. The measurement detects any single faulty input, because the code has distance 33.
  4. Post-select on the trivial syndrome (all stabilizers +1+1). If any check fires, throw the batch away and start over. If all checks pass, decode to recover one output magic state.

Because the code detects every weight-one error, a single bad input among the 1515 is caught and rejected. The output is corrupted only when three or more inputs were simultaneously bad in a correlated way — an event of order ε3\varepsilon^3.

The code: quantum Reed–Muller [[15,1,3]][[15,1,3]]

The 1515-to-11 protocol uses the punctured quantum Reed–Muller code RM\mathrm{RM}^*, a self-dual CSS code on 1515 qubits encoding 11 logical qubit with distance 33. Its defining feature is that the transversal application of TT^\dagger (one TT^\dagger on each of the 1515 physical qubits) implements a logical TT. Feeding in 1515 copies of T|T\rangle and measuring the XX-type stabilizers projects onto the codespace; the surviving logical qubit is a distilled T|T\rangle.

The output-error scaling

The headline result, derived by counting which input-error patterns survive post-selection, is that to leading order the output error is

εout  =  35εin3  +  O(εin4).\varepsilon_{\text{out}} \;=\; 35\,\varepsilon_{\text{in}}^{\,3} \;+\; O(\varepsilon_{\text{in}}^{4}).

The coefficient 3535 counts the weight-33 error patterns that the distance-33 code cannot distinguish from a logical error (the minimal-weight representatives of the logical operator); it is the exact leading coefficient computed by Bravyi and Kitaev. The crucial qualitative feature is the cubic suppression: each round of distillation roughly cubes the error. If εin=102\varepsilon_{\text{in}} = 10^{-2}, one round gives εout35×106=3.5×105\varepsilon_{\text{out}} \approx 35\times10^{-6} = 3.5\times10^{-5} — a  ⁣300×\sim\!300\times improvement from a single round.

Iterating to arbitrary fidelity

Because each round cubes the error (times 3535), concatenating rr rounds drives the error down doubly-exponentially fast in rr. After rr rounds,

εr135(35ε0)3r,\varepsilon_r \approx \frac{1}{\sqrt{35}}\bigl(\sqrt{35}\,\varepsilon_0\bigr)^{3^r},

so as long as 35ε0<1\sqrt{35}\,\varepsilon_0 < 1 — i.e. ε0<1/35\varepsilon_0 < 1/\sqrt{35}, the threshold of the next lesson — the error collapses toward zero extremely quickly. This is what makes distillation practical: a handful of rounds takes physically-achievable raw error rates down to the 101010^{-10}101510^{-15} logical-error regime that large algorithms demand.[^fowler-surface]

Beyond 15-to-1

The 1515-to-11 protocol is conceptually clean but wasteful: 1515 inputs (plus rejected batches) per output. A large literature improves the yield — the ratio of output to input copies. Bravyi and Haah constructed a family of [[3k+8,k,2]][[3k+8,\,k,\,2]] "triorthogonal" codes with asymptotically vanishing overhead,[^bravyi-haah] and modern surface-code architectures use multi-level distillation factories whose cost we estimate in the next two lessons. But the 1515-to-11 routine remains the canonical pedagogical and practical workhorse, and its 35ε335\,\varepsilon^3 law is the formula to remember.

[^bravyi-kitaev]: Bravyi, Kitaev, Universal quantum computation with ideal Clifford gates and noisy ancillas, arXiv:quant-ph/0403025. [^bravyi-haah]: Bravyi, Haah, Magic state distillation with low overhead, arXiv:1209.2426. [^fowler-surface]: Fowler, Mariantoni, Martinis, Cleland, Surface codes, arXiv:1208.0928.

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