Notation is that of the toric code record: vertices , edges and , checks and .
Number of logical qubits. Let be a set of vertices. The product acts on an edge with if exactly one endpoint of the edge is in and trivially otherwise. It is the identity exactly when every edge has both endpoints in or neither, that is, when is a union of connected components of the lattice. The lattice is connected, so or is all of the vertices. Hence the vertex operators satisfy the single relation and generate a group of rank . Every edge lies on exactly two plaquettes, so the same argument on the dual lattice shows that the plaquette operators have rank . A product of -type operators equals a product of -type operators only if both are the identity, so the stabilizer group has rank and
A symplectic basis of logical operators. For each and define
A plaquette contains the horizontal edges and , so it meets the support of in two edges if and in none otherwise; likewise for and the vertical edges. So the operators commute with every check. A vertex meets the support of (a row of horizontal edges) in two edges or none, and likewise for , so the operators commute with every check. The supports of and share exactly the edge , the supports of and share exactly , and , have disjoint supports, as do , . Therefore
for any choice of the superscripts. No non-trivial product of these four operators commutes with all four, so none is in the stabilizer group, and they represent the cosets of logical Pauli operators of a code with : every Pauli operator commuting with all checks equals, up to a phase, with a product of checks.
Translated loops are equivalent. Multiply the vertex operators of column :
because each vertical edge of that column appears twice. Hence all , , differ by stabilizers, and their supports (the horizontal edges with first coordinate ) are pairwise disjoint. The same holds for the .
Distance. Let be a product of operators that commutes with all checks and is not a product of checks. Write in the form above. Since commutes with and , ; then is of type, and since is not a product of checks, . If , anticommutes with and therefore with every , since these differ from it by stabilizers, with which commutes. Anticommuting with requires to contain an odd number, so at least one, of the edges , . These sets of edges are disjoint, so . If the same argument with applies. By the symmetry of the construction under exchanging the lattice with its dual, every non-trivial -type logical operator also has weight at least .
A general Pauli operator is, up to a phase, . It commutes with the -type checks exactly when does and with the -type checks exactly when does. If it is not a product of checks, at least one of , is not either, and that factor has weight at least , so the whole operator does. The operator has weight exactly . Hence .
Homological reading. The first step computes for the chain complex of the homological code. The exponents are the homology class of the cycle , detected by its intersection numbers with the two dual loops. This is the argument indicated by Kitaev, written out with explicit coordinates.