- Step-by-Step Derivation
a) Code, logicals, and acceptance criterion
- [[4,2,2]] code with stabilizers Sx = XXXX and Sz = ZZZZ.
- Logical Paulis (one choice, up to stabilizers): XA = X I X I, XB = X X I I, ZA = Z Z I I, ZB = Z I Z I.
- We prepare |00β©AB and post-select on:
- ancilla measurement outcome m4 = 0,
- passing the code checks (i.e., both stabilizers return +1). We will treat this as a final codespace check (detecting any error that anticommutes with Sx or Sz).
All gates are Clifford; Pauli errors propagate within the Pauli group. Thus, conditioned on post-selection, the output on the data qubits is a Pauli drawn from a subset of the normalizer N(S) of the stabilizer group. Those elements in S are harmless (act as the identity on the code space), while those in N(S)\S are logical errors, reducing the fidelity with |00β©AB.
b) Noise model
- After each of the 5 CNOTs in the circuit, an i.i.d. two-qubit depolarizing error occurs:
- with probability 1 β p: identity,
- with probability p: a uniformly random non-identity two-qubit Pauli on the two participating qubits (15 choices, each with probability p/15).
c) Circuit and ordering
The circuit (right-to-left execution):
1) H1,
2) CNOT12,
3) CNOT10,
4) CNOT23,
5) CNOT34,
6) CNOT04,
7) M4 (measurement of qubit 4).
Noiseless action on data (qubits 0β3): the three CNOTs plus H1 prepare the +1 common eigenstate of Sx and Sz; with the stated logical convention that state is |00β©AB. The flag (ancilla) sequence CNOT34 and CNOT04 is designed to detect certain single-fault βhookβ errors during state preparation; we post-select on m4 = 0.
d) Pauli propagation and acceptance
- Clifford propagation of Paulis through CNOT(cβt):
- Xc β Xc Xt, Zc β Zc,
-
Xt β Xt, Zt β Zc Zt.
-
Codespace acceptance (both stabilizers +1) is equivalent to requiring that the final data Pauli Edata commute with both Sx and Sz. Using the standard symplectic form,
- Edata commutes with Sx iff the total Z-weight (number of qubits with Z or Y on data) is even,
-
Edata commutes with Sz iff the total X-weight (number of qubits with X or Y on data) is even.
Therefore, accepted data errors must have even X-weight and even Z-weight on qubits 0β3.
-
Ancilla acceptance depends on the measurement basis. Writing the final ancilla Pauli as P4 β {I4, X4, Y4, Z4}:
- If M4 is in the Z basis (as is conventional unless stated otherwise), acceptance probability is:
- 1 if P4 β {I4, Z4},
- 1/2 if P4 β {X4, Y4}.
That is, X4 or Y4 randomizes the Z-basis outcome; we then post-select on the m4 = 0 branch, which keeps half of those cases.
(If M4 were in X basis, swap the roles of X and Z in the above sentence. The counting below is unchanged up to relabeling.)
e) Fault-tolerance and the scaling with p
- Single-fault analysis: Under the stated post-selection (m4 = 0 and both stabilizers +1), any single two-qubit Pauli fault introduced at any of the five CNOT locations either:
- anticommutes with Sx or Sz at the end (and is thus rejected by the codespace post-selection), or
-
flips/randomizes the ancilla readout (and is thus rejected when we post-select on m4 = 0).
Therefore, after the post-selection, there are no O(p) contributions to logical error. The first nonzero contribution to logical error among accepted runs is O(p^2).
-
Two-fault analysis (leading term): Let k < β index two distinct CNOT locations and let Pk, Pβ be non-identity two-qubit Paulis injected after those gates. Propagate both to the end, multiply to get the total final Pauli Efinal on 5 qubits. This Efinal factorizes as Edata β P4, with Edata acting on qubits 0β3 and P4 on qubit 4.
We keep the run iff:
- Edata has even X-weight and even Z-weight (commutes with Sx and Sz),
- the ancilla measurement yields m4 = 0; i.e.,
- always, if P4 β {I4, Z4};
- with probability 1/2, if P4 β {X4, Y4}.
Among the accepted runs, the fidelity with |00β©AB is 1 minus the probability (conditioned on acceptance) that Edata β N(S)\S, i.e., that Edata is a nontrivial logical Pauli. In other words,
- good accepted events: Edata β S,
- bad accepted events: Edata β N(S)\S.
f) Closed-form at second order
Let π be the set of 5 CNOT locations. For each unordered pair {k,β} β π, define:
- N(k,β; I/Z) = number of ordered pairs (Pk, Pβ) β (P2{II}) Γ (P2{II}), where P2 is the 16 two-qubit Paulis on the two qubits of the gate, such that after propagation to the end:
- Edata β N(S)\S (a nontrivial logical on the code),
- ancilla factor P4 β {I4, Z4} (so acceptance weight 1).
- N(k,β; X/Y) defined the same way but with P4 β {X4, Y4} (so acceptance weight 1/2).
Because each two-qubit error is drawn uniformly from 15 possibilities and the two faults are independent, the total (unconditional) probability for any fixed ordered pair (Pk, Pβ) is (p/15)^2. Summing and normalizing by the acceptance probability (which equals 1 + O(p) and so contributes only at O(p^3) to the conditional error rate), we obtain the leading-order logical error probability among accepted runs:
pL(p) = 1 β Flogical(p) = (p^2 / 15^2) Γ β_{k<β} [N(k,β; I/Z) + (1/2) N(k,β; X/Y)] + O(p^3).
Therefore, the logical-state fidelity conditioned on post-selection is:
Flogical(p) = 1 β C p^2 + O(p^3),
with
C = (1 / 225) β_{k<β} [N(k,β; I/Z) + (1/2) N(k,β; X/Y)].
This C is fully determined by the given circuit (its five CNOT locations) and the [[4,2,2]] code, and can be obtained by an explicit (but routine) enumeration using the binary symplectic (GF(2)) propagation rules above.
g) Remarks
- The key structural result is that, under the stated post-selection, all O(p) fault paths are removed, so the leading infidelity is quadratic in p.
- The exact numerical value of C is a circuit-dependent combinatorial count of βmalignantβ two-fault pairs (those that pass the post-selection yet implement a nontrivial logical). It can be computed efficiently by code; the analytic form above gives the precise counting prescription.
- Because this is a distance-2 code, all accepted Edata necessarily have even X- and Z-weight. Among those, precisely the elements in N(S)\S are the 15 nontrivial logical Paulis on the two logical qubits (up to stabilizers). Those are exactly what reduce the logical-state fidelity.
- Mathematical Typesetting
- All equations are included inline or displayed above.
- Conventions and Units
- Standard qubit Pauli/stabilizer conventions as per problem statement.
- Final Answer:
Flogical(p) = 1 β C p^2 + O(p^3),
with
C = (1 / 225) β_{k<β} [N(k,β; I/Z) + (1/2) N(k,β; X/Y)],
where the sum runs over the 10 unordered pairs {k,β} of the five CNOT locations in the circuit, and N(k,β; I/Z) (respectively N(k,β; X/Y)) is the number of ordered two-fault Pauli pairs at those locations which, after Clifford propagation to the end of the circuit, yield a nontrivial logical Pauli on the data while the ancilla factor is in {I,Z} (respectively {X,Y}).