THE STABILIZERhow a qubit you cannot copy survives the world trying to erase it  ·  the [[5,1,3]] perfect code

VERIFIED SOURCES  ·  Code: Laflamme, Miquel, Paz, Zurek, Perfect Quantum Error Correcting Code, Phys. Rev. Lett. 77, 198 (1996), arXiv:quant-ph/9602019  ·  Formalism: D. Gottesman, Stabilizer Codes and Quantum Error Correction, Caltech PhD thesis 1997, arXiv:quant-ph/9705052  ·  Every syndrome below computed in Python from the real stabilizers (16/16 distinct, verified).

The one function

M(g, |ψ⟩) → ±1

Feed in a check g (a Pauli string) and the state. Get back +1 (this check is clean) or −1 (an error touched it). That is the entire machine. Everything else is calling this over and over and reading the signs. The payload answers +1 to every check — so the function reads the error and is blind to the cargo. It protects the qubit precisely because it cannot see it.

What it delivers

A logical qubit — a fragile blend α|0⟩+β|1⟩ the environment is actively trying to scramble, and that no-cloning forbids you from ever copying. No backup, no spare, by law. The machine carries the single irreplaceable original across time, intact, from creation to use — by wrapping it where the world (and the measurement) can't grab it.

raw qubit
dies in µs
encode
5 physical
check & fix
every round
survives
delivered

The [[5,1,3]] code — label, checks, logicals

[[ 5 , 1 , 3 ]]

5 physical qubits in · 1 logical qubit out · distance 3 (corrects any 1 error). Rate 1/5. The smallest code that fixes an arbitrary single-qubit error — PERFECT every error gets a unique fingerprint.

4 stabilizers (the checks)

n−k = 4 checks. All commute — measured together, they don't disturb each other or the data.

2 logical operators (the payload controls)

X̄ = XXXXX
Z̄ = ZZZZZ

They slip past every check (never corrected away) yet flip the logical qubit. Their weight = 5; the shortest logical = distance 3's guarantee. On a torus these are the two loops.

Drive it — inject an error, read the fingerprint

Syndrome lookup table (verified, 16/16 distinct)

🌞 the toddler's corner

You have one magic marble. It's the only one in the whole world — you're not allowed to make another, ever. And it melts if anyone touches it or even looks at it too hard.

So how do you carry it across the room without it melting? Here's the trick: you hide the marble inside five ordinary pebbles, spread out so the marble isn't really in any single pebble — it's in the pattern of all five together.

Now you have four little helpers. Each helper doesn't look at the marble (looking would melt it!). Instead each one just checks: "did anything bump my pebbles?" and answers yes or no. Four yes/no answers together make a little secret code — and that code tells you exactly which pebble got bumped, without anyone ever peeking at the marble.

You fix the bumped pebble, and the marble is still perfectly safe in the pattern. Do this over and over — check, fix, check, fix — and the marble rides all the way across the room, never touched, never melted, still the one and only.

That's the whole thing: don't look at the treasure — watch the guards around it. The guards catch every bump, and the treasure you're never allowed to copy gets home safe.