Lattice. Fix . Take a square lattice with vertices for and . Each row carries horizontal edges, joining horizontal positions and for ; the leftmost and rightmost edges of a row have a vertex at one end only. Vertical edges join to for . One qubit sits on each edge:
The left and right sides, where edges stick out, are rough boundaries; the top and bottom rows are smooth boundaries.
Checks. Each of the vertices carries , of weight 4, or weight 3 in the top and bottom rows. Each of the square or open-sided faces carries , of weight 4, or weight 3 for the faces at the left and right ends, which lack one vertical side. The checks are independent.
Parameters. .
Logical operators. is the product of on the horizontal edges of any one row: a string joining the two rough boundaries. is the product of on the 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 string may end on a rough boundary and an 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 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.