Skip to main content
KetQat

Appearance

Theorem · intermediate

Parameters of the rotated surface code

For odd d the rotated surface code on a d by d grid of data qubits has d^2 - 1 independent checks, encodes one qubit and has distance d; the rows and columns of the grid are minimum-weight logical operators.

Established resultMachine-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.

For every odd d≥3d \ge 3 the rotated surface code is a stabilizer code with parameters

[[ n,k,d ]]=[[ d2,  1,  d ]].[[\,n, k, d\,]] = [[\,d^2,\; 1,\; d\,]] .

Its d2−1d^2 - 1 checks are independent. The product of ZZ along any row and the product of XX along any column are logical operators of weight dd, any two rows (or two columns) differ by a product of checks, and no Pauli operator of weight less than dd acts non-trivially on the code space.

That a planar surface code can reach n=d2n = d^2 is due to Bombin and Martin-Delgado.

Holds when

  • Odd d≥3d \ge 3 and the checks of the rotated surface code record, with XX-type weight-two checks on the top and bottom sides and ZZ-type on the left and right.
  • The distance is the minimum weight of a Pauli operator that commutes with every check and is not, up to a phase, a product of checks.

Proof

Proof of the rotated surface code parametersMachine-checked

Use the coordinates of the code record. It is convenient to index every check, bulk or boundary, by a plaquette position (a,b)(a, b) with −1≤a,b≤d−1-1 \le a, b \le d-1, whose qubits are those of (a,b),(a,b+1),(a+1,b),(a+1,b+1)(a,b), (a,b+1), (a+1,b), (a+1,b+1) that lie in the grid. The XX-type checks are the positions with a+ba + b even and 0≤b≤d−20 \le b \le d-2; the ZZ-type checks are the positions with a+ba + b odd and 0≤a≤d−20 \le a \le d-2. For odd dd this reproduces the lists in the record.

Commutation. Two plaquette positions that share an edge have a+ba + b of opposite parity and share two qubits or none inside the grid; positions that share only a corner have the same parity, hence the same type. So checks of different type overlap on an even number of qubits.

Independence. Every qubit lies in at most two XX-type checks, namely those at diagonally opposite plaquette positions around it. A product of a set SS of XX-type checks is the identity exactly when every qubit lies in an even number of members of SS. So if two XX-type checks share a qubit, both are in SS or neither is, and a check containing a qubit that lies in no other XX-type check is not in SS.

The XX-type positions are connected under diagonal steps: from (a,b)(a,b) with a+ba + b even one reaches (0,0)(0,0) by steps (±1,±1)(\pm 1, \pm 1) that stay among the XX-type positions, since the bulk positions of one colour of a square board of side d−1≥2d - 1 \ge 2 are connected by such steps, and each boundary position (−1,b)(-1, b) or (d−1,b)(d-1, b) is diagonally adjacent to a bulk position. Diagonally adjacent positions share exactly one qubit. Hence SS contains all XX-type checks or none. The corner qubit (0,0)(0,0) lies in the plaquette (0,0)(0,0) and in no other XX-type check, because the positions (−1,−1)(-1,-1) and (−1,0)(-1, 0), (0,−1)(0,-1) are not XX-type checks. So the plaquette (0,0)(0,0) is not in SS and SS is empty: the (d2−1)/2(d^2-1)/2 checks of XX type are independent. The ZZ-type checks are independent by the same argument with the corner qubit (0,d−1)(0, d-1), which lies only in the plaquette (0,d−2)(0, d-2). An XX-type product equals a ZZ-type product only if both are the identity, so the stabilizer group has rank d2−1d^2 - 1 and k=1k = 1.

Logical operators. Let Ri=∏jZ(i,j)R_i = \prod_j Z_{(i,j)} and Cj=∏iX(i,j)C_j = \prod_i X_{(i,j)}. An XX-type check at position (a,b)(a, b) meets row ii in the two qubits (i,b),(i,b+1)(i,b), (i,b+1) if i∈{a,a+1}i \in \{a, a+1\} and in none otherwise, so RiR_i commutes with all checks; similarly a ZZ-type check meets a column in two qubits or none, so CjC_j commutes with all checks. RiR_i and CjC_j share the single qubit (i,j)(i,j) and anticommute. Two operators that commute with the stabilizer group and anticommute with each other cannot lie in it, so Zˉ=Ri\bar Z = R_i and Xˉ=Cj\bar X = C_j are a pair of logical operators of the single encoded qubit.

All columns are equivalent. Fix 0≤j≤d−20 \le j \le d-2 and multiply the XX-type checks at positions (a,j)(a, j), a≡j(mod2)a \equiv j \pmod 2, −1≤a≤d−1-1 \le a \le d-1. Each acts with XX on columns jj and j+1j+1 in rows aa and a+1a+1 (those inside the grid). For even jj the rows covered are {0,1},{2,3},…,{d−3,d−2},{d−1}\{0,1\}, \{2,3\}, \dots, \{d-3,d-2\}, \{d-1\}; for odd jj they are {0},{1,2},…,{d−2,d−1}\{0\}, \{1,2\}, \dots, \{d-2,d-1\}. In both cases every row is covered once, so the product is CjCj+1C_j C_{j+1}. Hence all CjC_j differ by stabilizers. The same argument with the ZZ-type checks at positions (i,b)(i, b), b≢i(mod2)b \not\equiv i \pmod 2, shows that all RiR_i differ by stabilizers.

Distance. Since k=1k = 1, every Pauli operator commuting with all checks equals, up to a phase, s XˉaZˉbs\, \bar X^{a} \bar Z^{b} with ss in the stabilizer group. Let QQ be a product of ZZ operators on a set cc of qubits that commutes with all checks and is not a product of checks. QQ commutes with Zˉ\bar Z, so a=0a = 0, and then b=1b = 1. Thus QQ anticommutes with Xˉ=C0\bar X = C_0 and with every CjC_j, since these differ from C0C_0 by stabilizers. Anticommuting with CjC_j means that cc contains an odd number of qubits of column jj. The dd columns are disjoint, so ∣c∣≥d\abs{c} \ge d. Exchanging the roles of rows and columns, every non-trivial XX-type logical operator has weight at least dd.

A general Pauli operator is, up to a phase, a product X(u)Z(w)X(u) Z(w). In a CSS code it commutes with all checks exactly when both factors do, and if it is not in the stabilizer group at least one factor is not; that factor has weight at least dd. Since R0R_0 has weight dd, the distance is exactly dd.

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. 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

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)

    Statement checked by own GF(2) computation of the rotated surface code for d = 3 and 5 (independence of the d^2 - 1 checks, k = 1, minimum logical weight d for both types, row/column logicals); equivalence of different rows modulo checks follows from k = 1 and was re-derived from the plaquette products between two rows. Attribution compared with Bombin and Martin-Delgado, arXiv:quant-ph/0703272 (optimal planar surface-code value n/d^2 = 1). 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 a69540045de57d24. Source file knowledge/records/theorem/rotated-surface-code-parameters.md in the content repository (readable there once it is public).