Skip to main content
KetQat

Appearance

Code · intermediate

Rotated surface code

The surface-code layout with data qubits on the sites of a d by d grid and checks on a checkerboard of plaquettes plus weight-two checks along the edges. It encodes one qubit in d^2 data qubits with distance d and needs d^2 - 1 check measurements.

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 odd integer d≥3d \ge 3. Data qubits sit on the sites (i,j)(i, j), 0≤i,j≤d−10 \le i, j \le d-1, of a square grid, with ii the row and jj the column: n=d2n = d^2.

Bulk checks. For 0≤a,b≤d−20 \le a, b \le d-2 the plaquette (a,b)(a, b) consists of the four qubits (a,b)(a,b), (a,b+1)(a,b+1), (a+1,b)(a+1,b), (a+1,b+1)(a+1,b+1). It carries the product of XX on its qubits if a+ba + b is even and the product of ZZ if a+ba + b is odd.

Boundary checks. Extend the checkerboard one step beyond the grid and keep the half-plaquettes that follow the same colouring, XX-type on the top and bottom and ZZ-type on the left and right:

  • top: X(0,b)X(0,b+1)X_{(0,b)} X_{(0,b+1)} for odd bb; bottom: X(d−1,b)X(d−1,b+1)X_{(d-1,b)} X_{(d-1,b+1)} for even bb;
  • left: Z(a,0)Z(a+1,0)Z_{(a,0)} Z_{(a+1,0)} for even aa; right: Z(a,d−1)Z(a+1,d−1)Z_{(a,d-1)} Z_{(a+1,d-1)} for odd aa;

with 0≤a,b≤d−20 \le a, b \le d-2. There are (d−1)2(d-1)^2 bulk checks and 2(d−1)2(d-1) boundary checks, d2−1d^2 - 1 in all, half of each type. Two checks of different type share zero or two qubits, so all commute.

Parameters. [[ d2,  1,  d ]][[\,d^2,\; 1,\; d\,]], proved in the parameter theorem.

Logical operators. Zˉ=∏jZ(i,j)\bar Z = \prod_{j} Z_{(i,j)} along any row ii and Xˉ=∏iX(i,j)\bar X = \prod_{i} X_{(i,j)} along any column jj. Any row and any column share one qubit.

Properties. CSS, with every check of weight 4 or 2 and every data qubit in at most two checks of each type. With one measurement ancilla per check the layout uses 2d2−12d^2 - 1 qubits on a square grid with nearest-neighbour couplings: 17 for d=3d = 3, 49 for d=5d = 5, 97 for d=7d = 7. For even dd the same construction works with the boundary checks shifted by one position. Which pair of opposite sides carries the XX-type boundary checks is a convention; exchanging it exchanges the roles of rows and columns.

The layout appears in the comparison of lattices by Bombin and Martin-Delgado, who found that a planar surface code can reach n=d2n = d^2, and it is used for planar patches by Horsman, Fowler, Devitt and Van Meter and analysed at small distance by Tomita and Svore. Compared with the planar surface code, which has d2+(d−1)2d^2 + (d-1)^2 data qubits, it roughly halves the qubit count at the same distance.

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. 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
  2. Dominic Horsman, Austin G. Fowler, Simon Devitt, Rodney Van Meter (2012). Surface code quantum computing by lattice surgery. New Journal of Physics 14, 123011. doi:10.1088/1367-2630/14/12/123011arXiv:1111.4022
  3. Yu Tomita, Krysta M. Svore (2014). Low-distance surface codes under realistic quantum noise. Physical Review A 90, 062320. doi:10.1103/PhysRevA.90.062320arXiv:1404.3747
  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)

    Construction re-implemented exactly as stated; own GF(2) computation for d = 3, 5: d^2 - 1 independent checks, half of each type, all commuting, k = 1, distance d, row-Z and column-X logicals valid; ancilla counts 2d^2 - 1 = 17, 49, 97 checked. Even-d remark checked for d = 4, 6: the boundary checks on the bottom and right sides must follow the extended checkerboard (shifted by one), and then [[d^2, 1, d]] holds. Compared with Bombin and Martin-Delgado, arXiv:quant-ph/0703272, abstract and Sec. on planar codes (optimal planar surface-code rate n/d^2 = 1), Horsman et al., arXiv:1111.4022, Sec. 7.1 (rotated lattice for planar patches), Tomita and Svore, arXiv:1404.3747 (Surface-17 at d = 3). 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 f8b9ea28ed645973. Source file knowledge/records/code/rotated-surface-code.md in the content repository (readable there once it is public).