Reasoning (model)
Summary of My Thinking Process
Okay, here’s what I’m thinking about this problem: The user wants the logical state fidelity after we’ve filtered out (post-selected) any errors that we can detect. Essentially, I need to take the noisy state and project it back into the “good” code space, and then figure out how “good” that resulting state is compared to the perfect ideal state.
First, I need to look back at Subproblem 1 to remember what the ideal and noisy states were. The ideal state is given, and the noisy final state is a sum of the ideal state and various error terms, accounting for the probability of those errors happening.
Now I need to define the code space, which is basically the set of states that our code can represent. I know it’s a [[4,2,2]] code, which means it encodes 2 logical qubits into 4 physical qubits, and it has distance 2. That lets me define the code space using stabilizers (the operators that don’t change the state within the code space). The projectors, made from these stabilizers, are how I’m going to actually project the noisy state. I can simplify the projector form using the fact that stabilizers are related to each other.
Next, I’m projecting the noisy state onto the code space. This gives me a new (unnormalized) state. The logical fidelity is the fidelity with this projected state, defined as a ratio involving the perfect state, the projected state, and the trace of the projected state (for normalization).
Now, the math kicks in. I notice that the inner product with the ideal state in the numerator simplifies because the ideal state already lives in the code space. This means I’m just left with the original physical fidelity I calculated earlier (from Subproblem 1). The important part is the trace. To find the logical fidelity, I need to know the trace of my projected density matrix. This means I need to compute the expectation value of all the stabilizers in the noisy density matrix.
I go term-by-term through the noisy density matrix, applying the stabilizers to the ideal state and doing a little careful accounting. Things involving the Pauli matrices, and their commutation/anti-commutation properties are important for figuring out these traces. I’ve got this because I’m an expert in this field. It’s tricky with all the sums, but I know how to handle it. In some cases, the stabilizers just commute, so it is just one, in other cases they anti-commute or don’t preserve the ideal state. That means the trace of a noisy operator plus stabilizer is just the stabilizer term in that matrix.
I repeat this procedure for each stabilizer. It becomes evident the contributions come in pairs. The crucial sums involve the Pauli errors and the stabilizers. I then combine these traces, along with a constant factor to get the total trace, which turns out to be a function of the error probability, p. Once I’ve got this trace, I divide to get the logical fidelity.
I check that the formula makes sense. When there’s no noise (p=0), I should get a logical fidelity of 1, which it does.
I’m looking for an exact expression, so I need to present the formula as a ratio of the polynomials in p. I can expand this expression in a power series in p, as well, and there is a lot of arithmetic which should be double checked, but this is the right expression.
To find the logical state fidelity with post-selection, we need to calculate the ratio of the physical fidelity to the probability of successfully projecting the noisy state onto the code space.
The logical state fidelity \(F_L\) is defined as:
\[
F_L = \frac{\langle \psi_{ideal} | P_{\mathcal{C}} \rho_{final} P_{\mathcal{C}} | \psi_{ideal} \rangle}{\text{Tr}(P_{\mathcal{C}} \rho_{final} P_{\mathcal{C}})}
\]
where \(P_{\mathcal{C}}\) is the projector onto the code space.
Since the ideal state \(|\psi_{ideal}\rangle\) is by definition in the code space, \(P_{\mathcal{C}} |\psi_{ideal}\rangle = |\psi_{ideal}\rangle\).
Also, \(P_{\mathcal{C}}\) is a projector, so \(P_{\mathcal{C}}^\dagger = P_{\mathcal{C}}\) and \(P_{\mathcal{C}}^2 = P_{\mathcal{C}}\).
Thus, the numerator simplifies to \(\langle \psi_{ideal} | \rho_{final} | \psi_{ideal} \rangle\), which is exactly the physical state fidelity \(F\) calculated in Subproblem 1.
The denominator is \(\text{Tr}(P_{\mathcal{C}} \rho_{final} P_{\mathcal{C}}) = \text{Tr}(P_{\mathcal{C}}^2 \rho_{final}) = \text{Tr}(P_{\mathcal{C}} \rho_{final})\).
So, \(F_L = \frac{F}{\text{Tr}(P_{\mathcal{C}} \rho_{final})}\).
1. Recall the physical state fidelity (\(F\)) from Subproblem 1:
The ideal target state is \(|\psi_{ideal}\rangle = \frac{1}{2}(|0000\rangle + |1001\rangle + |0110\rangle + |1111\rangle)\).
The noisy final state is \(\rho_{final} = (1-p)^2 \rho_{ideal} + (1-p)\frac{p}{15} \sum_{P_k \in \mathcal{P}_{21} \setminus \{I_2I_1\}} P_k \rho_{ideal} P_k^\dagger + (1-p)\frac{p}{15} \sum_{P_j \in \mathcal{P}_{03} \setminus \{I_0I_3\}} P_j \rho_{ideal} P_j^\dagger + \left(\frac{p}{15}\right)^2 \sum_{P_j \in \mathcal{P}_{03} \setminus \{I_0I_3\}} \sum_{P_k \in \mathcal{P}_{21} \setminus \{I_2I_1\}} P_j P_k \rho_{ideal} P_k^\dagger P_j^\dagger\).
The physical fidelity \(F = \langle \psi_{ideal} | \rho_{final} | \psi_{ideal} \rangle\) was found to be:
\[
F = 1 - \frac{8p}{5} + \frac{46p^2}{75}
\]
2. Determine the projector onto the code space (\(P_{\mathcal{C}}\)):
The stabilizers are \(S_1 = X_0X_1X_2X_3\) and \(S_2 = Z_0Z_1Z_2Z_3\).
The projector onto the code space (the \(+1\) eigenspace of all stabilizers) is:
\[
P_{\mathcal{C}} = \frac{1}{4}(I+S_1+S_2+S_1S_2)
\]
where \(S_1S_2 = X_0X_1X_2X_3 Z_0Z_1Z_2Z_3 = Y_0Y_1Y_2Y_3\).
3. Calculate the trace of the projected noisy state, \(\text{Tr}(P_{\mathcal{C}} \rho_{final})\):
\[
\text{Tr}(P_{\mathcal{C}} \rho_{final}) = \frac{1}{4} \left( \text{Tr}(\rho_{final}) + \text{Tr}(S_1 \rho_{final}) + \text{Tr}(S_2 \rho_{final}) + \text{Tr}(S_1S_2 \rho_{final}) \right)
\]
First, \(\text{Tr}(\rho_{final}) = 1\) since \(\rho_{final}\) is a normalized density matrix.
Next, consider \(\text{Tr}(S \rho_{final})\) for \(S \in \{S_1, S_2, S_1S_2\}\).
Each of these terms will be of the form:
\[
\text{Tr}(S \rho_{final}) = (1-p)^2 \langle \psi_{ideal} | S | \psi_{ideal} \rangle + (1-p)\frac{p}{15} \sum_{P_k} \langle \psi_{ideal} | P_k^\dagger S P_k | \psi_{ideal} \rangle + (1-p)\frac{p}{15} \sum_{P_j} \langle \psi_{ideal} | P_j^\dagger S P_j | \psi_{ideal} \rangle + \left(\frac{p}{15}\right)^2 \sum_{P_j,P_k} \langle \psi_{ideal} | (P_j P_k)^\dagger S (P_j P_k) | \psi_{ideal} \rangle
\]
where \(P_k\) are non-identity 2-qubit Paulis on qubits (1,2) and \(P_j\) are non-identity 2-qubit Paulis on qubits (0,3).
Let’s evaluate each sum:
- Term 1: \(\langle \psi_{ideal} | S | \psi_{ideal} \rangle = 1\) for \(S \in \{S_1, S_2, S_1S_2\}\), as they are stabilizers of \(|\psi_{ideal}\rangle\).
-
Term 2: \(\sum_{P_k \in \mathcal{P}_{21} \setminus \{I_2I_1\}} \langle \psi_{ideal} | P_k^\dagger S P_k | \psi_{ideal} \rangle\).
- For \(S=S_1=X_0X_1X_2X_3\): \(P_k^\dagger S_1 P_k = X_0X_3 (P_k^\dagger X_1X_2 P_k)\). This term is non-zero (equal to 1) only if \(P_k^\dagger X_1X_2 P_k = X_1X_2\), which happens for \(P_k=X_1X_2\). All other \(P_k\) on qubits (1,2) result in \(\langle \psi_{ideal} | X_0X_3 (P_k^\dagger X_1X_2 P_k) | \psi_{ideal} \rangle = 0\). So this sum is \(1\).
- For \(S=S_2=Z_0Z_1Z_2Z_3\): \(P_k^\dagger S_2 P_k = Z_0Z_3 (P_k^\dagger Z_1Z_2 P_k)\). This term is non-zero (equal to 1) only if \(P_k^\dagger Z_1Z_2 P_k = Z_1Z_2\), which happens for \(P_k=Z_1Z_2\). So this sum is \(1\).
- For \(S=S_1S_2=Y_0Y_1Y_2Y_3\): \(P_k^\dagger S_1S_2 P_k = Y_0Y_3 (P_k^\dagger Y_1Y_2 P_k)\). This term is non-zero (equal to 1) only if \(P_k^\dagger Y_1Y_2 P_k = Y_1Y_2\), which happens for \(P_k=Y_1Y_2\). So this sum is \(1\).
-
Term 3: \(\sum_{P_j \in \mathcal{P}_{03} \setminus \{I_0I_3\}} \langle \psi_{ideal} | P_j^\dagger S P_j | \psi_{ideal} \rangle\). By symmetry with Term 2, this sum is also \(1\) for each \(S \in \{S_1, S_2, S_1S_2\}\).
-
Term 4: \(\sum_{P_j \in \mathcal{P}_{03} \setminus \{I_0I_3\}} \sum_{P_k \in \mathcal{P}_{21} \setminus \{I_2I_1\}} \langle \psi_{ideal} | (P_j P_k)^\dagger S (P_j P_k) | \psi_{ideal} \rangle\).
Since \(P_j\) and \(P_k\) act on disjoint qubits, they commute. \(P_j P_k\) is a 4-qubit Pauli. The only 4-qubit Paulis that map \(|\psi_{ideal}\rangle\) to itself (up to phase) are \(I, S_1, S_2, S_1S_2\). The sums for \(P_j, P_k\) exclude \(I_2I_1\) and \(I_0I_3\), so \(P_j P_k\) cannot be \(I\). Thus, non-zero terms arise only when \(P_j P_k \in \{S_1, S_2, S_1S_2\}\).
- For \(S=S_1\): \(\langle \psi_{ideal} | (P_jP_k)^\dagger S_1 (P_jP_k) | \psi_{ideal} \rangle\). Since \(S_1, S_2, S_1S_2\) commute with \(S_1\), for each of the three cases (\(P_j P_k = S_1, S_2, S_1S_2\)), this value is \(\langle \psi_{ideal} | S_1 | \psi_{ideal} \rangle = 1\). So this sum is \(3\).
- For \(S=S_2\): \(\langle \psi_{ideal} | (P_jP_k)^\dagger S_2 (P_jP_k) | \psi_{ideal} \rangle\). Since \(S_1, S_2, S_1S_2\) commute with \(S_2\), for each of the three cases, this value is \(\langle \psi_{ideal} | S_2 | \psi_{ideal} \rangle = 1\). So this sum is \(3\).
- For \(S=S_1S_2\): \(\langle \psi_{ideal} | (P_jP_k)^\dagger S_1S_2 (P_jP_k) | \psi_{ideal} \rangle\). Since \(S_1, S_2, S_1S_2\) commute with \(S_1S_2\), for each of the three cases, this value is \(\langle \psi_{ideal} | S_1S_2 | \psi_{ideal} \rangle = 1\). So this sum is \(3\).
Now, substitute these sums back into the expression for \(\text{Tr}(S \rho_{final})\) for \(S \in \{S_1, S_2, S_1S_2\}\):
\[
\text{Tr}(S \rho_{final}) = (1-p)^2(1) + (1-p)\frac{p}{15}(1) + (1-p)\frac{p}{15}(1) + \left(\frac{p}{15}\right)^2(3)
\]
\[
\text{Tr}(S \rho_{final}) = (1-2p+p^2) + \frac{2p(1-p)}{15} + \frac{3p^2}{225}
\]
\[
\text{Tr}(S \rho_{final}) = 1 - 2p + p^2 + \frac{2p}{15} - \frac{2p^2}{15} + \frac{p^2}{75}
\]
\[
\text{Tr}(S \rho_{final}) = 1 + p\left(-2 + \frac{2}{15}\right) + p^2\left(1 - \frac{2}{15} + \frac{1}{75}\right)
\]
\[
\text{Tr}(S \rho_{final}) = 1 - \frac{28p}{15} + p^2\left(\frac{75 - 30 + 1}{75}\right) = 1 - \frac{28p}{15} + \frac{46p^2}{75}
\]
This expression is the same for \(S_1\), \(S_2\), and \(S_1S_2\).
Now, substitute back into the overall trace:
\[
\text{Tr}(P_{\mathcal{C}} \rho_{final}) = \frac{1}{4} \left( 1 + 3 \left( 1 - \frac{28p}{15} + \frac{46p^2}{75} \right) \right)
\]
\[
\text{Tr}(P_{\mathcal{C}} \rho_{final}) = \frac{1}{4} \left( 1 + 3 - \frac{84p}{15} + \frac{138p^2}{75} \right)
\]
\[
\text{Tr}(P_{\mathcal{C}} \rho_{final}) = \frac{1}{4} \left( 4 - \frac{28p}{5} + \frac{46p^2}{25} \right)
\]
\[
\text{Tr}(P_{\mathcal{C}} \rho_{final}) = 1 - \frac{7p}{5} + \frac{23p^2}{25}
\]
4. Calculate the logical fidelity \(F_L\):
\[
F_L = \frac{F}{\text{Tr}(P_{\mathcal{C}} \rho_{final})} = \frac{1 - \frac{8p}{5} + \frac{46p^2}{75}}{1 - \frac{7p}{5} + \frac{23p^2}{25}}
\]
To present this as a single fraction:
Numerator: \(\frac{75 - 120p + 46p^2}{75}\)
Denominator: \(\frac{25 - 35p + 23p^2}{25}\)
\[
F_L = \frac{75 - 120p + 46p^2}{75} \times \frac{25}{25 - 35p + 23p^2}
\]
\[
F_L = \frac{75 - 120p + 46p^2}{3(25 - 35p + 23p^2)}
\]
\[
F_L = \frac{75 - 120p + 46p^2}{75 - 105p + 69p^2}
\]
The final answer is \(\boxed{\frac{75 - 120p + 46p^2}{75 - 105p + 69p^2}}\)