The problem asks for the physical state fidelity of the final 4-qubit state, which is a logical GHZ state, as a function of the two-qubit gate error rate \(p\). Errors occur after each CNOT gate, modeled by a two-qubit depolarizing channel.
First, let’s identify the target logical GHZ state in the physical qubit basis. The logical GHZ state is \((|00\rangle_{AB}+|11\rangle_{AB})/\sqrt{2}\). For the [[4,2,2]] code, the logical basis states in the physical qubit basis are:
\(|00\rangle_L = \frac{1}{\sqrt{2}}(|0000\rangle + |1111\rangle)\)
\(|01\rangle_L = \frac{1}{\sqrt{2}}(|0011\rangle + |1100\rangle)\)
\(|10\rangle_L = \frac{1}{\sqrt{2}}(|0101\rangle + |1010\rangle)\)
\(|11\rangle_L = \frac{1}{\sqrt{2}}(|0110\rangle + |1001\rangle)\)
Thus, the target physical state \(|\psi_{target}\rangle\) is:
\[
|\psi_{target}\rangle = \frac{1}{\sqrt{2}} (|00\rangle_L + |11\rangle_L) = \frac{1}{2} (|0000\rangle + |1111\rangle + |0110\rangle + |1001\rangle)
\]
Next, let’s verify that the given circuit produces this state in the absence of errors. We start from the initial state \(|\psi_{init}\rangle = |0000\rangle\). The circuit is \((CNOT_{03}) (H_0) (CNOT_{21}) (H_2)\). Operations are applied right-to-left.
-
Apply \(H_2\):
\(|\psi_1\rangle = H_2 |0000\rangle = \frac{1}{\sqrt{2}}(|0000\rangle + |0010\rangle)\).
-
Apply \(CNOT_{21}\) (control 2, target 1):
\(|\psi_2\rangle = CNOT_{21} |\psi_1\rangle = \frac{1}{\sqrt{2}}(CNOT_{21}|0000\rangle + CNOT_{21}|0010\rangle) = \frac{1}{\sqrt{2}}(|0000\rangle + |0110\rangle)\).
-
Apply \(H_0\):
\(|\psi_3\rangle = H_0 |\psi_2\rangle = \frac{1}{2}(H_0|0000\rangle + H_0|0110\rangle) = \frac{1}{2}((|0000\rangle + |1000\rangle) + (|0110\rangle + |1110\rangle))\).
\(|\psi_3\rangle = \frac{1}{2}(|0000\rangle + |1000\rangle + |0110\rangle + |1110\rangle)\).
-
Apply \(CNOT_{03}\) (control 0, target 3):
\(|\psi_{final}\rangle = CNOT_{03} |\psi_3\rangle = \frac{1}{2}(CNOT_{03}|0000\rangle + CNOT_{03}|1000\rangle + CNOT_{03}|0110\rangle + CNOT_{03}|1110\rangle)\).
\(|\psi_{final}\rangle = \frac{1}{2}(|0000\rangle + |1001\rangle + |0110\rangle + |1111\rangle)\).
This matches the target state \(|\psi_{target}\rangle\).
Now, we incorporate errors. A two-qubit depolarizing error channel \(\mathcal{D}_{ij}(\rho)\) follows each \(CNOT_{ij}\) gate. The channel is defined as:
\[
\mathcal{D}_{ij}(\rho) = (1-p)\rho + \sum_{k=1}^{15} \frac{p}{15} P_k \rho P_k^\dagger
\]
where \(P_k\) are the 15 non-identity two-qubit Pauli operators acting on qubits \(i\) and \(j\).
Let \(U_A = H_2\), \(U_B = CNOT_{21}\), \(U_C = H_0\), \(U_D = CNOT_{03}\).
The state evolution is:
\(\rho_0 = |0000\rangle\langle0000|\)
\(\rho_1 = U_A \rho_0 U_A^\dagger\)
\(\rho_2 = U_B \rho_1 U_B^\dagger\)
\(\rho_3 = \mathcal{D}_{21}(\rho_2)\) (error after \(CNOT_{21}\) on qubits 2,1)
\(\rho_4 = U_C \rho_3 U_C^\dagger\)
\(\rho_5 = U_D \rho_4 U_D^\dagger\)
\(\rho_{final} = \mathcal{D}_{03}(\rho_5)\) (error after \(CNOT_{03}\) on qubits 0,3)
We want to compute the fidelity \(F = \langle \psi_{target} | \rho_{final} | \psi_{target} \rangle\). Let \(|\psi\rangle = |\psi_{target}\rangle\).
Let \(\rho_{ideal}\) be the state if no errors occur, so \(\rho_{ideal} = |\psi\rangle\langle\psi|\).
The key observation for this problem is how the error operators propagate through the ideal gates.
Let’s look at the first error channel \(\mathcal{D}_{21}\). It acts on qubits 1 and 2.
The subsequent operations are \(H_0\) (on qubit 0) and \(CNOT_{03}\) (on qubits 0 and 3). These operations act on qubits disjoint from qubits 1 and 2.
Therefore, \(H_0\) commutes with any \(P_{21}\) (Pauli on qubits 1,2): \(H_0 P_{21} H_0^\dagger = P_{21}\).
Similarly, \(CNOT_{03}\) commutes with any \(P_{21}\): \(CNOT_{03} P_{21} CNOT_{03}^\dagger = P_{21}\).
So, the density matrix \(\rho_5\) becomes:
\[
\rho_5 = U_D U_C \mathcal{D}_{21}(\rho_2) U_C^\dagger U_D^\dagger = (1-p) U_D U_C \rho_2 U_C^\dagger U_D^\dagger + \frac{p}{15} \sum_{P_{21}} U_D U_C P_{21} \rho_2 P_{21}^\dagger U_C^\dagger U_D^\dagger
\]
Since \(U_D U_C P_{21} U_C^\dagger U_D^\dagger = P_{21}\):
\[
\rho_5 = (1-p) |\psi\rangle\langle\psi| + \frac{p}{15} \sum_{P_{21}} P_{21} |\psi\rangle\langle\psi| P_{21}^\dagger
\]
Now apply the second error channel \(\mathcal{D}_{03}\) (on qubits 0,3):
\[
\rho_{final} = \mathcal{D}_{03}(\rho_5) = (1-p)\rho_5 + \frac{p}{15} \sum_{P_{03}} P_{03} \rho_5 P_{03}^\dagger
\]
Substituting \(\rho_5\):
\[
\rho_{final} = (1-p) \left[ (1-p) |\psi\rangle\langle\psi| + \frac{p}{15} \sum_{P_{21}} P_{21} |\psi\rangle\langle\psi| P_{21}^\dagger \right] + \frac{p}{15} \sum_{P_{03}} P_{03} \left[ (1-p) |\psi\rangle\langle\psi| + \frac{p}{15} \sum_{P_{21}} P_{21} |\psi\rangle\langle\psi| P_{21}^\dagger \right] P_{03}^\dagger
\]
The fidelity \(F = \langle \psi | \rho_{final} | \psi \rangle\) is:
\[
F = (1-p)^2 \langle \psi | \psi\rangle\langle\psi| | \psi \rangle + (1-p)\frac{p}{15} \sum_{P_{21}} \langle \psi | P_{21} |\psi\rangle\langle\psi| P_{21}^\dagger | \psi \rangle + \frac{p}{15}(1-p) \sum_{P_{03}} \langle \psi | P_{03} |\psi\rangle\langle\psi| P_{03}^\dagger | \psi \rangle + \frac{p^2}{15^2} \sum_{P_{03}, P_{21}} \langle \psi | P_{03} P_{21} |\psi\rangle\langle\psi| P_{21}^\dagger P_{03}^\dagger | \psi \rangle
\]
This simplifies to:
\[
F = (1-p)^2 + (1-p)\frac{p}{15} \sum_{P_{21}} |\langle \psi | P_{21} |\psi\rangle|^2 + \frac{p}{15}(1-p) \sum_{P_{03}} |\langle \psi | P_{03} |\psi\rangle|^2 + \frac{p^2}{15^2} \sum_{P_{03}, P_{21}} |\langle \psi | P_{03} P_{21} |\psi\rangle|^2
\]
The target state \(|\psi\rangle\) is a stabilizer state. For a stabilizer state, \(\langle\psi|P|\psi\rangle = \pm 1\) if \(P\) is in the stabilizer group of \(|\psi\rangle\), and \(0\) otherwise. Thus, \(|\langle\psi|P|\psi\rangle|^2 = 1\) if \(P \in \mathrm{Stab}(|\psi\rangle)\), and \(0\) if \(P \notin \mathrm{Stab}(|\psi\rangle)\).
The generators of the stabilizer group for \(|\psi\rangle = \frac{1}{2} (|0000\rangle + |1111\rangle + |0110\rangle + |1001\rangle)\) are:
\(g_1 = X_0X_1X_2X_3\) (code stabilizer \(S_1\))
\(g_2 = Z_0Z_1Z_2Z_3\) (code stabilizer \(S_2\))
\(g_3 = X_A X_B = (X_0I_1X_2I_3)(X_0X_1I_2I_3) = I_0X_1X_2I_3\) (logical operator for GHZ state)
\(g_4 = Z_A Z_B = (Z_0Z_1I_2I_3)(Z_0I_1Z_2I_3) = I_0Z_1Z_2I_3\) (logical operator for GHZ state)
These 4 generators are mutually commuting and independent, generating a stabilizer group \(\mathcal{S}_\psi\) of \(2^4=16\) elements.
Let’s evaluate the sums:
-
\(\sum_{P_{21}} |\langle \psi | P_{21} |\psi\rangle|^2\): \(P_{21}\) are the 15 non-identity Pauli operators of the form \(I_0 P_1 P_2 I_3\). We need to count how many of these are in \(\mathcal{S}_\psi\).
- \(g_3 = I_0X_1X_2I_3\). This is a \(P_{21}\) type operator.
- \(g_4 = I_0Z_1Z_2I_3\). This is a \(P_{21}\) type operator.
- \(g_3g_4 = (I_0X_1X_2I_3)(I_0Z_1Z_2I_3) = I_0Y_1Y_2I_3\). This is a \(P_{21}\) type operator.
There are no other elements in \(\mathcal{S}_\psi\) that are of the form \(I_0P_1P_2I_3\). So, the sum is \(3\).
-
\(\sum_{P_{03}} |\langle \psi | P_{03} |\psi\rangle|^2\): \(P_{03}\) are the 15 non-identity Pauli operators of the form \(P_0 I_1 I_2 P_3\). We need to count how many of these are in \(\mathcal{S}_\psi\).
- \(g_1g_3 = (X_0X_1X_2X_3)(I_0X_1X_2I_3) = X_0I_1I_2X_3\). This is a \(P_{03}\) type operator.
- \(g_2g_4 = (Z_0Z_1Z_2Z_3)(I_0Z_1Z_2I_3) = Z_0I_1I_2Z_3\). This is a \(P_{03}\) type operator.
- \((g_1g_3)(g_2g_4) = (X_0I_1I_2X_3)(Z_0I_1I_2Z_3) = Y_0I_1I_2Y_3\). This is a \(P_{03}\) type operator.
There are no other elements in \(\mathcal{S}_\psi\) that are of the form \(P_0I_1I_2P_3\). So, the sum is \(3\).
-
\(\sum_{P_{03}, P_{21}} |\langle \psi | P_{03} P_{21} |\psi\rangle|^2\): This sum is over \(15 \times 15 = 225\) terms. A term \(P_{03}P_{21}\) is of the form \(P_0P_1P_2P_3\). We need to count how many of these products are in \(\mathcal{S}_\psi\), subject to the conditions that \(P_{03} \ne I_4\) and \(P_{21} \ne I_4\). This means \(P\) cannot be \(I_4\), and \(P\) cannot be an element of \(\mathcal{S}_\psi\) that acts only on qubits 0,3 (like \(X_0I_1I_2X_3\)) or only on qubits 1,2 (like \(I_0X_1X_2I_3\)).
Let’s list the 16 elements of \(\mathcal{S}_\psi\):
- \(I_4\): Excluded because \(P_{03} \ne I_4\) and \(P_{21} \ne I_4\).
- \(g_1 = X_0X_1X_2X_3\): \((X_0X_3)(X_1X_2)\). Both parts are non-identity. Count = 1.
- \(g_2 = Z_0Z_1Z_2Z_3\): \((Z_0Z_3)(Z_1Z_2)\). Both parts are non-identity. Count = 1.
- \(g_3 = I_0X_1X_2I_3\): \(P_{03}=I_4\). Excluded.
- \(g_4 = I_0Z_1Z_2I_3\): \(P_{03}=I_4\). Excluded.
- \(g_1g_2 = Y_0Y_1Y_2Y_3\): \((Y_0Y_3)(Y_1Y_2)\). Both parts are non-identity. Count = 1.
- \(g_1g_3 = X_0I_1I_2X_3\): \(P_{21}=I_4\). Excluded.
- \(g_1g_4 = X_0Y_1Y_2X_3\): \((X_0X_3)(Y_1Y_2)\). Both parts are non-identity. Count = 1.
- \(g_2g_3 = Z_0X_1X_2Z_3\): \((Z_0Z_3)(X_1X_2)\). Both parts are non-identity. Count = 1.
- \(g_2g_4 = Z_0I_1I_2Z_3\): \(P_{21}=I_4\). Excluded.
- \(g_3g_4 = I_0Y_1Y_2I_3\): \(P_{03}=I_4\). Excluded.
- \(g_1g_2g_3 = Y_0I_1I_2Y_3\): \(P_{21}=I_4\). Excluded.
- \(g_1g_2g_4 = Y_0X_1X_2Y_3\): \((Y_0Y_3)(X_1X_2)\). Both parts are non-identity. Count = 1.
- \(g_1g_3g_4 = X_0Z_1Z_2X_3\): \((X_0X_3)(Z_1Z_2)\). Both parts are non-identity. Count = 1.
- \(g_2g_3g_4 = Z_0Y_1Y_2Z_3\): \((Z_0Z_3)(Y_1Y_2)\). Both parts are non-identity. Count = 1.
There are 8 such operators. So, the sum is \(8\).
Substitute these values back into the fidelity expression:
\[
F = (1-p)^2 + (1-p)\frac{p}{15}(3) + \frac{p}{15}(1-p)(3) + \frac{p^2}{15^2}(8)
\]
\[
F = (1-2p+p^2) + \frac{3p(1-p)}{15} + \frac{3p(1-p)}{15} + \frac{8p^2}{225}
\]
\[
F = (1-2p+p^2) + \frac{2p(1-p)}{5} + \frac{8p^2}{225}
\]
\[
F = 1-2p+p^2 + \frac{2p}{5} - \frac{2p^2}{5} + \frac{8p^2}{225}
\]
Combine terms:
\[
F = 1 + \left(-2 + \frac{2}{5}\right)p + \left(1 - \frac{2}{5} + \frac{8}{225}\right)p^2
\]
\[
F = 1 + \left(-\frac{10}{5} + \frac{2}{5}\right)p + \left(\frac{225}{225} - \frac{90}{225} + \frac{8}{225}\right)p^2
\]
\[
F = 1 - \frac{8}{5}p + \frac{143}{225}p^2
\]
The final answer is \(\boxed{1 - \frac{8}{5}p + \frac{143}{225}p^2}\).