- Home
- Library
- Quantum Information in Field Theory
- Quantum Recovery and Regional Encoding
- Topological Codes and Gauge Constraints
Topological Codes and Gauge Constraints
Two errors can produce identical local measurement outcomes yet have different logical effects. In a toric code, the difference is whether the combined error and correction winds around the torus. A finite square lattice lets us check this distinction without diagonalizing its enormous Hilbert space.
Preparation: Error-correction conditions. We use physical qubits on edges, ideal stabilizer measurements and known measurement outcomes; no noisy-measurement threshold is assumed.
Physical qubits and commuting checks
Take an periodic square lattice with and one qubit on each of its edges. Write for the horizontal edge from to and for the vertical edge to ; coordinates are modulo . Define
Every star and plaquette share either zero or two edges. Each shared edge contributes a minus sign from , so all checks commute. The code is their common eigenspace, equivalently the ground space of
There are two relations, and , and no further independent ones. The number of independent stabilizers is , leaving two logical qubits. These are the toric-code operators of Kitaev, §1, Eqs. (1)–(4).
A short string and its syndrome
For a path on the direct lattice, let be the product of on its edges. An interior vertex touches two path edges, so its star still has eigenvalue . An endpoint touches one and has eigenvalue . All plaquettes remain . Thus the measured star defects locate the endpoints, not the complete path. This is the string mechanism in Kitaev, §2, Eq. (5).
Set and consider the two-edge error
The syndrome is , with every other star positive. The obvious correction gives . But it is not the only successful correction. Take the detour one row above:
It has the same two endpoints. Multiplying error and correction cancels their endpoint syndrome and produces
Since both plaquettes act as identity on the code, this detour also restores every logical state. The decoder need not discover the actual microscopic error path; it must choose a path in the correct equivalence class modulo plaquette boundaries.
The same syndrome can hide a logical error
Define a noncontractible horizontal loop and a crossing dual loop by
Both commute with all stabilizers. They share one edge, so
Therefore cannot be a stabilizer: it changes a logical degree of freedom. The alternative correction is the other three-edge route around the row. It has the same measured endpoints as , but
The syndrome has vanished while a logical error remains. The physical distinction is visible by starting in a eigenstate of : the wrong correction produces a eigenstate.
For , the minimum nontrivial loop length is five. Hence the code distance is five and all errors of weight at most two can be corrected by an appropriate decoder. For the displayed syndrome, the two-edge path is shorter than its three-edge winding competitor. This worst-case distance statement is separate from a threshold claim for a stochastic noise model.
examples/quantum-information/quantum-error-correction/check_finite.py represents Pauli strings by binary edge vectors. Exact arithmetic over finds star and plaquette ranks each, checks all commutators, verifies the two successful corrections, and proves that the winding residual is outside the plaquette span. All fifty single-edge errors have distinct endpoint syndromes. No state vector is required.
A stabilizer constraint is not automatically gauge redundancy
Here the full edge-qubit Hilbert space is physical. A state with is an allowed excited state, distinguishable by a measurement and assigned a higher energy by . Restricting attention to the code or to a low-energy sector does not delete those states from the physical theory.
A gauge description may instead impose Gauss constraints as part of defining the physical state space and restrict its observable algebra. Such a description can be useful, but its constrained states, charged sectors and allowed operators must be specified. Calling every stabilizer a gauge transformation would obscure the experimentally measurable syndrome in the qubit model. Kitaev discusses the relation to a gauge-theory description in §3; the distinction here is between a microscopic physical code and a chosen constrained description of it.
Summary
Local checks detect string endpoints. Correct recovery cancels the error up to a contractible stabilizer loop; a noncontractible residual implements a logical operation. The finite toric code is a physical qubit system, and its stabilizer constraints should not be conflated with an unspecified gauge redundancy.
Exercises
- What is the energy cost of the displayed open string? What happens when its two endpoints meet after winding once around the torus?
Solution
Each violated star changes its term from to , costing . Two endpoints therefore cost , independent of their separation in this commuting Hamiltonian. When they meet, the star defects disappear and the energy returns to the ground-state value. If the closed path winds nontrivially, the final state differs by and can lie in a different logical state at the same energy. Equal energy and zero syndrome do not imply successful recovery.
- Derive the analogous syndrome for an string on the dual lattice, and identify its successful correction criterion.
Solution
A dual path crosses physical edges carrying . It commutes with every star, while a plaquette anticommutes precisely when the dual path has an endpoint at its center. Thus only the two endpoint plaquettes have eigenvalue . An error and correction whose combined dual path is contractible differ by a product of star operators and act trivially on the code. A noncontractible dual residual is a logical operator; it anticommutes with a direct-lattice logical loop crossing it once.
References
- A. Kitaev, Fault-Tolerant Quantum Computation by Anyons, §1, Eqs. (1)–(4), §2, Eq. (5), and §3 on gauge-theory interpretation. The correction paths above are worked explicitly in the companion calculation.
Scrollable formula. Use Left and Right arrow keys to reveal hidden content.
Scrollable table. Use Left and Right arrow keys to reveal hidden columns.
Scrollable figure. Use Left and Right arrow keys to reveal hidden content.