Checkpoint: Analyze a Code
This checkpoint pulls the module together: given only a code's stabilizer generators, you will read off its parameters and compute its distance directly — the core analytical skill of error-correction theory.
The code under study:
The code is the smallest CSS code and the smallest code that can detect an arbitrary single-qubit error. It has just two stabilizer generators on four qubits,
which commute because they overlap on all four qubits (an even number). With physical qubits and generators, it encodes
Reading off logical operators
We need logical operators obeying the qubit algebra and commuting with both generators. A standard choice is
each of weight 2. Verify that every one commutes with and (even overlaps) and that the intended pairs anticommute — and share only qubit 1, and share only qubit 1 — while different-index pairs commute (each shares an even number of qubits) — exactly the constraints from the logical-operators lesson.
Computing the distance
The distance is the minimum weight of any operator in . The lightest logical operators above have weight 2, and no weight-1 Pauli both commutes with and and lies outside — so
The code is therefore : it detects any single error (distance 2 means detectable) but corrects of them. It is a detection code, the entry point to the CSS and surface-code constructions of the next module.
Try it
Compute the distance of the code from its two generators and using the symplectic formalism: enumerate the Paulis in and return the minimum weight. You should obtain .
Sign in on the full site to ask questions and join the discussion.