Notation as in 15-to-1 distillation: M
is the 4×15 matrix whose columns are the non-zero vectors of F24, and
H={e∈F215:Me=0} is the [15,11,3]
Hamming code.
Reduction to a classical question. After step 2 the block is in the state
Z(e)TL†∣+L⟩, where e∈F215 marks the inputs that carried a
Z error; Z errors commute with the injected T gates. The bits of e are
independent with Pr[ej=1]=p.
- Detection. Z(e) commutes with the stabilizer X(h) exactly when
h⋅e=0. All four checks are satisfied if and only if Me=0, that is
e∈H.
- Effect of an undetected pattern. The Z-type stabilizers are the Z(g) with
g∈H of even weight. If e∈H has even weight, Z(e)
is a stabilizer and the state is unchanged. If e∈H has odd weight,
then e+115 has even weight and lies in H, because the all-ones
vector 115 is in H (every row of M has weight 8); hence
Z(e)=Z⊗15Z(e+115) acts as the logical Zˉ.
Therefore, with Aw the number of codewords of weight w in H,
Pacc=w∑Awpw(1−p)15−w,pout=Pacc1w odd∑Awpw(1−p)15−w.
Leading order. H has distance 3, so A1=A2=0. A weight-3
codeword is a set of three distinct columns of M that sum to zero. Choosing two
distinct columns a,b determines the third, a+b, which is non-zero and differs
from both; each set is counted 3!=6 times among the 15⋅14 ordered pairs,
so A3=15⋅14/6=35. Since A0=1,
Pacc=(1−p)15+O(p3)=1−15p+O(p2),pout=35p3+O(p4).
Exact expression. The dual of H is the row space of M, the
[15,4,8] simplex code, with weight enumerator 1+15y8. The
MacWilliams identity gives
W(x)=w∑Awxw=161[(1+x)15+15(1+x)7(1−x)8].
Put x=p/(1−p), so that (1−p)(1+x)=1 and (1−p)(1−x)=1−2p. Then
Pacc=(1−p)15W(x)=161+15(1−2p)8,(1−p)15W(−x)=16(1−2p)15+15(1−2p)7.
The odd-weight part of the sum is (1−p)15[W(x)−W(−x)]/2, so
pout=2W(x)W(x)−W(−x)=2[1+15(1−2p)8]1+15(1−2p)8−15(1−2p)7−(1−2p)15.
As a check, expanding the numerator in u=1−2p about u=1: its value and its
first two derivatives vanish there and its third derivative is
5040−3150−2730=−840, so the numerator is
−140(u−1)3+⋯=1120p3+…, and dividing by the denominator
32+O(p) gives 35p3.