Logical Operators as Loops
The toric code encodes logical qubits. This lesson identifies the operators that act on them: the logical Pauli operators are string operators wrapped around the noncontractible loops of the torus. A contractible loop is a product of stabilizers and acts trivially; only loops that wind the torus give genuine logical action. The algebra of these logical operators is fixed entirely by how the loops intersect.
Contractible loops are stabilizers
Consider a closed -string around a loop . If is contractible — the boundary of some region of faces — then it is exactly the product of the plaquette operators inside :
So a contractible -loop is a stabilizer: it acts as on the code space and changes nothing. The same holds for contractible -loops on the dual lattice, which are products of star operators. Only loops that cannot be filled in can act nontrivially.
Noncontractible loops and homology
On a torus there are two independent noncontractible cycles — one winding the "horizontal" direction, one the "vertical". Two loops that differ by a contractible deformation belong to the same homology class; the classes form the first homology group
Define logical operators as -strings running along the two noncontractible cycles of the lattice, and logical operators as -strings running along the two noncontractible cycles of the dual lattice. Each:
- commutes with every stabilizer (a winding loop crosses each star/plaquette an even number of times),
- is not itself a stabilizer (it is not the boundary of any region),
which is exactly the definition of a logical operator. Deforming a logical string by multiplying with stabilizers keeps it in the same homology class — its class, not its shape, is what matters.
The logical algebra from intersections
The commutation of two string operators is governed (as always) by the parity of their crossings. A logical string on the dual lattice and a logical string on the direct lattice cross on shared edges where and anticommute:
where is the number of intersections mod 2. Choosing the cycles so that and cross exactly once when and not at all when gives
the canonical Pauli algebra of two qubits. The two independent winding directions two anticommuting pairs exactly logical qubits, confirming the count from the stabilizer bookkeeping.
Why this is fault-tolerant
A logical operator is supported on a loop that wraps the entire torus, so its weight is at least (one edge per lattice row it crosses). Any local error is a short, contractible string — detectable and correctable. To enact an unintended logical operation, noise must build an undetected string spanning a noncontractible cycle, requiring at least coordinated single-qubit errors. That minimum weight is the code distance, the subject of the next lessons.
Sign in on the full site to ask questions and join the discussion.