|q⟩ Bad Qubits

advanced · Physics · Fault-Tolerant Quantum Computing

Overhead and Scalability

Protection has a price

The threshold theorem promises that overhead grows only polylogarithmically in the target accuracy — but the constants matter enormously in practice. Fault tolerance buys reliability by spending physical qubits, and an honest architecture must count them. The dominant cost in surface-code machines is the number of physical qubits per logical qubit, which is set by the code distance dd.

Physical qubits per logical qubit

The rotated planar surface code encodes one logical qubit in a d×dd \times d array of data qubits, so it uses d2d^2 data qubits. Syndrome extraction needs one measurement ancilla in each plaquette of the dual lattices; counting them gives d21d^2 - 1 ancillas. The total footprint of one logical patch is therefore

nphys=d2+(d21)=2d21.n_{\text{phys}} = d^2 + (d^2 - 1) = 2d^2 - 1 .

The distance dd must be chosen large enough that the logical error rate per round meets the target. A standard fit to numerics for the surface code below threshold is

pL    A(ppth)(d+1)/2,p_L \;\approx\; A\left(\frac{p}{p_{\text{th}}}\right)^{\lfloor (d+1)/2\rfloor},

with A0.1A \sim 0.1 and pth1%p_{\text{th}} \sim 1\%. Each step of dd by 22 raises the suppression power by one, so reaching a very small pLp_L takes a dd of a few tens — and because the cost is 2d2\sim 2d^2, the per-logical-qubit overhead lands in the hundreds to low thousands of physical qubits.

A worked estimate

Suppose a target algorithm needs a logical error rate small enough that distance d=11d = 11 suffices (a typical figure for p/pth0.1p/p_{\text{th}} \approx 0.1 and moderate circuit depth). Then one logical qubit costs

nphys=2(11)21=241n_{\text{phys}} = 2(11)^2 - 1 = 241

physical qubits. Multiply by the number of logical qubits in the algorithm — and by the extra patches devoted to magic-state factories, which often dominate the area because non-Clifford gates are the expensive ones — and the totals climb to the millions for cryptographically relevant problems. The well-known resource estimate for factoring a 20482048-bit RSA modulus, for instance, lands near twenty million physical qubits at p103p \sim 10^{-3}.

The scalability picture

Because dd grows only logarithmically in 1/ε1/\varepsilon, the asymptotic overhead is benign — this is the threshold theorem at work. What makes fault tolerance hard in practice is the large prefactor: hundreds of physical qubits per logical qubit, plus distillation, plus the requirement that pp sit comfortably below pthp_{\text{th}} so the suppression base p/pthp/p_{\text{th}} is small enough that a modest dd does the job. Improving hardware pp pays off twice — it both lowers the required dd and shrinks every factory.

Try it

Estimate the footprint of one logical qubit. For the rotated surface code at distance d=11d = 11, compute the number of physical qubits nphys=2d21n_{\text{phys}} = 2d^2 - 1. Return it as a plain number. (Compute from dd; do not hardcode the answer.)

Run your code to see the quantum state.

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