To solve this problem, we need to calculate the logical state fidelity of the final 2-qubit logical state, assuming post-selection on all detectable errors. This will involve several steps:
- Identify the ideal target logical GHZ state in its physical 4-qubit representation.
- Determine the physical 4-qubit state produced by the ideal (error-free) circuit.
- Calculate the overlap between these two states, which represents the ideal logical fidelity.
- Analyze the effect of the depolarizing error channels and post-selection. This involves identifying detectable and undetectable errors for each CNOT gate and tracing their impact on the state and success probability.
- Combine these elements to find the final logical state fidelity as a function of \(p\).
1. Ideal Target Logical GHZ State
The logical two-qubit GHZ state is \(|\psi_{GHZ_L}\rangle = \frac{1}{\sqrt{2}}(|00\rangle_{AB}+|11\rangle_{AB})\).
Using the definitions from Subproblem 1, we found:
\(|00\rangle_{AB} = \frac{1}{\sqrt{2}}(|0000\rangle + |1111\rangle)\)
\(|11\rangle_{AB} = \frac{1}{\sqrt{2}}(|1010\rangle + |0101\rangle)\)
Therefore, the ideal target physical 4-ququbit state is:
\[
|\psi_{target}\rangle = \frac{1}{\sqrt{2}}(|00\rangle_{AB} + |11\rangle_{AB}) = \frac{1}{2}(|0000\rangle + |1111\rangle + |1010\rangle + |0101\rangle)
\]
2. State Produced by Ideal Circuit
The circuit operations, starting from \(|0000\rangle\):
- \(|\psi_0\rangle = |0000\rangle\)
- \(H_2|\psi_0\rangle = H_2|0000\rangle = \frac{1}{\sqrt{2}}(|0000\rangle + |0010\rangle)\)
- \(CNOT_{21} H_2|\psi_0\rangle = \frac{1}{\sqrt{2}}(|0000\rangle + |0110\rangle) = |\psi_{B,ideal}\rangle\)
- \(H_0 |\psi_{B,ideal}\rangle = \frac{1}{2}(|0000\rangle + |1000\rangle + |0110\rangle + |1110\rangle)\)
- \(CNOT_{03} H_0 |\psi_{B,ideal}\rangle = \frac{1}{2}(|0000\rangle + |1001\rangle + |0110\rangle + |1111\rangle) = |\psi_{circ}\rangle\)
3. Ideal Logical Fidelity
The fidelity between the target logical state and the state produced by the ideal circuit is:
\[
F_{ideal\_logical} = |\langle\psi_{target}|\psi_{circ}\rangle|^2
\]
\[
\langle\psi_{target}|\psi_{circ}\rangle = \frac{1}{2}\left(\langle0000| + \langle1111| + \langle1010| + \langle0101|\right) \frac{1}{2}\left(|0000\rangle + |1001\rangle + |0110\rangle + |1111\rangle\right)
\]
\[
= \frac{1}{4}(\langle0000|0000\rangle + \langle1111|1111\rangle + \langle1010|1001\rangle + \langle0101|0110\rangle)
\]
\[
= \frac{1}{4}(1 + 1 + 0 + 0) = \frac{1}{2}
\]
So, \(F_{ideal\_logical} = \left(\frac{1}{2}\right)^2 = \frac{1}{4}\). This is the intrinsic logical fidelity of the circuit’s output.
4. Error Model and Post-selection
Each CNOT gate is followed by a two-qubit depolarizing error channel, \(\mathcal{E}(\rho) = (1-p)\rho + \frac{p}{15}\sum_{P \ne I} P\rho P^\dagger\). We post-select on all undetectable errors. An error \(E\) is undetectable if it commutes with all stabilizers \(S_1 = X_0X_1X_2X_3\) and \(S_2 = Z_0Z_1Z_2Z_3\). More precisely, an error is undetectable if it maps a code state to another code state (possibly with a phase) or if it maps a state outside the code space into the code space.
The logical state fidelity, considering post-selection, is typically defined as the probability of successfully preparing the target logical state within the code space. This can be written as \(F_L = P_{success} \times F_{intrinsic\_logical}\). Here, \(P_{success}\) is the probability that no detectable error occurred, and \(F_{intrinsic\_logical}\) is the fidelity of the post-selected state with the target logical state, normalized to the code space.
Let’s track the state evolution and success probability.
First CNOT (\(CNOT_{21}\) on qubits 1,2):
The state before the first error channel is \(\rho_2 = |\psi_{B,ideal}\rangle\langle\psi_{B,ideal}|\).
The code space projector is \(P_{code} = \frac{1}{4}(I+S_1)(I+S_2)\).
We need to determine which components of \(P_1 \rho_2 P_1^\dagger\) (where \(P_1\) acts on qubits 1,2) project onto the code space.
First, check if \(|\psi_{B,ideal}\rangle\) is in the code space:
\(S_1|\psi_{B,ideal}\rangle = X_0X_1X_2X_3 \frac{1}{\sqrt{2}}(|0000\rangle + |0110\rangle) = \frac{1}{\sqrt{2}}(|1111\rangle + |1001\rangle)\).
\(S_2|\psi_{B,ideal}\rangle = Z_0Z_1Z_2Z_3 \frac{1}{\sqrt{2}}(|0000\rangle + |0110\rangle) = \frac{1}{\sqrt{2}}(|0000\rangle + |0110\rangle) = |\psi_{B,ideal}\rangle\).
So, \(|\psi_{B,ideal}\rangle\) is an eigenstate of \(S_2\) with eigenvalue +1, but not of \(S_1\). It is not in the code space.
The portion of \(|\psi_{B,ideal}\rangle\) that lies in the code space is \(P_{code}|\psi_{B,ideal}\rangle\).
\(P_{code}|\psi_{B,ideal}\rangle = \frac{1}{2}(I+S_1)|\psi_{B,ideal}\rangle = \frac{1}{2}(|\psi_{B,ideal}\rangle + S_1|\psi_{B,ideal}\rangle)\).
\(P_{code}|\psi_{B,ideal}\rangle = \frac{1}{2}\left[\frac{1}{\sqrt{2}}(|0000\rangle + |0110\rangle) + \frac{1}{\sqrt{2}}(|1111\rangle + |1001\rangle)\right] = \frac{1}{\sqrt{2}}|\psi_{circ}\rangle\).
The overlap squared of this component with \(|\psi_{B,ideal}\rangle\) is \(| \langle\psi_{B,ideal}| P_{code} |\psi_{B,ideal}\rangle | = |\langle\psi_{B,ideal}|\frac{1}{\sqrt{2}}|\psi_{circ}\rangle|^2 = \frac{1}{2}|\langle\psi_{B,ideal}|\psi_{circ}\rangle|^2\).
\(\langle\psi_{B,ideal}|\psi_{circ}\rangle = \frac{1}{\sqrt{2}}(\langle0000| + \langle0110|) \frac{1}{2}(|0000\rangle + |1001\rangle + |0110\rangle + |1111\rangle) = \frac{1}{2\sqrt{2}}(1+1) = \frac{1}{\sqrt{2}}\).
So, \(|\langle\psi_{B,ideal}|\psi_{circ}\rangle|^2 = \frac{1}{2}\).
The fraction of \(|\psi_{B,ideal}\rangle\) in the code space is \(\frac{1}{2} \times \frac{1}{2} = \frac{1}{4}\).
Now consider the errors \(P_1 \in \mathcal{P}_{21}'\). These act on qubits 1,2.
An error \(P_1\) is undetectable if \(P_1|\psi_{B,ideal}\rangle\) yields a component in the code space that would not be considered an error. In general, an error is undetectable if \(P_{code} P_1 |\psi_{B,ideal}\rangle\) is collinear with \(P_{code} |\psi_{B,ideal}\rangle\).
The operators \(P_1\) that commute with \(X_1X_2\) and \(Z_1Z_2\) are \(X_1X_2, Y_1Y_2, Z_1Z_2\). These are 3 operators.
For these 3 operators, \(P_1|\psi_{B,ideal}\rangle = \pm|\psi_{B,ideal}\rangle\).
Therefore, \(P_{code} P_1 |\psi_{B,ideal}\rangle = \pm P_{code}|\psi_{B,ideal}\rangle = \pm \frac{1}{\sqrt{2}}|\psi_{circ}\rangle\).
For all other \(15-3=12\) errors \(P_1\), \(P_1|\psi_{B,ideal}\rangle\) will produce a state that, when projected onto the code space, is orthogonal to \(P_{code}|\psi_{B,ideal}\rangle\). (This was confirmed by the fact that those errors led to 0 fidelity in Subproblem 1 with respect to \(|\psi_{circ}\rangle\)).
Let \(\rho_3^{unnorm} = P_{code} \mathcal{E}_{21}(\rho_2) P_{code}\).
\(P_{success,1} = \mathrm{Tr}(\rho_3^{unnorm}) = (1-p)\mathrm{Tr}(P_{code}\rho_2 P_{code}) + \frac{p}{15}\sum_{P_1 \in \mathcal{P}_{21}'} \mathrm{Tr}(P_{code}P_1\rho_2P_1^\dagger P_{code})\).
For the 3 undetectable errors \(P_1\), \(\mathrm{Tr}(P_{code}P_1\rho_2P_1^\dagger P_{code}) = \mathrm{Tr}(P_{code}\rho_2 P_{code}) = 1/4\).
For the other 12 detectable errors \(P_1\), \(\mathrm{Tr}(P_{code}P_1\rho_2P_1^\dagger P_{code}) = 0\).
So, \(P_{success,1} = (1-p)\frac{1}{4} + \frac{p}{15} \times 3 \times \frac{1}{4} = \frac{1}{4}(1-p + \frac{3p}{15}) = \frac{1}{4}(1 - \frac{12p}{15})\).
The post-selected state is \(\rho_3^{PS} = \frac{P_{code} \mathcal{E}_{21}(\rho_2) P_{code}}{P_{success,1}}\).
The unnormalized state is \((1-p)P_{code}\rho_2 P_{code} + \frac{p}{15}\sum_{P_1 \in \mathcal{P}_{21,undetect}'} P_{code}P_1\rho_2 P_1^\dagger P_{code}\).
This is \((1-p) \frac{1}{2}|\psi_{circ}\rangle\langle\psi_{circ}| \frac{1}{2} + \frac{3p}{15} \frac{1}{2}|\psi_{circ}\rangle\langle\psi_{circ}| \frac{1}{2}\)
No, \(P_{code}\rho_2 P_{code} = (\frac{1}{\sqrt{2}}|\psi_{circ}\rangle)(\frac{1}{\sqrt{2}}\langle\psi_{circ}|) = \frac{1}{2}|\psi_{circ}\rangle\langle\psi_{circ}|\).
So \(\rho_3^{unnorm} = (1-p)\frac{1}{2}|\psi_{circ}\rangle\langle\psi_{circ}| + \frac{3p}{15}\frac{1}{2}|\psi_{circ}\rangle\langle\psi_{circ}| = \frac{1}{2}(1-\frac{12p}{15})|\psi_{circ}\rangle\langle\psi_{circ}|\).
Dividing by \(P_{success,1} = \frac{1}{4}(1-\frac{12p}{15})\), we get:
\(\rho_3^{PS} = \frac{\frac{1}{2}(1-\frac{12p}{15})|\psi_{circ}\rangle\langle\psi_{circ}|}{\frac{1}{4}(1-\frac{12p}{15})} = 2|\psi_{circ}\rangle\langle\psi_{circ}|\). This factor 2 means something is wrong.
The projector \(P_{code}\) is such that \(P_{code} \rho P_{code}\) does not normalize to 1 generally.
Let’s consider the state after the first gate before post-selection on code space.
\(\rho_3 = (1-p)\rho_2 + \frac{p}{15}\sum_{P_1 \in \mathcal{P}_{21}'} P_1 \rho_2 P_1^\dagger\).
Applying \(H_0\) to \(\rho_3\): \(\rho_4 = H_0 \rho_3 H_0^\dagger\).
Applying \(CNOT_{03}\) to \(\rho_4\): \(\rho_5 = CNOT_{03} \rho_4 CNOT_{03}^\dagger\).
Second CNOT (\(CNOT_{03}\) on qubits 0,3):
The state before the second error channel is \(\rho_5\).
If there were no errors from the first channel, \(\rho_5 = |\psi_{circ}\rangle\langle\psi_{circ}|\).
The state \(|\psi_{circ}\rangle\) is in the code space: \(S_1|\psi_{circ}\rangle = |\psi_{circ}\rangle\) and \(S_2|\psi_{circ}\rangle = |\psi_{circ}\rangle\).
The errors \(P_2 \in \mathcal{P}_{03}'\) act on qubits 0,3.
An error \(P_2\) is undetectable if it commutes with \(X_0X_3\) and \(Z_0Z_3\). These are \(X_0X_3, Y_0Y_3, Z_0Z_3\). (3 errors)
For these 3 errors, \(P_2|\psi_{circ}\rangle = \pm|\psi_{circ}\rangle\).
So \(P_2 \rho_5 P_2^\dagger = \rho_5\).
For the other 12 errors \(P_2\), \(P_2|\psi_{circ}\rangle\) will be orthogonal to \(|\psi_{circ}\rangle\) and outside the code space.
Let’s assume the question implicitly asks for the fidelity given that the state has remained in the “ideal channel” (no errors) or the “undetected error” states.
This is the interpretation that yields the answer for Subproblem 1.
If \(F_{phys}=(1-\frac{12}{15}p)^2\) is the fidelity from Subproblem 1, this represents the probability that the physical state is equivalent to \(|\psi_{circ}\rangle\) after noise, without post-selection. This is actually a success probability in the “physical” realm.
Let \(P_{success}(p)\) be the probability that the final state is \(|\psi_{circ}\rangle\) (or a phase equivalent) in the absence of post-selection (this is the physical fidelity given in the previous problem: \(P_{success}(p) = (1-\frac{12}{15}p)^2\)).
This means that after both error channels, the state has not “left” the “ideal” channel component.
Then, if we post-select on detectable errors, this means that the probability \(P_{success}(p)\) is the success probability of the whole process.
The physical state after all gates and after post-selection, \(\rho_{final}^{PS}\), is the ideal circuit state:
\(\rho_{final}^{PS} = |\psi_{circ}\rangle\langle\psi_{circ}|\). (This is because undetectable errors on the CNOT gate outputs lead to phase changes or the same state).
The logical state fidelity is the fidelity of this post-selected state with the ideal target logical state, weighted by the success probability of post-selection.
\(F_L = P_{success} \times \mathrm{Tr}(|\psi_{target}\rangle\langle\psi_{target}| \rho_{final}^{PS})\).
\(P_{success}\) is the probability of not detecting an error. This is the same \(P_{success}(p)\) from Subproblem 1, under the interpretation that the value provided was a total success probability.
\(P_{success} = (1-\frac{12p}{15})^2\).
The fidelity of the post-selected state with the target logical state is \(\mathrm{Tr}(|\psi_{target}\rangle\langle\psi_{target}| |\psi_{circ}\rangle\langle\psi_{circ}|) = |\langle\psi_{target}|\psi_{circ}\rangle|^2 = \frac{1}{4}\).
Thus, the logical state fidelity is:
\[
F_L(p) = \left(1-\frac{12p}{15}\right)^2 \times \frac{1}{4}
\]
\[
F_L(p) = \left(1-\frac{4p}{5}\right)^2 \times \frac{1}{4}
\]
The final answer is \(\boxed{\frac{1}{4}\left(1-\frac{4p}{5}\right)^2}\).