- Error-model and post‐selection
– We have five CNOT gates in the preparation circuit (in execution order):
g₁≔CNOT₁₂ (ctrl 1→tgt 2)
g₂≔CNOT₁₀ (ctrl 1→tgt 0)
g₃≔CNOT₂₃ (ctrl 2→tgt 3)
g₄≔CNOT₃₄ (ctrl 3→tgt 4)
g₅≔CNOT₀₄ (ctrl 0→tgt 4)
– After each gᵢ we apply the two‐qubit depolarizing channel
\[
\mathcal{D}_p(\rho)= (1-p)\,\rho\;+\;\frac p{15}\sum_{P\in\{I,X,Y,Z\}^{\otimes2}\setminus I\otimes I}P\,\rho\,P\,.
\]
– We then measure the ancilla (qubit 4) in the Z-basis and post-select on “0,” and (separately) measure the two code stabilizers
\[
S_X=X_0X_1X_2X_3,\qquad S_Z=Z_0Z_1Z_2Z_3
\]
post-selecting on “+1” for each. Any error which anticommutes with any of \{Z₄ (ancilla), S_X, S_Z\} is discarded.
- Classification of single‐fault events
To leading order in p, the only way to get a logical error is for exactly one gate to suffer a Pauli fault which
a) goes undetected by ancilla (i.e. has no X or Y on any wire that reaches qubit 4),
b) commutes with both code stabilizers (so is undetected at the end), and
c) acts non-trivially within the code space (i.e. is in N(S) but ∉ S).
(i) g₁=CNOT₁₂ errors on (qubit 1,qubit 2). The only fault which (a) has no X/Y on 1 or 2 that can propagate to 4, (b) commutes with S_X,S_Z, and (c) is nontrivial, is
E₁=Z_1 Z_2 → final error = Z_1Z_2 ∈N(S)\setminus S.
(ii) g₂=CNOT₁₀ errors on (1,0). Again the only choice P₁⊗P₀ with P₀∈{I,Z} that survives ancilla and code checks is
E₂=Z_1 Z_0 → final error = Z_0Z_1.
(iii) g₃=CNOT₂₃ errors on (2,3). The only undetected logical fault is
E₃=Z_2 Z_3 → final error = Z_2Z_3.
No single fault on g₄ or g₅ can produce an undetected logical error on qubits 0–3.
- Probability of a single‐fault logical error
– Each two-qubit gate errors with any particular non-identity Pauli occurs with probability p/15.
– We have exactly three single‐fault events {E₁,E₂,E₃} that survive all post-selections and act logically.
⇒ to first order in p the logical‐error probability is
\[
P_L^{(1)} \;=\;\frac{3}{15}\,p \;=\;\frac15\,p\,.
\]
- Logical‐state fidelity
By definition the fidelity of the post-selected output w.r.t. the ideal |00⟩ₗ is
\[
F(p)\;=\;1 \;-\;P_L\;=\;1\;-\;\frac15\,p\;+\;O(p^2)\,.
\]
One can check that all two-fault combinations either (i) get detected by ancilla or by the stabilizers or (ii) multiply together to give a trivial stabilizer, so the next non-zero contribution is O(p²).
Final Answer:
\[
\boxed{F_{\rm logical}(p)=1-\frac15\,p+\mathcal O(p^2)\,.}
\]