Step-by-Step Derivation
(The numbering of the five physical qubits is
0,1,2,3 (data) and 4 (ancilla). A two–qubit depolarising channel of strength \(p\) hits immediately after every CNOT.)
- Gates, noise locations and notation
Executed (right-to-left) the circuit is
1. \(H_1\)
2. \(CNOT_{12}\) (control 1, target 2) ⟶ noise \(E_{12}\)
3. \(CNOT_{10}\) (control 1, target 0) ⟶ noise \(E_{10}\)
4. \(CNOT_{23}\) (control 2, target 3) ⟶ noise \(E_{23}\)
5. \(CNOT_{34}\) (control 3, target 4) ⟶ noise \(E_{34}\)
6. \(CNOT_{04}\) (control 0, target 4) ⟶ noise \(E_{04}\)
7. measure qubit 4 in the \(Z\) basis.
• Each \(E_{ij}\) is a Pauli picked from \(\{II\}\cup\mathcal P_{ij}\) with
\(\Pr(II)=1-p,\quad \Pr(P)=p/15\;(P\ne II)\).
• We keep the run iff
(a) the ancilla is read out in \(\ket{0}_4\) and
(b) the four data qubits are in the simultaneous \(+1\) eigenspace of the
stabilisers \(XXXX\) and \(ZZZZ\).
- Which single–gate Paulis can survive the post-selection?
• The last two CNOTs (acting on qubit 4) form a flag:
any Pauli on \(\{3,4\}\) or \(\{0,4\}\) that contains \(X_4\) or \(Y_4\)
flips the ancilla and is rejected.
Every Pauli on those pairs that does not contain \(X_4\) or \(Y_4\)
anticommutes with at least one stabiliser and is also rejected.
⇒ the only error–free choice on those two gates is the identity.
• For \(E_{23}\) the only undetected non-identity Pauli is \(ZZ_{23}\);
the others either propagate an \(X_4/Y_4\) onto the ancilla or trigger a
stabiliser. Thus
good set on $(2,3)$ : $\{II,\,ZZ\}$,
with probability $g_3 = 1-\dfrac{14}{15}p$.
• For the first two CNOTs (pairs \((1,2)\) and \((1,0)\)) the familiar set
$\{II,\,XX,\,YY,\,ZZ\}$
commutes with both stabilisers, so
good probability $g_1 = 1-\dfrac45p$,
bad probability $b_1 = \dfrac{4}{15}p$ (each of the three
syndrome-raising classes).
- Probability that the run is kept
Because the two last CNOTs must be error-free, their
joint survival probability contributes a factor \((1-p)^2\) that
cancels out later and will be dropped from now on.
On the first three noise locations we must have overall
syndrome \((a,b)=(0,0)\) (XOR of the three individual syndromes).
Up to second order in \(p\) the only ways this can happen are
a) no error at all on the three locations
probability \(g_1^2\,g_3\),
b) the same non-trivial syndrome on both of the first two
locations (and none on the third)
probability \(\,3\,b_1^2\,g_3\)
(there are three possible non-trivial syndromes).
Hence, to \(\mathcal O(p^2)\),
\[
g_1^2\,g_3 + 3\,b_1^2\,g_3
= (1-\tfrac45p)^{2}(1-\tfrac{14}{15}p)
+ 3\Bigl(\tfrac{4}{15}p\Bigr)^{\!2}
\]
- Probability that the logical state is correct and the run is kept
The only way to pass and still agree with the target
\(\ket{00}_{AB}\) is that all three early locations are of the
good, stabiliser-type \((0,0)\):
\[
=(1-\tfrac45p)^{2}(1-\tfrac{14}{15}p)
\]
- Logical fidelity conditioned on acceptance
\[
\frac{P_{\text{correct}\,\&\,\text{keep}}}{P_{\text{keep}}}
=\frac{(1-\tfrac45p)^{2}(1-\tfrac{14}{15}p)}
{(1-\tfrac45p)^{2}(1-\tfrac{14}{15}p)+3(\tfrac{4}{15}p)^{2}}
=\frac{(1-\frac45p)^{3}}
\]
Expanding,
\[
\]
i.e. all first-order contributions are eliminated by the fault-tolerant
preparation and the double post-selection.
Final Answer:
The logical two-qubit fidelity after post-selection on both
(i) the ancilla outcome \(\ket{0}_4\) and
(ii) the code stabilisers being \(+1\) is
\[
\boxed{\;
F_{\mathrm{logical}}(p)=
\frac{\bigl(1-\frac{4}{5}p\bigr)^{3}}
{\bigl(1-\frac{4}{5}p\bigr)^{3}+3\left(\frac{4}{15}p\right)^{2}}
=1-\frac{16}{75}\,p^{2}+O(p^{3})\; }.
\]
Thus the first non-vanishing term is quadratic in the physical gate
error rate, confirming that the circuit is first-order fault-tolerant for
preparing the logical state \(\ket{00}_{AB}\).