Notation is that of the toric code record: vertices
(i,j)∈ZL2, edges hi,j and vi,j, checks Ai,j and Bi,j.
Number of logical qubits. Let S be a set of vertices. The product
∏v∈SAv acts on an edge with X if exactly one endpoint of the edge is
in S and trivially otherwise. It is the identity exactly when every edge has both
endpoints in S or neither, that is, when S is a union of connected components of
the lattice. The lattice is connected, so S=∅ or S is all of the
vertices. Hence the L2 vertex operators satisfy the single relation
∏vAv=I and generate a group of rank L2−1. Every edge lies on exactly
two plaquettes, so the same argument on the dual lattice shows that the plaquette
operators have rank L2−1. A product of X-type operators equals a product of
Z-type operators only if both are the identity, so the stabilizer group has rank
2L2−2 and
k=n−(2L2−2)=2.
A symplectic basis of logical operators. For each i∈ZL and
j∈ZL define
Xˉ1(i)=j′∏Xhi,j′,Xˉ2(j)=i′∏Xvi′,j,Zˉ1=i′∏Zhi′,0,Zˉ2=j′∏Zv0,j′.
A plaquette Bi′,j′ contains the horizontal edges hi′,j′ and hi′,j′+1,
so it meets the support of Xˉ1(i) in two edges if i′=i and in none
otherwise; likewise for Xˉ2(j) and the vertical edges. So the Xˉ
operators commute with every check. A vertex meets the support of Zˉ1 (a row
of horizontal edges) in two edges or none, and likewise for Zˉ2, so the
Zˉ operators commute with every check. The supports of Zˉ1 and
Xˉ1(i) share exactly the edge hi,0, the supports of Zˉ2 and
Xˉ2(j) share exactly v0,j, and Zˉ1, Xˉ2(j) have
disjoint supports, as do Zˉ2, Xˉ1(i). Therefore
XˉaZˉb=(−1)δabZˉbXˉa,
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
42 cosets of logical Pauli operators of a code with k=2: every Pauli operator
commuting with all checks equals, up to a phase,
sXˉ1a1Xˉ2a2Zˉ1b1Zˉ2b2 with s a product
of checks.
Translated loops are equivalent. Multiply the vertex operators of column i+1:
j∏Ai+1,j=j∏Xhi+1,jXhi,j⋅j∏Xvi+1,jXvi+1,j−1=Xˉ1(i)Xˉ1(i+1),
because each vertical edge of that column appears twice. Hence all
Xˉ1(i), i∈ZL, differ by stabilizers, and their supports (the
horizontal edges with first coordinate i) are pairwise disjoint. The same holds
for the Xˉ2(j).
Distance. Let Q=Z(c) be a product of Z operators that commutes with all
checks and is not a product of checks. Write Q in the form above. Since Q
commutes with Zˉ1 and Zˉ2, a1=a2=0; then s is of Z type,
and since Q is not a product of checks, (b1,b2)=(0,0). If b1=1, Q
anticommutes with Xˉ1(0) and therefore with every Xˉ1(i), since
these differ from it by stabilizers, with which Q commutes. Anticommuting with
Xˉ1(i) requires c to contain an odd number, so at least one, of the
edges hi,j, j∈ZL. These L sets of edges are disjoint, so
∣c∣≥L. If b2=1 the same argument with Xˉ2(j) applies. By
the symmetry of the construction under exchanging the lattice with its dual, every
non-trivial X-type logical operator also has weight at least L.
A general Pauli operator is, up to a phase, X(a)Z(b). It commutes with the
Z-type checks exactly when X(a) does and with the X-type checks exactly when
Z(b) does. If it is not a product of checks, at least one of X(a), Z(b) is not
either, and that factor has weight at least L, so the whole operator does. The
operator Zˉ1 has weight exactly L. Hence d=L.
Homological reading. The first step computes
dimker∂1−rank∂2=dimH1(T2;F2)=2 for
the chain complex of the homological code. The
exponents (b1,b2) are the homology class of the cycle c, detected by its
intersection numbers with the two dual loops. This is the argument indicated by
Kitaev, written out with explicit coordinates.