Step-by-Step Derivation
1. Determine the ideal final state
The initial state is \(|\psi_{in}\rangle = |0000\rangle\). The circuit consists of a sequence of gates applied from right to left: \(U = (CNOT_{03}) (H_0) (CNOT_{21}) (H_2)\). We will trace the state vector through the circuit.
- Initial state:
\[
|\psi_0\rangle = |0000\rangle
\]
- Apply \(H_2\) (Hadamard on qubit 2):
\[
|\psi_1\rangle = H_2 |\psi_0\rangle = |00\rangle \otimes \frac{1}{\sqrt{2}}(|0\rangle+|1\rangle) \otimes |0\rangle = \frac{1}{\sqrt{2}}(|0000\rangle + |0010\rangle)
\]
- Apply \(CNOT_{21}\) (Control on qubit 2, Target on qubit 1):
\[
|\psi_2\rangle = CNOT_{21} |\psi_1\rangle = \frac{1}{\sqrt{2}} \left( CNOT_{21}|0000\rangle + CNOT_{21}|0010\rangle \right)
\]
The control qubit (2) is $|0\rangle$ for the first term and $|1\rangle$ for the second.
\[
|\psi_2\rangle = \frac{1}{\sqrt{2}} \left( |0000\rangle + |0110\rangle \right)
\]
- Apply \(H_0\) (Hadamard on qubit 0):
\[
|\psi_3\rangle = H_0 |\psi_2\rangle = \frac{1}{\sqrt{2}} \left( H_0|0000\rangle + H_0|0110\rangle \right)
\]
\[
|\psi_3\rangle = \frac{1}{\sqrt{2}} \left( \frac{1}{\sqrt{2}}(|0\rangle+|1\rangle)|000\rangle + \frac{1}{\sqrt{2}}(|0\rangle+|1\rangle)|110\rangle \right)
\]
\[
|\psi_3\rangle = \frac{1}{2} \left( |0000\rangle + |1000\rangle + |0110\rangle + |1110\rangle \right)
\]
- Apply \(CNOT_{03}\) (Control on qubit 0, Target on qubit 3):
\[
|\psi_f\rangle = CNOT_{03} |\psi_3\rangle = \frac{1}{2} \left( CNOT_{03}|0000\rangle + CNOT_{03}|1000\rangle + CNOT_{03}|0110\rangle + CNOT_{03}|1110\rangle \right)
\]
The control qubit (0) is $|0\rangle$ for the first and third terms, and $|1\rangle$ for the second and fourth terms.
\[
|\psi_f\rangle = \frac{1}{2} \left( |0000\rangle + |1001\rangle + |0110\rangle + |1111\rangle \right)
\]
This is the ideal final state of the physical qubits. The ideal final density matrix is $\rho_f = |\psi_f\rangle\langle\psi_f|$.
2. Model the effect of errors
The circuit contains two CNOT gates, \(U_1 = CNOT_{21}\) and \(U_2 = CNOT_{03}\). After each, a two-qubit depolarizing channel acts. The channel for a gate on qubits \(i,j\) is:
\[
\mathcal{E}_{ij}(\rho) = (1-p)\rho + \frac{p}{15} \sum_{P \in \mathcal{P}_{ij} \setminus \{II\}} P \rho P^\dagger
\]
where \(\mathcal{P}_{ij}\) is the set of 16 two-qubit Pauli operators on qubits \(i,j\).
Let’s trace the density matrix.
- Initial state: \(\rho_{in} = |0000\rangle\langle 0000|\).
- After \(H_2\): \(\rho_1 = H_2 \rho_{in} H_2^\dagger\).
- After \(CNOT_{21}\): \(\rho_2^{id} = CNOT_{21} \rho_1 CNOT_{21}^\dagger\).
- After first error channel \(\mathcal{E}_{21}\): \(\rho_2 = \mathcal{E}_{21}(\rho_2^{id})\).
- After \(H_0\): \(\rho_3 = H_0 \rho_2 H_0^\dagger\).
- After \(CNOT_{03}\): \(\rho_4^{before} = CNOT_{03} \rho_3 CNOT_{03}^\dagger\).
- After second error channel \(\mathcal{E}_{03}\): \(\rho_{final} = \mathcal{E}_{03}(\rho_4^{before})\).
Let’s expand \(\rho_{final}\):
\[
\rho_{final} = \mathcal{E}_{03} \circ (U_2 H_0) \circ \mathcal{E}_{21} \circ (U_1 H_2) (\rho_{in})
\]
Let \(U_{>1} = U_2 H_0 = CNOT_{03} H_0\).
The overall evolution results in a mixed state. We can express the final density matrix as a sum over error events:
- No errors: Probability \((1-p)^2\). State is \(|\psi_f\rangle\).
- Error at \(CNOT_{21}\) only: Probability \(p(1-p)\). An error \(P_{21} \in \mathcal{P}_{21}\setminus\{II\}\) occurs with probability \(p/15\). The resulting state is \(U_{>1} P_{21} |\psi_2\rangle = (U_{>1} P_{21} U_{>1}^\dagger) |\psi_f\rangle\). Since \(U_{>1}\) acts on qubits \(\{0,3\}\) and \(P_{21}\) acts on \(\{2,1\}\), they commute. So the state is \(P_{21}|\psi_f\rangle\).
- Error at \(CNOT_{03}\) only: Probability \((1-p)p\). An error \(P_{03} \in \mathcal{P}_{03}\setminus\{II\}\) occurs with probability \(p/15\). The resulting state is \(P_{03}|\psi_f\rangle\).
- Errors at both gates: Probability \(p^2\). Errors \(P_{21}\) and \(P_{03}\) occur. The final state is \(P_{03} P_{21} |\psi_f\rangle\).
The final density matrix is:
\[
\rho_{final} = (1-p)^2 \rho_f + p(1-p)\sum_{P_{21}\neq II}\frac{1}{15} P_{21}\rho_f P_{21} + (1-p)p\sum_{P_{03}\neq II}\frac{1}{15} P_{03}\rho_f P_{03} + p^2\sum_{P_{21}\neq II}\sum_{P_{03}\neq II}\frac{1}{225} P_{03}P_{21}\rho_f P_{21}P_{03}
\]
where \(\rho_f = |\psi_f\rangle\langle\psi_f|\).
3. Calculate the physical state fidelity
The fidelity is \(F = \langle\psi_f|\rho_{final}|\psi_f\rangle\).
\[
F = (1-p)^2 \langle\psi_f|\rho_f|\psi_f\rangle + \frac{p(1-p)}{15}\sum_{P_{21}\neq II} \langle\psi_f|P_{21}\rho_f P_{21}|\psi_f\rangle + \dots
\]
Using \(\langle\psi_f|A \rho_f B|\psi_f\rangle = \langle\psi_f|A|\psi_f\rangle\langle\psi_f|B|\psi_f\rangle\), we get:
\[
F = (1-p)^2 + \frac{p(1-p)}{15}\sum_{P_{21}\neq II} |\langle\psi_f|P_{21}|\psi_f\rangle|^2 + \frac{p(1-p)}{15}\sum_{P_{03}\neq II} |\langle\psi_f|P_{03}|\psi_f\rangle|^2 + \frac{p^2}{225}\sum_{P_{21}\neq II, P_{03}\neq II} |\langle\psi_f|P_{03}P_{21}|\psi_f\rangle|^2
\]
4. Determine the stabilizer group of the final state
To evaluate the sums, we need the expectation values \(\langle\psi_f|P|\psi_f\rangle\). The state \(|\psi_f\rangle\) is a stabilizer state. For any Pauli operator \(P\), the expectation value is non-zero only if \(P\) is in the stabilizer group of \(|\psi_f\rangle\) (up to a phase). Let the stabilizer group be \(G\).
The stabilizers of the initial state \(|0000\rangle\) are \(Z_0, Z_1, Z_2, Z_3\). The stabilizers of \(|\psi_f\rangle = U|0000\rangle\) are given by \(S'_k = U S_k U^\dagger\), where \(S_k\) are the initial stabilizers.
- \(U Z_0 U^\dagger = CNOT_{03}H_0 CNOT_{21}H_2 Z_0 H_2^\dagger CNOT_{21}^\dagger H_0^\dagger CNOT_{03}^\dagger = CNOT_{03} H_0 Z_0 H_0 CNOT_{03} = CNOT_{03} X_0 CNOT_{03} = X_0X_3\).
- \(U Z_1 U^\dagger = CNOT_{03}H_0 CNOT_{21}H_2 Z_1 H_2^\dagger CNOT_{21}^\dagger H_0^\dagger CNOT_{03}^\dagger = CNOT_{21} Z_1 CNOT_{21} = Z_1Z_2\).
- \(U Z_2 U^\dagger = CNOT_{03}H_0 CNOT_{21}H_2 Z_2 H_2^\dagger CNOT_{21}^\dagger H_0^\dagger CNOT_{03}^\dagger = CNOT_{21} H_2 Z_2 H_2 CNOT_{21} = CNOT_{21} X_2 CNOT_{21} = X_1X_2\).
- \(U Z_3 U^\dagger = CNOT_{03}H_0 CNOT_{21}H_2 Z_3 H_2^\dagger CNOT_{21}^\dagger H_0^\dagger CNOT_{03}^\dagger = CNOT_{03} Z_3 CNOT_{03} = Z_0Z_3\).
The stabilizer group of \(|\psi_f\rangle\) is \(G = \langle X_0X_3, Z_1Z_2, X_1X_2, Z_0Z_3 \rangle\).
For a Pauli operator \(P\), \(|\langle\psi_f|P|\psi_f\rangle|^2=1\) if \(P \in G\) (up to a phase) and 0 otherwise.
5. Evaluate the sums in the fidelity expression
We need to count how many Pauli operators of the specified form are in \(G\).
- Sum over \(P_{21}\): We need to find operators in \(G\) with support only on qubits 1 and 2. The generators acting on these qubits are \(Z_1Z_2\) and \(X_1X_2\). These generate a subgroup \(G_{12} = \langle Z_1Z_2, X_1X_2 \rangle\). The Pauli operators in this group are \(\{I_1I_2, X_1X_2, Z_1Z_2, Y_1Y_2\}\). There are 3 non-identity operators.
\[
\sum_{P_{21}\neq II} |\langle\psi_f|P_{21}|\psi_f\rangle|^2 = 3
\]
- Sum over \(P_{03}\): We need operators in \(G\) with support only on qubits 0 and 3. The relevant generators are \(X_0X_3\) and \(Z_0Z_3\). These generate \(G_{03} = \langle X_0X_3, Z_0Z_3 \rangle\). The Pauli operators are \(\{I_0I_3, X_0X_3, Z_0Z_3, Y_0Y_3\}\). There are 3 non-identity operators.
\[
\sum_{P_{03}\neq II} |\langle\psi_f|P_{03}|\psi_f\rangle|^2 = 3
\]
- Sum over \(P_{21}P_{03}\): The operator \(P_{21}P_{03}\) is in \(G\) if and only if \(P_{21} \in G_{12}\) and \(P_{03} \in G_{03}\). We are summing over non-identity \(P_{21}\) and \(P_{03}\). The number of choices for \(P_{21} \in G_{12} \setminus \{II\}\) is 3. The number of choices for \(P_{03} \in G_{03} \setminus \{II\}\) is 3. The total number of pairs is \(3 \times 3 = 9\).
\[
\sum_{P_{21}\neq II, P_{03}\neq II} |\langle\psi_f|P_{03}P_{21}|\psi_f\rangle|^2 = 9
\]
6. Assemble the final fidelity expression
Substitute these counts back into the formula for \(F\):
\[
F(p) = (1-p)^2 + \frac{p(1-p)}{15}(3) + \frac{p(1-p)}{15}(3) + \frac{p^2}{225}(9)
\]
\[
F(p) = (1-p)^2 + \frac{2p(1-p)}{5} + \frac{p^2}{25}
\]
Expand and simplify the terms:
\[
F(p) = (1 - 2p + p^2) + \frac{2}{5}(p - p^2) + \frac{1}{25}p^2
\]
\[
F(p) = 1 + \left(-2 + \frac{2}{5}\right)p + \left(1 - \frac{2}{5} + \frac{1}{25}\right)p^2
\]
\[
F(p) = 1 - \frac{8}{5}p + \left(\frac{25 - 10 + 1}{25}\right)p^2
\]
\[
F(p) = 1 - \frac{8}{5}p + \frac{16}{25}p^2
\]
This expression can be factored into a perfect square:
\[
F(p) = \left(1 - \frac{4}{5}p\right)^2
\]
Final Answer:
The physical state fidelity of the final 4-qubit state is:
\[
F(p) = \left(1 - \frac{4}{5}p\right)^2 = 1 - \frac{8}{5}p + \frac{16}{25}p^2
\]