Use the matrix description of the
hypergraph product: Z-type operators
Z(A,B) have X-syndrome σX(A,B)=H1A+BH2, Z stabilizers are
Z(EH2,H1E), X-type operators X(A,B) have Z-syndrome
σZ(A,B)=AH2T+H1TB, and X stabilizers are X(H1TD,DH2T). We
use one linear-algebra fact: for subspaces U⊆F2p and
W⊆F2q, the matrices M∈F2p×q whose columns lie in U and
whose rows lie in W form a space of dimension dimU⋅dimW (choose bases and
write M in them).
Length. The qubits are [n1]×[n2] and [m1]×[m2].
Dimension. By the CSS dimension formula,
k=n−rankHX−rankHZ. The map
D↦(H1TD,DH2T), defined on F2m1×n2, has rank
rankHX; its kernel consists of the D with H1TD=0 and
DH2T=0, that is, columns in kerH1T and rows in kerH2, of dimension
k1Tk2. So rankHX=m1n2−k1Tk2. In the same way the map
E↦(EH2,H1E) on F2n1×m2 has kernel of dimension k1k2T,
so rankHZ=n1m2−k1k2T. Hence
k=n1n2+m1m2−m1n2−n1m2+k1Tk2+k1k2T=(n1−m1)(n2−m2)+k1Tk2+k1k2T.
Rank–nullity for Hi and HiT gives ni−rankHi=ki and
mi−rankHi=kiT, so ni−mi=ki−kiT, and expanding
(k1−k1T)(k2−k2T)+k1Tk2+k1k2T=k1k2+k1Tk2T.
Lower bound on dZ. Let Z(A,B) have zero X-syndrome, H1A=BH2 (signs are
irrelevant over F2), and suppose ∣A∣+∣B∣<min(d1,d2T). We show it is a
stabilizer. Let R⊆[n1] be the set of rows of A that contain a 1, and
T⊆[m2] the set of columns of B that contain a 1; then ∣R∣≤∣A∣<d1
and ∣T∣≤∣B∣<d2T. Let H1′ be H1 restricted to the columns in R and
H2′ be H2 restricted to the rows in T. A nonzero x∈kerH1′, padded with
zeros, would be a nonzero vector of kerH1 of weight at most ∣R∣<d1; so
kerH1′=0. Likewise kerH2′T=0. By the dimension formula just proved, the
hypergraph product of H1′ and H2′ encodes k1′k2′+k1′Tk2′T=0⋅k2′+k1′T⋅0=0
qubits, so in that smaller code every Z-type operator with zero X-syndrome is a
stabilizer. Let A′ be the rows of A indexed by R and B′ the columns of B indexed
by T. Because A vanishes outside the rows R and B outside the columns T,
H1′A′=H1A and B′H2′=BH2, so Z(A′,B′) has zero X-syndrome in the smaller
code. Hence A′=E′H2′ and B′=H1′E′ for some E′∈F2R×T. Extending
E′ by zeros to E∈F2n1×m2 gives EH2=A and H1E=B, so
Z(A,B) is a stabilizer of Q. Therefore every nontrivial Z-type logical operator has
weight at least min(d1,d2T).
Lower bound on dX. Transposing everything, X(A,B) has Z-syndrome
AH2T+H1TB, whose transpose is H2AT+BTH1, the X-syndrome of
Z(AT,BT) in HGP(H2,H1); the X stabilizers of Q transpose to the Z
stabilizers of HGP(H2,H1). The previous paragraph applied to
HGP(H2,H1) gives dX≥min(d2,d1T). Since the distance of a CSS code is
min(dX,dZ), d≥min(d1,d2,d1T,d2T).
Upper bounds. Suppose k2>0 and let x∈kerH1 have weight d1. Since
kerH2=0, the row space of H2 is a proper subspace of F2n2, so some unit
vector ey is not in it. Put A=xeyT (weight d1) and B=0. Then
H1A=0, so Z(A,0) commutes with all X checks. If it were a stabilizer, A=EH2
and 0=H1E for some E; for any row i with xi=1, row i of A is eyT and
equals (row i of E)H2, which would put ey in the row space of H2. So
dZ≤d1. The bound dZ≤d2T when k1T>0 uses A=0 and B=eazT
with z∈kerH2T of weight d2T and ea a unit vector outside the column space
of H1; the bounds on dX follow by transposition as above.
The case H1=H2=H of full row rank. Then kT=0, so k=k02; the upper
bound dZ≤d0 applies since k0>0, and the lower bound with dT=∞ gives
d=d0.
The restriction argument for the lower bound is that of Lemma 16 of
Tillich and Zémor, recast in matrix notation; the dimension count
follows their Proposition 14 and the upper bound their Lemma 17.