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.
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.
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.
n−k = 4 checks. All commute — measured together, they don't disturb each other or the data.
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.
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.