Skip to main content
KetQat

Appearance

Code · intermediate

Planar surface code

The toric code cut open into a rectangle with two rough and two smooth boundaries. With d qubits along each side it encodes one qubit in d^2 + (d-1)^2 physical qubits with distance d, using checks of weight four in the bulk and three at the boundary.

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 d≥2d \ge 2. Take a square lattice with vertices (i,j)(i, j) for 1≤i≤d−11 \le i \le d-1 and 1≤j≤d1 \le j \le d. Each row jj carries dd horizontal edges, joining horizontal positions i−1i-1 and ii for 1≤i≤d1 \le i \le d; the leftmost and rightmost edges of a row have a vertex at one end only. Vertical edges join (i,j)(i,j) to (i,j+1)(i, j+1) for 1≤j≤d−11 \le j \le d-1. One qubit sits on each edge:

n=d2+(d−1)2.n = d^2 + (d-1)^2 .

The left and right sides, where edges stick out, are rough boundaries; the top and bottom rows are smooth boundaries.

Checks. Each of the d(d−1)d(d-1) vertices carries Av=∏e∋vXeA_v = \prod_{e \ni v} X_e, of weight 4, or weight 3 in the top and bottom rows. Each of the d(d−1)d(d-1) square or open-sided faces carries Bf=∏e∈∂fZeB_f = \prod_{e \in \partial f} Z_e, of weight 4, or weight 3 for the faces at the left and right ends, which lack one vertical side. The 2d(d−1)=n−12d(d-1) = n - 1 checks are independent.

Parameters. [[ d2+(d−1)2,  1,  d ]][[\,d^2 + (d-1)^2,\; 1,\; d\,]].

Logical operators. Zˉ\bar Z is the product of ZZ on the dd horizontal edges of any one row: a string joining the two rough boundaries. Xˉ\bar X is the product of XX on the dd horizontal edges at a fixed horizontal position, one in each row: a string on the dual lattice joining the two smooth boundaries. They share exactly one edge and anticommute. A ZZ string may end on a rough boundary and an XX string on a smooth boundary without violating a check, which is why open strings between like boundaries are logical operators.

Properties. CSS; all checks are local on a planar square grid. With one ancilla per check the layout uses n+(n−1)=(2d−1)2n + (n-1) = (2d-1)^2 qubits. The code is due to Bravyi and Kitaev and, independently, Freedman and Meyer; its performance as a memory is the subject of Dennis, Kitaev, Landahl and Preskill. The rotated surface code achieves the same distance with about half as many qubits.

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. S. B. Bravyi, A. Yu. Kitaev (1998). Quantum codes on a lattice with boundary. arXiv:quant-ph/9811052
  2. Michael H. Freedman, David A. Meyer (2001). Projective Plane and Planar Quantum Codes. Foundations of Computational Mathematics 1, 325-332. doi:10.1007/s102080010013arXiv:quant-ph/9810055
  3. 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
  4. Austin G. Fowler, Matteo Mariantoni, John M. Martinis, Andrew N. Cleland (2012). Surface codes: Towards practical large-scale quantum computation. Physical Review A 86, 032324. doi:10.1103/PhysRevA.86.032324arXiv:1208.0928

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)

    Lattice counts, check weights, logical strings and the ancilla count (2n-1 = (2d-1)^2) re-derived. Own GF(2) computation of the stated construction for d = 2..5: n = d^2 + (d-1)^2, 2d(d-1) = n-1 independent checks, k = 1, minimum X- and Z-logical weight d. Attributions compared with Bravyi and Kitaev, arXiv:quant-ph/9811052 (codes on a lattice with boundary), Freedman and Meyer, arXiv:quant-ph/9810055 (planar quantum codes), Dennis et al., arXiv:quant-ph/0110143. Reference metadata matched Crossref (bravyi-kitaev-1998 has only an arXiv id, title and authors matched the arXiv page).

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 5079c6147359aa72. Source file knowledge/records/code/planar-surface-code.md in the content repository (readable there once it is public).