Skip to main content

Plain-Language Intuition

Mode: Simple / School
The leading design for large error-corrected quantum computers is the surface code: a chessboard of qubits. Data qubits sit on the corners of the squares, and in the middle of each square sits a helper qubit whose only job is to keep checking its four neighbours. This module is one such square. The helper asks a single yes/no question about its four data qubits together, without learning anything about any one of them. The recipe never changes: 1. Hadamard on the helper. 2. Four CNOTs from the helper to its four neighbours. 3. Hadamard on the helper, then measure it. If the helper reads 0, the group is healthy. If it reads 1, a phase-flip error has hit one of the four. A real machine repeats this thousands of times per second on every square. Where neighbouring helpers both report trouble, a classical decoder works out which shared qubit was hit.

Fault Tolerance

Stabilizer Measurement (Surface-Code Check): quick reference

Measures the X-type stabilizer of four data qubits with one ancilla, exactly as a surface-code plaquette does, to catch phase-flip errors.

Topic
Fault Tolerance
Level
Advanced
Circuit size
5 Qubits
Key result
The repeating unit of the surface code

Concepts covered: Stabilizer Measurement, Surface Code, Syndrome Extraction, Phase-Flip Detection

How Stabilizer Measurement (Surface-Code Check) works, step by step

  1. Prepare the Data Qubits. Put the four data qubits (Q0 to Q3) in plus states. This group gives a definite "healthy" answer to the check.
  2. A Phase-Flip Error Occurs. Noise applies a phase flip to Q1, turning its plus state into minus.
  3. Prepare the Ancilla. A Hadamard puts the helper (Q4) into superposition.
  4. Couple to the Four Neighbours. Four CNOTs from the helper to each data qubit. The group's answer (+1 or −1) is kicked back onto the helper.
  5. Interfere the Ancilla. A second Hadamard converts the sign into a bit.
  6. Read the Syndrome. The helper reads 1: an error is present in this square.

Frequently asked questions

What is Stabilizer Measurement (Surface-Code Check)?

Measures the X-type stabilizer of four data qubits with one ancilla, exactly as a surface-code plaquette does, to catch phase-flip errors. It is a advanced-level topic in fault tolerance.

How many qubits does the Stabilizer Measurement circuit use?

The QuanBit tutorial uses a 5 qubits circuit. Key result: The repeating unit of the surface code.

Can I simulate Stabilizer Measurement online for free?

Yes. The interactive Stabilizer Measurement tutorial at https://www.quanbit.tech/learn/stabilizer-measurement runs free in the browser with nothing to install. You can step through the circuit gate by gate, watch the probabilities, statevector and Bloch spheres update, build the circuit yourself and take a short quiz.