Skip to main content
KetQat

Appearance

Code · intermediate

Two-dimensional color code

A CSS stabilizer code with qubits on the vertices of a trivalent lattice whose faces can be coloured with three colours. Every face carries both an X check and a Z check on the same qubits. Triangular patches encode one qubit, with the Steane code as the smallest case.

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. A cellulation of a surface in which every vertex has exactly three edges and the faces can be coloured red, green and blue so that faces sharing an edge have different colours. Every face then has an even number of vertices, because the faces around it alternate between the two other colours, and two distinct faces share an even number of vertices. One qubit sits on each vertex.

Checks. For every face ff, with vv running over its vertices,

Xf=∏v∈fXv,Zf=∏v∈fZv.X_f = \prod_{v \in f} X_v , \qquad Z_f = \prod_{v \in f} Z_v .

XfX_f and Zf′Z_{f'} overlap on an even number of qubits for all f,f′f, f', so all checks commute. The XX-type and ZZ-type checks have identical supports: the code is a self-dual CSS code.

Parameters on a closed surface. On a closed surface of Euler characteristic χ\chi the code encodes k=4−2χk = 4 - 2\chi qubits: none on the sphere and four on the torus, twice as many as the toric code on the same surface (Bombin and Martin-Delgado).

Triangular codes. Removing one vertex of a lattice on the sphere, together with the three faces and three edges that meet there, leaves a planar triangular patch with three sides, one of each colour, that encodes k=1k = 1 qubit in an odd number nn of qubits with (n−1)/2(n-1)/2 faces. Two standard families, with odd distance dd, are

Lattice Faces nn d=3,5,7d = 3, 5, 7
hexagonal (6.6.6) hexagons, weight-4 faces on the sides (3d2+1)/4(3d^2 + 1)/4 7,19,377, 19, 37
square-octagon (4.8.8) squares and octagons, weight-4 faces on the sides (d2+2d−1)/2(d^2 + 2d - 1)/2 7,17,317, 17, 31

with qubit counts as given by Landahl, Anderson and Rice. Both begin with the [[7,1,3]][[7,1,3]] Steane code, whose three weight-4 checks of each type are the three faces of the smallest triangle.

Logical operators. In a triangular code Xˉ=X⊗n\bar X = X^{\otimes n} and Zˉ=Z⊗n\bar Z = Z^{\otimes n}: each commutes with all checks because faces are even, and they anticommute because nn is odd. Multiplying by checks reduces them to strings of weight dd running along one side of the triangle. On a closed surface the logical operators are strings of a given colour, which run along the edges joining faces of that colour and may branch at a vertex into strings of the other two colours.

Properties. Every qubit lies on three faces, so a single-qubit XX error flips up to three ZZ checks (three in the bulk, fewer at the sides and corners). The transversal gates are stated in the transversal Clifford theorem. Bombin and Martin-Delgado compare the qubit cost with surface codes: the best planar color-code lattice in their study has n/d2→3/4n / d^2 \to 3/4, against n/d2=1n / d^2 = 1 for the best planar surface code, both counted in data qubits only.

Instance of
Part of
Related
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. H. Bombin, M. A. Martin-Delgado (2006). Topological Quantum Distillation. Physical Review Letters 97, 180501. doi:10.1103/PhysRevLett.97.180501arXiv:quant-ph/0605138
  2. H. Bombin, M. A. Martin-Delgado (2007). Optimal resources for topological two-dimensional stabilizer codes: Comparative study. Physical Review A 76, 012305. doi:10.1103/PhysRevA.76.012305arXiv:quant-ph/0703272
  3. Andrew J. Landahl, Jonas T. Anderson, Patrick R. Rice (2011). Fault-tolerant quantum computing with color codes. arXiv:1108.5738
  4. Andrew Steane (1996). Multiple Particle Interference and Quantum Error Correction. Proceedings of the Royal Society A 452, 2551. doi:10.1098/rspa.1996.0136arXiv:quant-ph/9601029

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)

    Compared with Bombin and Martin-Delgado, arXiv:quant-ph/0605138 (3-valent, 3-colourable lattices, k = 4 - 2 chi, triangular codes from a sphere lattice minus one site, Fig. 4), Bombin and Martin-Delgado, arXiv:quant-ph/0703272, abstract (optimal planar colour code n/d^2 = 3/4 versus surface code 1), and Landahl, Anderson and Rice, arXiv:1108.5738, Fig. 2 caption (n = d^2/2 + d - 1/2 for 4.8.8 and 3d^2/4 + 1/4 for 6.6.6); table values 7, 19, 37 and 7, 17, 31 recomputed. Commutation, self-duality, transversal logicals X^n, Z^n (even faces, odd n), (n-1)/2 faces for k = 1 re-derived; Steane code as the d = 3 case checked against the faces used in the transversal-gate proof. landahl-anderson-rice-2011 has only an arXiv id (title and authors matched the arXiv text); other 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 221c786f358f1716. Source file knowledge/records/code/two-dimensional-color-code.md in the content repository (readable there once it is public).