Step-by-Step Derivation
(Throughout we neglect global phases and write Paulis as strings in the order
qubits \(0,1,2,3\).)
- Error model and notation
• There are two CNOTs, hence two independent error channels
\({\cal E}_{21}\) (on the pair \(2,1\)) and \({\cal E}_{03}\) (on the pair \(0,3\)).
• After a CNOT the two–qubit depolarising channel acts
\[
{\cal E}(\rho)=(1-p)\rho+\frac{p}{15}\sum_{\sigma\neq II}\sigma\,\rho\,\sigma .
\]
We denote the Pauli drawn from channel \((2,1)\) by \(E_{21}\) and that from
\((0,3)\) by \(E_{03}\); the overall error is
\(E=E_{03}E_{21}\).
- Detectable vs. undetectable errors
The code stabilisers are
\[
g_{1}=XXXX,\qquad g_{2}=ZZZZ .
\]
An error is undetectable (passes syndrome \(+1,+1\)) iff it commutes with
both \(g_{1}\) and \(g_{2}\).
For the two–qubit Pauli set on either pair this happens only for
\[
\boxed{\;XX,\;YY,\;ZZ\;}
\]
(in addition to \(II\)). All other 12 Paulis on a pair are detected.
Hence for a single channel
prob.\,(undetectable \(\neq II\))\(=\frac{3}{15}=\frac15\).
- Probabilities for one or two faulty gates
Let
\[
q\equiv\frac15,\qquad\bar q\equiv1-q=\frac45 .
\]
(a) No error
\(\Pr(E_{21}=II)=\Pr(E_{03}=II)=1-p\)
\[
P_{0}=(1-p)^{2}.
\]
This is always correct and passes.
(b) Exactly one error
\(\Pr(\text{“one error”})=2p(1-p)\).
• detected (rejected): \(2p(1-p)\,\bar q\)
• undetectable (passes): \(2p(1-p)\,q\).
Since \(XX,YY,ZZ\) are logical operators (e.g. \(IXXI=X_{A}X_{B}\)) every
undetectable single error produces a wrong logical state.
Thus
\[
P_{\text{pass,\,1err}}=2p(1-p)q,\qquad
P_{\text{corr,\,1err}}=0.
\]
(c) Two errors
\(\Pr(\text{“two errors”})=p^{2}\).
Write \(E_{21}\), \(E_{03}\) as ordered pairs of single–qubit Paulis
\(P_{21}\equiv(P_{2},P_{1})\), \(P_{03}\equiv(P_{0},P_{3})\).
Define for any Pauli on one qubit
\[
s_Z(P)=
\begin{cases}
0,&P\in\{I,X\},\\[2pt]
1,&P\in\{Y,Z\},
\end{cases}\qquad
s_X(P)=
\begin{cases}
0,&P\in\{I,Z\},\\[2pt]
1,&P\in\{X,Y\}.
\end{cases}
\]
An overall error \(E\) commutes with \(g_1\) (\(g_2\)) iff
\(\bigoplus_{i=0}^{3}s_Z(P_i)=0\)
(\(\bigoplus_{i=0}^{3}s_X(P_i)=0\)).
Because the two pairs act on disjoint qubits
\[
E\;\text{passes}\;\Longleftrightarrow
\bigl(s_Z(E_{21}),s_X(E_{21})\bigr)=
\bigl(s_Z(E_{03}),s_X(E_{03})\bigr).
\]
Counting the 16 possibilities (\(II\) + 15 errors) on a pair gives
\[
\begin{aligned}
&(0,0):\;4\;\text{elements }(II,\;XX,\;YY,\;ZZ),\\
&(0,1):\;4,\qquad
(1,0):\;3,\qquad
(1,1):\;5,
\end{aligned}
\]
hence \(\bigl(4,4,3,5\bigr)\) possibilities respectively.
Therefore
\[
\begin{aligned}
P_{\text{pass,\,2err}}
&=p^{2}\!\left[\frac{4^{2}+4^{2}+3^{2}+5^{2}}{15^{2}}\right]
=p^{2}\frac{194}{225},\\[4pt]
P_{\text{corr,\,2err}}
&=p^{2}\!\left[\frac{1}{15^{2}}\;\times\;(\text{XX+YY+ZZ both pairs})\right]
=3\Bigl(\frac{p}{15}\Bigr)^{2}
=\frac{p^{2}}{75}.
\end{aligned}
\]
(The only two‐error patterns that leave the logical state intact are
\(II\,II,\;XX\,XX,\;YY\,YY,\;ZZ\,ZZ\) giving \(I,XXXX,YYYY,ZZZZ\).)
- Passing and correct probabilities
\[
\begin{aligned}
P_{\text{pass}}
&=P_{0}+P_{\text{pass,\,1err}}+P_{\text{pass,\,2err}}\\
&=(1-p)^{2}+2p(1-p)q+p^{2}\frac{194}{225}\\
&=1-\frac{8}{5}p+\frac{194}{225}p^{2},\\[6pt]
P_{\text{corr}}
&=P_{0}+P_{\text{corr,\,2err}}\\
&=(1-p)^{2}+\frac{p^{2}}{75}
=1-2p+\frac{76}{75}p^{2}.
\end{aligned}
\]
- Logical state fidelity conditioned on passing
All states that pass are orthogonal to each other (they are related by logical
Paulis), hence the conditional fidelity equals the probability that the state
is the intended one:
\[
\boxed{F_{\text{logical}}(p)=
\frac{P_{\text{corr}}}{P_{\text{pass}}}
=\frac{1-2p+\dfrac{76}{75}p^{2}}
{1-\dfrac{8}{5}p+\dfrac{194}{225}p^{2}} }.
\]
Expanding to second order in \(p\),
\[
F_{\text{logical}}(p)=
1-\frac{2}{5}p-\frac{22}{45}p^{2}+O(p^{3}),
\]
so post-selection suppresses the leading‐order infidelity from \(1.6\,p\)
(physical state) down to \(0.4\,p\) at the logical level.
Final Answer:
The post-selected two-qubit logical GHZ state has fidelity
\[
\boxed{\,F_{\mathrm{logical}}(p)=
\frac{1-2p+\dfrac{76}{75}\,p^{2}}
{1-\dfrac{8}{5}\,p+\dfrac{194}{225}\,p^{2}}
=1-\frac{2}{5}p-\frac{22}{45}p^{2}+O(p^{3})\,}.
\]