Reasoning (model)
Analyzing Logical State Fidelity with Error Detection
Okay, so I’m tackling the fidelity of a prepared GHZ state, but with a crucial condition: we’re only interested in the state after post-selection. That means we’re throwing out any states where errors were detected. My thinking here is to figure out how errors impact the final state, specifically, the logical state fidelity.
First, I need to remind myself of a couple of things. The target logical state I’m aiming for is the GHZ state represented as \(|\psi_L\rangle = \frac{1}{\sqrt{2}}(|00\rangle_{AB}+|11\rangle_{AB})\). The physical state I need to prepare is \(|\psi_{target}\rangle = \frac{1}{2}(|0000\rangle + |1111\rangle + |0110\rangle + |1001\rangle)\). The actual final state I get, after all the noise, is called \(\rho_{final}\).
The code I’m using is a [[4,2,2]] code, which just means I have four qubits to protect two logical qubits, and it can detect two errors. I have two stabilizers: \(S_1 = X_0 X_1 X_2 X_3\) and \(S_2 = Z_0 Z_1 Z_2 Z_3\). States that are good codewords are in the +1 eigenspace of both stabilizers, meaning that when I act on the state with the stabilizer, the state is unchanged. Now, any error that happens can change the state: \(E|\psi_{target}\rangle\). And my job now is to determine what the physical fidelity is.
What I do to detect errors is to measure the syndromes, which will tell me if the state is in the code space, and post-selection is just discarding any state I can detect an error in. The projector onto my code space, the states I’m interested in, looks like \(P_{code} = \frac{1}{4}(I+S_1)(I+S_2)\). I can write the post-selected state as $ \rho_{ps} = \frac{P \rho_{final} P}{\text{Tr}(P \rho_{final})}$. The logical fidelity with post-selection is then \(F_L = \text{Tr}(|\psi_{target}\rangle\langle\psi_{target}| \rho_{ps})\).
I’ve already figured out \(\rho_{final}\) for this problem in subproblem 1. What I had was a lot of operators that I had to include. From here, I will plug in the definition of \(P\) into the equation and try to extract information on the state fidelity.
To make the problem easier, I can break it down into four categories:
* No error - The main GHZ state (ideal).
* \(P_{21}\) errors - The error occured during the second CNOT and acts on qubits 1 and 2.
* \(P_{03}\) errors - The error occurred during the first CNOT and acts on qubits 0 and 3.
* \(P_{21}\) and \(P_{03}\) errors, both occurring on the same state.
The core of the problem comes down to figuring out which of these errors are “undetectable”, meaning they commute with my stabilizer, and what they do to the target state. These “undetectable” errors map to the state, and the states where they map to will go into my fidelity calculation. The other errors that don’t commute will be detected and post-selected out.
I need to classify the operators of the form \(P \rho_T P\), where \(\rho_T\) is \(|\psi_{target}\rangle\), and then multiply by the constant \(c_E\) to account for their statistical probability.
The main argument is the probability of the state. These should give me the logical state fidelity of 1, because, by definition, any error that isn’t detected should leave me with a perfect GHZ. After checking my math I had the same answer that I had previously calculated and confirmed that the logical fidelity for this problem is 1.
To determine the logical state fidelity with post-selection, we first need to identify the final state after the noisy circuit, then project it onto the code space (representing no detectable error), normalize it, and finally compute its fidelity with the ideal logical GHZ state.
1. Recall the final physical state from Subproblem 1:
The ideal target physical state is \(|\psi_{target}\rangle = \frac{1}{2}(|0000\rangle + |1111\rangle + |0110\rangle + |1001\rangle)\).
The final density matrix after the noisy circuit, \(\rho_{final}\), can be written as:
\[
\rho_{final} = (1-p)^2 \rho_T + (1-p)\frac{p}{15} \sum_{P_{21}^*} P_{21} \rho_T P_{21} + (1-p)\frac{p}{15} \sum_{P_{03}^*} P_{03} \rho_T P_{03} + \left(\frac{p}{15}\right)^2 \sum_{P_{03}^*} \sum_{P_{21}^*} P_{03} P_{21} \rho_T P_{21} P_{03}
\]
where \(\rho_T = |\psi_{target}\rangle\langle\psi_{target}|\).
\(P_{21}^*\) are the 15 non-identity two-qubit Paulis acting on qubits 1 and 2.
\(P_{03}^*\) are the 15 non-identity two-qubit Paulis acting on qubits 0 and 3.
2. Project onto the code space (post-selection):
The [[4,2,2]] code has stabilizers \(S_1 = X_0 X_1 X_2 X_3\) and \(S_2 = Z_0 Z_1 Z_2 Z_3\).
The projector onto the code space (the \(+1\) eigenspace of both stabilizers) is \(P_{code} = \frac{1}{4}(I+S_1)(I+S_2) = \frac{1}{4}(I+S_1+S_2+S_1S_2)\).
When post-selecting on detectable errors, we are interested in the component of \(\rho_{final}\) that remains within the code space. This is given by \(P_{code} \rho_{final} P_{code}\).
Let’s analyze the effect of \(P_{code}\) on each term \(E \rho_T E^\dagger\) in \(\rho_{final}\).
If a Pauli operator \(E\) commutes with all stabilizers (i.e., \([E, S_i]=0\) for all \(S_i\)), then \(E\) maps a code state to another code state. In this case, \(P_{code} E \rho_T E^\dagger P_{code} = E \rho_T E^\dagger\).
If a Pauli operator \(E\) anti-commutes with any stabilizer (i.e., \(\{E, S_i\}=0\) for some \(S_i\)), then \(E\) maps a code state out of the code space. In this case, \(P_{code} E \rho_T E^\dagger P_{code} = 0\).
Let \(\mathcal{N}\) be the set of Pauli operators that commute with both \(S_1\) and \(S_2\).
The projected (unnormalized) state is \(\rho_{no\_error} = \sum_{E \in \mathcal{N}} c_E E \rho_T E^\dagger\), where \(c_E\) are the coefficients from the expansion of \(\rho_{final}\).
From Subproblem 1, we identified the specific Paulis from \(P_{21}^*\), \(P_{03}^*\), and their products \(P_{03}P_{21}\) that commute with \(S_1\) and \(S_2\). These are:
* \(P_{21}^*\): The 3 Paulis \(X_1X_2, Z_1Z_2, Y_1Y_2\). These form the non-identity part of the stabilizer group \(G_{12}\) of the ideal state acting on qubits 1,2.
* \(P_{03}^*\): The 3 Paulis \(X_0X_3, Z_0Z_3, Y_0Y_3\). These form the non-identity part of the stabilizer group \(G_{03}\) of the ideal state acting on qubits 0,3.
* Products \(P_{03}P_{21}\): The \(3 \times 3 = 9\) products where \(P_{03} \in G_{03}\setminus\{I\}\) and \(P_{21} \in G_{12}\setminus\{I\}\).
Let’s check how these undetectable errors affect the logical state, i.e., whether \(E \rho_T E^\dagger = \rho_T\) or \(E \rho_T E^\dagger = \rho_{L'}\) where \(\rho_{L'}\) is a different logical state.
The ideal target state is \(|\psi_{target}\rangle = \frac{1}{\sqrt{2}}(|00\rangle_{AB}+|11\rangle_{AB})\).
* For \(E=X_1X_2\):
\(X_1X_2|\psi_{target}\rangle = \frac{1}{2}(X_1X_2|0000\rangle + X_1X_2|1111\rangle + X_1X_2|0110\rangle + X_1X_2|1001\rangle)\)
\(= \frac{1}{2}(|0110\rangle + |1001\rangle + |0000\rangle + |1111\rangle) = |\psi_{target}\rangle\).
* For \(E=Z_1Z_2\):
\(Z_1Z_2|\psi_{target}\rangle = \frac{1}{2}(Z_1Z_2|0000\rangle + Z_1Z_2|1111\rangle + Z_1Z_2|0110\rangle + Z_1Z_2|1001\rangle)\)
\(= \frac{1}{2}(|0000\rangle + |1111\rangle + (-1)^{1+1}|0110\rangle + (-1)^{0+0}|1001\rangle) = |\psi_{target}\rangle\).
* Since \(Y_1Y_2 = -X_1X_2 Z_1Z_2\), \(Y_1Y_2|\psi_{target}\rangle = -|\psi_{target}\rangle\), and thus \(Y_1Y_2 \rho_T Y_1Y_2 = \rho_T\).
* Similarly for \(X_0X_3, Z_0Z_3, Y_0Y_3\), they all map \(|\psi_{target}\rangle\) to \(\pm |\psi_{target}\rangle\), hence \(E \rho_T E^\dagger = \rho_T\).
* For any product error \(E = P_{03} P_{21}\) where \(P_{03} \in G_{03}\setminus\{I\}\) and \(P_{21} \in G_{12}\setminus\{I\}\), both \(P_{03}\) and \(P_{21}\) commute with \(S_1, S_2\) and act as \(\pm I\) on \(|\psi_{target}\rangle\). Since \(P_{03}\) and \(P_{21}\) act on disjoint qubits, they commute. So \(E|\psi_{target}\rangle = P_{03}P_{21}|\psi_{target}\rangle = P_{03}(\pm|\psi_{target}\rangle) = \pm (\pm|\psi_{target}\rangle) = \pm |\psi_{target}\rangle\). Thus \(E \rho_T E^\dagger = \rho_T\).
This means that any error that commutes with the stabilizers \(S_1, S_2\) (i.e., any undetectable error) happens to map the target state \(\rho_T\) to itself. This implies that no logical errors are introduced by the undetectable physical errors in this specific scenario.
Therefore, the unnormalized post-selected state is:
\[
\rho_{no\_error} = \left[ (1-p)^2 \cdot 1 + 3(1-p)\frac{p}{15} \cdot 1 + 3(1-p)\frac{p}{15} \cdot 1 + 9\left(\frac{p}{15}\right)^2 \cdot 1 \right] \rho_T
\]
The sum of coefficients in the bracket is precisely the physical fidelity calculated in Subproblem 1:
\[
F_{physical} = (1-p)^2 + \frac{6p(1-p)}{15} + \frac{9p^2}{225} = (1-p)^2 + \frac{2p(1-p)}{5} + \frac{p^2}{25} = 1 - \frac{8p}{5} + \frac{16p^2}{25} = \left(1 - \frac{4p}{5}\right)^2
\]
So, \(\rho_{no\_error} = F_{physical} \rho_T\).
3. Normalize the post-selected state and compute logical fidelity:
The probability of successfully preparing the state without detecting an error is \(P_{success} = \text{Tr}(\rho_{no\_error}) = F_{physical} \text{Tr}(\rho_T) = F_{physical} \cdot 1 = \left(1 - \frac{4p}{5}\right)^2\).
The normalized post-selected state is \(\rho_{ps} = \frac{\rho_{no\_error}}{P_{success}} = \frac{F_{physical} \rho_T}{F_{physical}} = \rho_T\).
The logical state fidelity is the fidelity between this post-selected state \(\rho_{ps}\) and the ideal logical GHZ state (which is \(\rho_T\)):
\[
F_{logical} = \text{Tr}(\rho_T \rho_{ps}) = \text{Tr}(\rho_T \rho_T) = 1
\]
This result means that if no error is detected by the code, the logical state is perfectly prepared. The probability of this occurring is \(F_{physical}\).
The final answer is \(\boxed{1}\).