Other meanings of Toric code
Quantum information
Toric code is a two-dimensional topological quantum error-correcting code introduced by Alexei Kitaev. It stores quantum information nonlocally in a lattice model whose edges carry qubits and whose periodic boundary conditions form a torus. The code is the canonical periodic example of a surface code: localized errors create detectable excitations, while undetectable logical operations follow noncontractible paths around the surface.1
The toric code is a stabilizer code defined on a square lattice embedded on a torus. A physical qubit occupies each edge, while two commuting operators are associated with every vertex and every plaquette: the vertex operator multiplies Pauli X operators on incident edges, and the plaquette operator multiplies Pauli Z operators around a face.1 The simultaneous +1 eigenspace of all these checks is the code space.
Because every edge touches two vertices and borders two plaquettes, neighboring stabilizers commute. On a torus, the checks are not all independent, and the remaining degrees of freedom encode two logical qubits. The construction is exactly solvable, making it a useful setting for studying quantum error correction, topological order, and emergent quasiparticles.
The code protects information through topology rather than through a locally distinguished collection of qubits. A chain of Pauli Z operators creates vertex excitations at its endpoints, whereas a chain of Pauli X operators creates plaquette excitations; extending a chain changes its length without changing its endpoints.1
A closed contractible chain is equivalent to stabilizers, but a loop winding around a torus is a nontrivial logical operator. Two independent winding directions provide the logical X and Z operators for each encoded qubit, with intersecting loops anticommute. The code distance grows with the lattice's linear dimension, so an error must form a spanning or winding path before it can enact a logical operation. This nonlocal encoding is the source of both protection and topological degeneracy.
Error correction proceeds by measuring stabilizers and inferring likely error chains from their syndrome endpoints. In the ideal model, repeated checks reveal where excitations occur without measuring the encoded state; a decoder then chooses correction chains that connect the observed defects.2
The toric code has no physical boundary, whereas practical surface codes usually place a related lattice on a plane with specially chosen rough and smooth boundaries. Those boundaries condense different excitation types and allow a planar patch to encode information while retaining the toric code's local-check structure.3 Real devices must also handle measurement faults, leakage, biased noise, imperfect gates, and correlated errors. Thresholds therefore depend on the noise model, decoder, circuit, and hardware rather than being a single intrinsic number.
The toric code is also a model of a fourfold topological ground-state degeneracy on a torus, not merely a code written in matrix form.1 Its excitations have mutual statistical phase: moving one type around the other produces a sign change, while exchanging identical elementary excitations does not produce ordinary fermionic or bosonic behavior in the full two-dimensional sense. This makes the model a simple example of anyonic topological order.
Its exactly solvable character is a strength and a limitation. It exposes the mechanism of topological protection cleanly, but its gap and degeneracy can be altered by finite temperature, boundaries, perturbations, and thermal error processes.4 The model consequently serves as a benchmark for decoding algorithms and fault-tolerant architecture, while experimental implementations generally use planar descendants rather than a literal torus.
The toric code is treated here as the periodic topological stabilizer code, not as an unrelated use of the word “toric” in geometry or materials science.
Help improve the encyclopedia. Reports go straight to the site manager.