Lecțiile acestui traseu sunt publicate deocamdată doar în engleză, așa că lecția de mai jos apare în engleză. Restul — module, quiz și materiale — funcționează la fel.
The Surface Code: Lattice, Distance, Syndromes and Logical Operators
Vei putea să:
You can draw a distance-3 rotated surface code, label data and measure qubits, state the X and Z stabilizer of each plaquette, trace the logical X and Z strings, explain why distance equals the shortest logical operator, and count physical qubits as 2d²−1.
A code you can draw on graph paper
The surface code is the code most hardware roadmaps are built around, and the reason is geometric rather than mathematical: every check involves only a qubit's immediate neighbours on a 2D grid, which is exactly what a superconducting chip can offer. Dennis, Kitaev, Landahl and Preskill worked out its memory properties in 2001; Fowler and colleagues' 2012 paper is the engineering manual most people learn from.
The lattice
Take the rotated version (the one in Google's experiments). Place d × d data qubits on a square grid. Between them sit the measure qubits, one per face of the checkerboard plus a few on the boundary, alternating between two types:
- An X-type measure qubit checks the product X⊗X⊗X⊗X of its four surrounding data qubits.
- A Z-type measure qubit checks Z⊗Z⊗Z⊗Z of its four surrounding data qubits.
On the boundary the faces are cut in half and the checks have weight 2. Count them up for distance d: d² data qubits plus d² − 1 measure qubits, so 2d² − 1 physical qubits in total. Distance 3 needs 17, distance 5 needs 49, distance 7 needs 97.
Adjacent X and Z plaquettes always share exactly two data qubits, and two Paulis that overlap on an even number of qubits commute. That is the whole reason the checks can be measured together without disturbing each other.
Logical operators
With d² data qubits and d² − 1 generators there is exactly one logical qubit per patch. Its logical Z is a string of Z operators running from one Z-type boundary to the opposite one; its logical X is a string of X operators running between the other two boundaries. The two strings cross on exactly one data qubit, which is why they anticommute, as a logical X and Z must. The shortest such string has length d — hence the name "distance". A longer wiggly string is the same logical operator multiplied by some stabilizers, so the decoder treats all of them as equivalent.
What an error looks like in the syndrome
Here is the picture to internalise. A single Z error on a data qubit anticommutes with the X-type checks on either side of it, so two adjacent X-type measure qubits report −1. A single Z error on a boundary data qubit lights only one check, because its other neighbour is off the edge of the patch. A chain of Z errors along a path lights only the two checks at the chain's endpoints; everything in the middle cancels because each interior check sees two errors.
So the syndrome does not tell you where the errors are. It tells you where the endpoints of error chains are. Decoding (module 4) is the problem of pairing endpoints up with the cheapest chains, and it fails when the pairing you choose, combined with the actual error, wraps a string from one boundary to the other — a logical error.
Worked procedure: one round of syndrome extraction
For each measure qubit, in parallel:
- Reset the measure qubit to |0⟩ (and apply H if it is X-type).
- Apply four CNOTs between the measure qubit and its four data qubits, in a fixed order — all X-type plaquettes use one zigzag pattern, all Z-type plaquettes the mirrored one.
- Undo the H if X-type, then measure the measure qubit.
Step 2's ordering is not cosmetic. A fault in the middle of the four CNOTs can leave an error on two data qubits at once (a "hook" error). The standard orderings are chosen so that the hook's two qubits lie perpendicular to the logical operator that check protects, so a single fault still only costs one unit of distance. Get the ordering wrong and your distance-5 code behaves like distance 3.
On a superconducting processor one round takes on the order of a microsecond. The measurements themselves are noisy, so a round is repeated d times and the decoder works on the 3D space-time volume of results: a measurement error shows up as a check that flips in one round and flips back in the next, which looks like a chain in the time direction. Tools like Stim therefore report detectors — the comparison of a check with its previous-round value — rather than raw syndromes, so that an error-free run gives all zeros.
The trade-off that made the surface code the default
The surface code wins on two counts: nearest-neighbour connectivity in two dimensions, and a high threshold — roughly 0.7–1% per operation under circuit-level depolarising noise with a matching decoder, though the exact number depends on the noise model and decoder. What it costs is encoding rate. Each patch stores one logical qubit in ~2d² physical qubits, and realistic algorithms need d in the 20s. A thousand logical qubits at distance 25 is more than a million physical qubits before you count magic-state factories (module 6). The codes in module 7 exist because people want that number to come down.
What to remember
- Rotated surface code of distance d: d² data qubits, d² − 1 measure qubits, 2d² − 1 total; one logical qubit per patch.
- X-type checks measure XXXX on a face; Z-type checks measure ZZZZ; neighbours share two qubits and therefore commute.
- Logical X and Z are boundary-to-boundary strings that cross on one qubit; the shortest string has length d.
- The syndrome shows the endpoints of error chains, not the errors.
- CNOT ordering in syndrome extraction decides whether a single fault costs one or two units of distance.
- Rounds are repeated and decoded in space-time, because measurements are errors too.
Materiale selectate
2.7hMunca de profunzime se întâmplă aici — lecția este briefingul tău.
În direct pe aiqbench
Subiectul acestei lecții în restul site-ului, astăzi.
În știri, ultimele 30 de zile
- GPU decoder keeps pace with a superconducting qubit clock on a continuous stream, with NVIDIA NVQLink interconnectAlice & Bob ·
- Classiq and Diraq Collaborate to Advance Fault-Tolerant Quantum Computing on SiliconHPCwire ·
- NVIDIA Strengthens US Quantum Leadership With Groq 3 LPX Breakthrough in Quantum Error CorrectionNVIDIA ·
Testează-ți cunoștințele
5 întrebări în 100 de secunde, pe o pagină separată. Citește mai întâi tot ce este mai sus.
Testează-ți cunoștințele →Misiunea modulului
35–45 minDraw a distance-3 rotated surface code on squared paper: 9 data qubits on a 3×3 grid, 8 measure qubits (4 X-type, 4 Z-type, including the four boundary half-plaquettes). Shade the X and Z plaquettes, draw one logical Z string and one logical X string, and show they share exactly one qubit (so they anticommute). Then draw a single Z error on the centre data qubit and mark which two X-type stabilizers light up. Repeat for a Z error on a boundary qubit and explain why only one stabilizer lights up.
Se încarcă lucrarea ta…