Skip to main content
KetQat

Appearance

Code · intermediate

Toric code

Kitaev's stabilizer code on an L by L square lattice with periodic boundaries. Qubits sit on edges, vertex operators are products of four X, plaquette operators products of four Z, and the parameters are [[2L^2, 2, L]].

Established definitionMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01

AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.

Lattice. Fix an integer L≥2L \ge 2. The vertices are the points (i,j)∈ZL×ZL(i, j) \in \Z_L \times \Z_L of a square lattice with periodic boundary conditions. There are two edges per vertex: the horizontal edge hi,jh_{i,j} from (i,j)(i,j) to (i+1,j)(i+1,j) and the vertical edge vi,jv_{i,j} from (i,j)(i,j) to (i,j+1)(i,j+1). One qubit sits on each edge, so n=2L2n = 2L^2.

Checks. For every vertex and every plaquette (unit square)

Ai,j=Xhi,j Xhi−1,j Xvi,j Xvi,j−1,Bi,j=Zhi,j Zhi,j+1 Zvi,j Zvi+1,j.A_{i,j} = X_{h_{i,j}}\, X_{h_{i-1,j}}\, X_{v_{i,j}}\, X_{v_{i,j-1}}, \qquad B_{i,j} = Z_{h_{i,j}}\, Z_{h_{i,j+1}}\, Z_{v_{i,j}}\, Z_{v_{i+1,j}} .

There are L2L^2 operators of each type. A vertex and a plaquette share either no edge or two edges, so all checks commute. They satisfy exactly two relations, ∏i,jAi,j=I\prod_{i,j} A_{i,j} = I and ∏i,jBi,j=I\prod_{i,j} B_{i,j} = I, leaving 2L2−22L^2 - 2 independent generators.

Parameters. [[2L2,2,L]][[2L^2, 2, L]], proved in the parameter theorem.

Logical operators. One choice of representatives is

Zˉ1=∏iZhi,0,Xˉ1=∏jXh0,j,Zˉ2=∏jZv0,j,Xˉ2=∏iXvi,0.\bar Z_1 = \prod_{i} Z_{h_{i,0}}, \quad \bar X_1 = \prod_{j} X_{h_{0,j}}, \qquad \bar Z_2 = \prod_{j} Z_{v_{0,j}}, \quad \bar X_2 = \prod_{i} X_{v_{i,0}} .

Zˉ1\bar Z_1 and Zˉ2\bar Z_2 are strings of ZZ along the two non-contractible loops of the lattice. Xˉ1\bar X_1 and Xˉ2\bar X_2 are strings of XX on the edges crossed by non-contractible loops of the dual lattice. Each has weight LL; Xˉa\bar X_a anticommutes with Zˉa\bar Z_a and commutes with the other pair. Multiplying a representative by checks deforms the loop without changing its winding.

Properties. The code is a CSS code and the homological code of the square cellulation of the torus. Every check has weight 4 and every qubit is in two checks of each type, so it is a quantum LDPC code with geometrically local checks in two dimensions. Its code space is the ground space of the toric-code Hamiltonian. It was introduced by Kitaev; its use as a memory with repeated syndrome measurement is analysed by Dennis, Kitaev, Landahl and Preskill.

Part of
Stated in

Open in the knowledge graph

Contributions about this record

Nobody has published a contribution about it yet.

Publish a result, reproduction or commentPropose a correction to this page

References

  1. A. Yu. Kitaev (2003). Fault-tolerant quantum computation by anyons. Annals of Physics 303, 2-30. doi:10.1016/S0003-4916(02)00018-0arXiv:quant-ph/9707021
  2. Eric Dennis, Alexei Kitaev, Andrew Landahl, John Preskill (2002). Topological quantum memory. Journal of Mathematical Physics 43, 4452-4505. doi:10.1063/1.1499754arXiv:quant-ph/0110143

Contributors

  • KetQat maintainers · @ketqatConceptualization; Supervision (CRediT roles)
  • Claude (AI drafting assistant)Writing, original draft (CRediT roles)

Review history

  1. Automated source check · Pass · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)

    Check supports, commutation, the two relations, and the four logical representatives (weights, commutation pattern) re-derived for the stated edge labelling. Own GF(2) computation for L = 2..5: rank 2L^2 - 2, k = 2, minimum Z-logical weight L (X by the lattice self-duality). Compared with Kitaev, arXiv:quant-ph/9707021, Sec. 2 (k x k torus, n = 2k^2, relations prod A_s = prod B_p = 1, dim L = 4, logical loops and cuts, homological description) and Dennis et al., arXiv:quant-ph/0110143 (memory with repeated syndrome measurement). Metadata matched Crossref.

Revision history

  1. 2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e
  2. 2026-11-30KetQat Commons: free learning paths, knowledge records, research problems, literature intake (#14)571c9b10

Current revision 1c53d687b0923f06. Source file knowledge/records/code/toric-code.md in the content repository (readable there once it is public).