The Toric Code
Kitaev's toric code is the foundational topological code. It lives on a square lattice wrapped onto a torus, with one qubit on every edge. Two families of mutually commuting, geometrically local stabilizers define a code space, and the global topology of the torus endows that space with exactly protected logical qubits. This lesson sets up the lattice, the operators, and the bookkeeping.
The lattice and where the qubits live
Take an square lattice with periodic boundary conditions in both directions — a discrete torus. Place one physical qubit on each edge of the lattice. An torus has vertices, plaquettes (faces), and edges, so
(Euler's formula for the torus is satisfied: .)
Two kinds of stabilizer
For each vertex we define a star operator , the product of Pauli- over the four edges meeting at ; for each plaquette we define a plaquette operator , the product of Pauli- over the four edges bordering :
Each acts on exactly four qubits — the checks are local. The next lesson studies these operators in detail; here we just need that they all commute. Two stars or two plaquettes obviously commute (disjoint, or all- / all-). A star and a plaquette share either or edges; since and anticommute, sharing an even number of qubits makes the operators commute. Hence generate an abelian stabilizer group.
The toric-code Hamiltonian makes the code space the ground space:
Every term is ; the ground states saturate all of them at , i.e. they are exactly the stabilized states.
The two redundancies
The star operators are not independent: their product over all vertices is the identity, because every edge touches exactly two vertices and so each appears twice:
Likewise . Each family therefore contributes only independent generators, for a total of
Counting the logical qubits
The number of encoded qubits follows immediately:
The toric code encodes two logical qubits, independent of . This is no accident of counting: the two logical qubits are tied to the two independent noncontractible cycles of the torus (its first homology ), as the lesson on logical operators will make precise.
Summary of parameters
For the toric code:
where the distance is the length of the shortest noncontractible loop (derived two lessons from now). Growing leaves the checks four-local while increasing the protection — the hallmark of a topological code.
Sign in on the full site to ask questions and join the discussion.