|q⟩ Bad Qubits

advanced · Physics · Magic States & Distillation

Noisy Magic States

A factory cannot deliver the ideal T|T\rangle. Whatever circuit prepares it is itself faulty, so the output is a mixed state ρ\rho close to but not equal to TT|T\rangle\langle T|. To reason about distillation we need a clean, quantitative noise model and a single number that captures "how good" a noisy copy is.

The depolarizing model

The simplest isotropic noise model mixes the target with the maximally mixed state:

ρ=(1p)TT+pI2,0p1.\rho = (1-p)\,|T\rangle\langle T| + p\,\frac{I}{2}, \qquad 0 \le p \le 1 .

Here pp is the depolarizing parameter: with probability pp the qubit is replaced by white noise. On the Bloch sphere this shrinks the Bloch vector toward the center without rotating it. If n^=12(1,1,0)\hat n = \tfrac{1}{\sqrt2}(1,1,0) is the ideal T|T\rangle direction, the noisy state has Bloch vector (1p)n^(1-p)\,\hat n — same direction, length reduced from 11 to 1p1-p.

Fidelity and input error

The figure of merit is the fidelity to the ideal magic state, which for a pure target reduces to the expectation value

F=TρT=(1p)TT2=1+pTI2T=1/2=1p2.F = \langle T|\rho|T\rangle = (1-p)\underbrace{\langle T|T\rangle^2}_{=1} + p\,\underbrace{\langle T|\tfrac{I}{2}|T\rangle}_{=1/2} = 1 - \frac{p}{2}.

It is more convenient to track the input error (or infidelity)

ε1F=p2.\varepsilon \equiv 1 - F = \frac{p}{2}.

A factory producing depolarized copies at parameter p=0.08p = 0.08 thus delivers magic states with error ε=0.04\varepsilon = 0.04. The whole point of distillation is to drive ε\varepsilon down by orders of magnitude.

Stochastic vs. coherent errors

A subtlety worth flagging: the depolarizing model treats the error as stochastic (a probabilistic mixture). Real preparation faults can be coherent — a small over-rotation TeiθZ/2T|T\rangle \to e^{-i\theta Z/2}|T\rangle — which to first order also gives fidelity F1O(θ2)F \approx 1 - O(\theta^2) but behaves differently under accumulation. Distillation protocols are designed to suppress the leading-order stochastic error; coherent errors are typically converted to stochastic ones by the Clifford twirl implicit in the protocol. For this module we take the depolarized ε=1F\varepsilon = 1 - F as the input quality, the same convention used in the Bravyi–Kitaev analysis.[^bravyi-kitaev]

Where this is heading

We now have the language to state the distillation problem precisely. A protocol takes nn copies of a state with input error εin\varepsilon_{\text{in}} and, using only stabilizer operations, outputs kk copies with output error εout\varepsilon_{\text{out}}. A good protocol has εoutεin\varepsilon_{\text{out}} \ll \varepsilon_{\text{in}} whenever εin\varepsilon_{\text{in}} is below a threshold. The canonical example — the 1515-to-11 protocol — is next.

Try it

For a depolarized magic state with p=0.08p = 0.08, compute the input error ε=1F\varepsilon = 1 - F where F=TρTF = \langle T|\rho|T\rangle. Derive FF from the density matrix; do not hard-code it.

[^bravyi-kitaev]: Bravyi, Kitaev, Universal quantum computation with ideal Clifford gates and noisy ancillas, arXiv:quant-ph/0403025.

Run your code to see the quantum state.

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