Step-by-Step Derivation
- Ideal logical target
After the (perfect) circuit
\[
\left(CNOT_{03}\right)\!\left(H_{0}\right)\!\left(CNOT_{21}\right)\!\left(H_{2}\right)
\]
is executed on the computational vacuum \(|0000\rangle_{0123}\) the code
qubits are in the physical state
\[
\]
which is the encoded Bell state
\(\bigl(|00\rangle_{AB}+|11\rangle_{AB}\bigr)/\sqrt2\).
- Error model (per two–qubit gate)
A two–qubit depolarising channel acts after each CNOT:
\[
(1-p)\rho+\frac{p}{15}\!
\]
where \(\mathcal P_{ij}\) is the 16-element Pauli set on qubits
\(\{i,j\}\). The two error operators are independent:
• \(P_{21}\) acts on qubits \((2,1)\) (after \(CNOT_{21}\))
• \(P_{03}\) acts on qubits \((0,3)\) (after \(CNOT_{03}\))
The net physical error is the four–qubit Pauli
\(P=P_{21}P_{03}\).
- Detectable versus undetectable errors
The code stabilisers are
\[
S_X=XXXX,\qquad S_Z=ZZZZ.
\]
A Pauli commutes with both \(S_X\) and \(S_Z\) (i.e. produces the
all-zero syndrome) iff on every qubit pair its two letters are
identical:
\[
\quad\Longrightarrow\quad
\]
Proof: write a Pauli letter as the binary vector
\((f_1,f_2)\) with
\(f_1(l)=1\) for \(l\in\{Y,Z\}\), \(f_2(l)=1\) for \(l\in\{X,Y\}\).
A two-qubit Pauli commutes with \(S_X\) (\(S_Z\)) when the
parity of \(f_1\) (\(f_2\)) across the pair is even. Only the four
elements of \(\mathcal C\) satisfy both parity constraints.
Hence
• “accept” (no detected error) ⇔ \(P_{21},P_{03}\in\mathcal C\)
or they lie in the same other parity class;
• “good” (no logical damage) ⇔ \(P_{21},P_{03}\in\mathcal C\).
- Probabilities for one noisy gate
\[
\]
Therefore
\[
\]
\[
{\textstyle\hbox{same parity class}}\bigr)
\]
Define
\[
\]
- Acceptance probability
The syndrome is trivial when the two parity‐class
vectors add to zero. Because the four classes are equally likely
apart from the weight \(\alpha\) of \(\mathcal C\) we get
\[
=\alpha^{2}+3\beta^{2}
\]
- Logical–error-free (“good”) probability
The logical Bell state is stabilised by
\(X_{A}X_{B}=IXXI\) and \(Z_{A}Z_{B}=IZZI\).
Multiplying these with the code stabilisers produces the
16-element set
\[
\mathcal G=\langle XXXX,\,ZZZZ,\,IXXI,\,IZZI\rangle.
\]
Any \(P\in\mathcal G\) leaves \(|\psi_{\mathrm{ideal}}\rangle\)
(and therefore the logical state) unchanged.
All such \(P\) arise exactly when both two-qubit errors lie in
\(\mathcal C\). Hence
\[
\]
- Logical fidelity after post-selection
By definition
\[
=\frac{P_{\mathrm{good}}}{P_{\mathrm{acc}}}
=\frac{\alpha^{2}}
{\alpha^{2}+3\beta^{2}}
=\frac{1-\dfrac{8p}{5}+\dfrac{16}{25}p^{2}}
\]
Multiplying numerator and denominator by 75 gives a compact
polynomial ratio,
\[
=\frac{75-120p+48p^{2}}
\]
Series expansion for small \(p\):
\[
F_{\mathrm{logical}}(p)=1-\frac{16}{75}p^{2}+O(p^{3}),
\]
i.e. the leading logical infidelity is second order in the physical
gate error, as expected for a distance-2 error-detection code with
post-selection.
Final Answer:
The logical two-qubit state fidelity after post-selecting on a trivial
syndrome is
\[
F_{\mathrm{logical}}(p)=
\frac{75-120\,p+48\,p^{2}}{75-120\,p+64\,p^{2}}
\;=\;
1-\frac{16}{75}p^{2}+O(p^{3}).
\]