|q⟩ Bad Qubits

advanced · Physics · Fault-Tolerant Quantum Computing

Concatenated Codes

Codes inside codes

Concatenation is the simplest route to arbitrarily strong protection: take a code, then re-encode each of its physical qubits using the same code again, and repeat. A level-1 qubit is one logical qubit of the base code. A level-2 qubit replaces every physical qubit of that level-1 block by another full block, and so on. With a base code on nn qubits, a level-LL logical qubit occupies

nLn^{L}

physical qubits. The Steane [[7,1,3]][[7,1,3]] code, for example, uses 77 physical qubits at level 1, 4949 at level 2, 343343 at level 3 — the cost grows geometrically, but as we will see the protection grows much faster.

The recursion for the logical error rate

Concatenation is powerful because of how the failure probability recurses. Suppose the base code together with its fault-tolerant gadgets corrects any single fault, so a level-1 logical error requires at least two independent faults among the AA fault locations in the gadget. Then

p1    Ap2,p_1 \;\le\; A\,p^2 ,

where pp is the physical error rate. Crucially, a level-2 block is built from level-1 components that behave exactly like physical components but with error rate p1p_1. The identical argument applies one level up:

p2    Ap12=A(Ap2)2.p_2 \;\le\; A\,p_1^2 = A\,(A p^2)^2 .

Iterating and writing pth1/Ap_{\text{th}} \equiv 1/A, the level-LL logical error rate satisfies

pL    pth(ppth)2L.\boxed{\,p_L \;\le\; p_{\text{th}}\left(\frac{p}{p_{\text{th}}}\right)^{2^{L}}\,.}

Double-exponential suppression

The exponent 2L2^L is the whole story. Below threshold, p<pthp < p_{\text{th}}, so p/pth<1p/p_{\text{th}} < 1 and each added level squares the suppression. Concretely, take pth=102p_{\text{th}} = 10^{-2} and a physical rate p=103p = 10^{-3}, so the ratio is p/pth=0.1p/p_{\text{th}} = 0.1:

p1102(0.1)2=104,p2102(0.1)4=106,p3102(0.1)8=1010.p_1 \le 10^{-2}\,(0.1)^{2} = 10^{-4}, \quad p_2 \le 10^{-2}\,(0.1)^{4} = 10^{-6}, \quad p_3 \le 10^{-2}\,(0.1)^{8} = 10^{-10}.

Three levels of a small code turn a 10310^{-3} physical error into a 101010^{-10} logical error. Because the suppression squares while the qubit count merely multiplies by nn, reaching a target ε\varepsilon needs only Lloglog(1/ε)L \sim \log\log(1/\varepsilon) levels — the polylogarithmic overhead of the threshold theorem.

Try it

You will compute the level-LL logical error rate from the recursion. Use the boxed formula pL=pth(p/pth)2Lp_L = p_{\text{th}}\,(p/p_{\text{th}})^{2^{L}} with a threshold pth=102p_{\text{th}} = 10^{-2}, a physical error rate p=103p = 10^{-3}, and L=3L = 3 levels. Return pLp_L as a plain number. (The grader checks it against the value derived from the same formula, so compute it from first principles — don't paste a literal.)

Run your code to see the quantum state.

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