Reasoning (model)
My Strategy for Tackling Subproblem 2
Okay, so I’ve worked through Subproblem 1 and have a handle on the fidelity of the final physical state. Now, I need to figure out the logical fidelity, which means I’m looking at how well the encoded logical qubit is preserved. I’ll be using my understanding of stabilizer codes to calculate this.
First, I need to use the state I had worked out from subproblem 1. Since I believe my derivation and calculation of the physical state fidelity is correct and robust, I’m sticking with it.
I know from the definition of fidelity and the [[4,2,2]] code that I need to post-select on detectable errors. This means projecting out the portion of the final state that has a non-trivial syndrome after the CNOT operations and the depolarizing errors, because those portions of the state are effectively unusable. The fidelity after the post-selection should be the physical state fidelity and trace of the state after projected post selecting. In that regard, post-selection amounts to keeping only the part of the density matrix that’s in the code space, as this is the only part that represents the logical qubit. I’ll need to figure out what those errors are (what stabilizers and logical operators are preserved/changed) and remove them from the equation.
The crucial quantity to compute is the projector onto the codespace. Once I have the physical state and the projector, I can apply the projector to the final state and then compute the trace of the result. To compute the trace, I will determine all possible contributions to the trace, where each has the form of a Pauli operator with \(|\Psi\rangle\), the physical state, in front and back of the operator. In that manner, the trace is 1 if the operator acts as the identity within the codespace, and 0 otherwise.
To derive the projector, I’ll identify the stabilizer group, which consists of all the operators that leave the codespace unchanged. I need to take the density matrix and multiply it on both sides by the stabilizer projectors. In this case, since I have just two stabilizers, the projector onto the code space, \(P_C\), should be a combination of the two stabilizers. I know that the ideal state, \(|\Psi\rangle\), is a code word, so applying the projector to it should return the ideal state.
After post-selection on the state, I need to calculate the fidelity \(F_{logical} = \frac{ \langle\Psi| \rho_{post}|\Psi\rangle}{\text{Tr}(P_C \rho_{actual} P_C)}\). The numerator ends up as \(F_{physical}\), where the numerator should be physical fidelity.
Then, I’ll compare the fidelity of the final state, \(\rho_{actual}\), to an ideal state that is a good code word. The ideal final state is known as \(|\Psi\rangle\). The fidelity is calculated and divided by the trace of the same, in this case, to project the non-code words out.
I will then use the same tools to calculate the fidelity, but take into account the trace that includes post-selection, resulting in the desired \(F_{logical} = \frac{1 - 2p + \frac{76}{75}p^2}{1 - 2p + \frac{95}{75}p^2}\).
To solve Subproblem 2, we need to calculate the logical state fidelity of the final 2-qubit logical state, assuming post-selection on all detectable errors. This means we project the final state onto the codespace and then calculate the fidelity of this (renormalized) projected state with the ideal logical state.
The ideal target physical state, derived in Subproblem 1, is:
\[
|\Psi\rangle = \frac{1}{2}(|0000\rangle+|1001\rangle+|0110\rangle+|1111\rangle).
\]
This state represents the logical GHZ state \((|00\rangle_{AB}+|11\rangle_{AB})/\sqrt{2}\) in the [[4,2,2]] code.
The final actual physical state, derived in Subproblem 1, is \(\rho_{actual}\).
\[
\rho_{actual} = (1-p)^2 |\Psi\rangle\langle\Psi| + (1-p)\frac{p}{15} \sum_{P_{12}} P_{12} |\Psi\rangle\langle\Psi| P_{12} \\ + (1-p)\frac{p}{15} \sum_{Q_{03}} Q_{03} |\Psi\rangle\langle\Psi| Q_{03} + \left(\frac{p}{15}\right)^2 \sum_{P_{12}} \sum_{Q_{03}} P_{12} Q_{03} |\Psi\rangle\langle\Psi| Q_{03} P_{12}.
\]
The physical state fidelity (from Subproblem 1) is \(F_{physical} = \langle \Psi | \rho_{actual} | \Psi \rangle = 1 - 2p + \frac{76}{75} p^2\).
The [[4,2,2]] code has stabilizers \(S_1 = XXXX\) and \(S_2 = ZZZZ\). The stabilizer group of the code is \(G_C = \{I, XXXX, ZZZZ, YYYY\}\). The codespace is the common +1 eigenspace of all stabilizers. The projector onto the codespace is \(P_C = \frac{1}{|G_C|} \sum_{S \in G_C} S = \frac{1}{4}(I + XXXX + ZZZZ + YYYY)\).
Post-selection means we consider only the portion of the state that has a trivial syndrome (i.e., lies in the codespace). The unnormalized post-selected state is \(\rho_{post} = P_C \rho_{actual} P_C\).
The logical state fidelity \(F_{logical}\) is defined as the fidelity of the post-selected (and normalized) state with the ideal logical state. Since \(|\Psi\rangle\) is a codespace state (\(P_C|\Psi\rangle = |\Psi\rangle\)), the logical fidelity simplifies to:
\[
F_{logical} = \frac{\langle \Psi | \rho_{post} | \Psi \rangle}{\text{Tr}(\rho_{post})} = \frac{\langle \Psi | P_C \rho_{actual} P_C | \Psi \rangle}{\text{Tr}(P_C \rho_{actual} P_C)}.
\]
Since \(P_C|\Psi\rangle = |\Psi\rangle\), the numerator becomes:
\[
\langle \Psi | P_C \rho_{actual} P_C | \Psi \rangle = \langle \Psi | \rho_{actual} | \Psi \rangle = F_{physical}.
\]
So, the numerator for the logical fidelity is \(1 - 2p + \frac{76}{75} p^2\).
Now we need to calculate the denominator: \(\text{Tr}(\rho_{post}) = \text{Tr}(P_C \rho_{actual} P_C) = \text{Tr}(\rho_{actual} P_C)\).
For each term \(O |\Psi\rangle\langle\Psi| O^\dagger\) in \(\rho_{actual}\), we need to evaluate \(\text{Tr}(O |\Psi\rangle\langle\Psi| O^\dagger P_C)\).
This trace is non-zero if and only if the state \(O|\Psi\rangle\) is in the codespace.
Since \(|\Psi\rangle\) is a codespace state, \(O|\Psi\rangle\) is in the codespace if and only if \(O\) belongs to the normalizer of the stabilizer group, \(N(G_C)\). The normalizer \(N(G_C)\) contains all Pauli operators \(P\) such that \(P G_C P^\dagger = G_C\). For this code, \(N(G_C)\) contains \(2^{2k} \times |G_C| = 2^{2 \times 2} \times 4 = 16 \times 4 = 64\) elements.
If \(O \in N(G_C)\), then \(\text{Tr}(O |\Psi\rangle\langle\Psi| O^\dagger P_C) = \text{Tr}(O O^\dagger P_C |\Psi\rangle\langle\Psi|) = \text{Tr}(P_C |\Psi\rangle\langle\Psi|) = \langle\Psi|P_C|\Psi\rangle = 1\).
Let’s re-evaluate the terms in \(\rho_{actual}\) based on whether \(O \in N(G_C)\):
- Identity term: \(O=I\). \(I \in N(G_C)\). This term contributes \((1-p)^2 \times 1\).
- \(P_{12}\) terms: \(O=P_{12}\) (non-identity Pauli on qubits 1 and 2).
A \(P_{12}\) operator has the form \(I_0 P_1 P_2 I_3\). We need to check if any non-identity \(P_{12}\) is in \(N(G_C)\).
The elements of \(G_C\) are \(I, XXXX, ZZZZ, YYYY\). None of these are of the form \(I_0 P_1 P_2 I_3\) unless \(P_1P_2=I_1I_2\) (which is excluded).
The logical operators are \(X_A=XIXI\), \(X_B=XXII\), \(Z_A=ZZII\), \(Z_B=ZIZI\).
None of these are of the form \(I_0 P_1 P_2 I_3\) where \(I_0I_3\) is the identity on qubits 0 and 3.
However, the logical operator \(X_A X_B = I_0X_1X_2I_3\) IS of this form. Similarly for \(Z_A Z_B = I_0Z_1Z_2I_3\) and \(Y_A Y_B = I_0Y_1Y_2I_3\).
These 3 operators (\(X_A X_B\), \(Z_A Z_B\), \(Y_A Y_B\)) are non-identity Paulis acting only on qubits 1 and 2, and they are elements of \(N(G_C)\).
So, for the second term, we have 3 contributions.
This term contributes \((1-p)\frac{p}{15} \times 3\).
-
\(Q_{03}\) terms: \(O=Q_{03}\) (non-identity Pauli on qubits 0 and 3).
A \(Q_{03}\) operator has the form \(Q_0 I_1 I_2 Q_3\). Similar to \(P_{12}\) terms, none of the \(G_C\) elements (except \(I\)) are of this form. Also no logical operator by itself has \(I_1I_2\).
However, if we take for example \(X_0X_3\), this is not an element of \(N(G_C)\) by itself. This means no \(Q_{03}\) (other than \(I_0I_3\)) is in \(N(G_C)\). Let’s double check.
Elements of \(N(G_C)\) that are of the form \(Q_0 I_1 I_2 Q_3\): only \(I_0I_1I_2I_3\). (Any other \(Q_0Q_3\) will not be in \(N(G_C)\)).
For example, \(X_0I_1I_2X_3\) (which is \(XXXX \cdot I_0I_1I_2I_3\)) IS in \(G_C\), thus in \(N(G_C)\). Yes. This IS an error term.
Let \(N_{Q_{03}}\) be the count of non-identity \(Q_{03}\) operators in \(N(G_C)\).
Elements of \(G_C\) like \(XXXX\), \(ZZZZ\), \(YYYY\) are of form \(Q_0 Q_1 Q_2 Q_3\), not \(Q_0 I_1 I_2 Q_3\).
So, only \(I_0I_1I_2I_3\) is a \(Q_0I_1I_2Q_3\) type. But this is identity.
So, there are 0 non-identity \(Q_{03}\) in \(N(G_C)\).
This term contributes \((1-p)\frac{p}{15} \times 0\).
-
\(Q_{03} P_{12}\) terms: \(O=Q_{03} P_{12}\). These are 4-qubit Pauli operators \(Q_0 P_1 P_2 Q_3\).
\(Q_{03}\) must be non-identity (\(Q_0 \ne I_0\) or \(Q_3 \ne I_3\)).
\(P_{12}\) must be non-identity (\(P_1 \ne I_1\) or \(P_2 \ne I_2\)).
We need to count how many such operators are in \(N(G_C)\).
Let \(N_{Q_{03}P_{12}}\) be this count.
From \(G_C\): \(XXXX, ZZZZ, YYYY\). These 3 terms are of this type. (3 terms)
From logical operators: \(X_A, X_B, Z_A, Z_B, Y_A, Y_B\). All 6 are of this type (as verified in thought process). (6 terms)
Products of logical operators \(X_A Z_B\), \(X_A Y_B\), \(Z_A X_B\), \(Z_A Y_B\), \(Y_A X_B\), \(Y_A Z_B\). These are 6 terms, all are of this type. (6 terms)
Total so far: \(3+6+6=15\).
This is counting specific forms only. A more systematic way is to count the size of \(N(G_C)\) and subtract terms that are not of the required form.
The elements of \(N(G_C)\) are 64.
Let \(S_{03}\) be the set of Paulis on \(Q_0Q_3\). Let \(S_{12}\) be the set of Paulis on \(Q_1Q_2\).
Let \(N_I^{03}\) be the set of elements in \(N(G_C)\) that are \(I\) on \(Q_0Q_3\). There are 4 such elements: \(I, X_AX_B, Z_AZ_B, Y_AY_B\).
Let \(N_I^{12}\) be the set of elements in \(N(G_C)\) that are \(I\) on \(Q_1Q_2\). There is 1 such element: \(I\).
The number of terms \(Q_{03}P_{12}\) (where both are non-identity) in \(N(G_C)\) is:
\(|N(G_C)| - (|N_I^{03}| + |N_I^{12}| - |N_I^{03} \cap N_I^{12}|)\).
\(|N_I^{03} \cap N_I^{12}|\) is the set of elements that are \(I\) on all 4 qubits, which is just \(I\) (1 element).
So, \(N_{Q_{03}P_{12}} = 64 - (4 + 1 - 1) = 64 - 4 = 60\).
This term contributes \(\left(\frac{p}{15}\right)^2 \times 60\).
Summing these contributions for \(\text{Tr}(\rho_{post})\):
\[
\text{Tr}(\rho_{post}) = (1-p)^2 \times 1 + (1-p)\frac{p}{15} \times 3 + (1-p)\frac{p}{15} \times 0 + \left(\frac{p}{15}\right)^2 \times 60.
\]
\[
\text{Tr}(\rho_{post}) = (1-2p+p^2) + \frac{3p(1-p)}{15} + \frac{60p^2}{225}
\]
\[
\text{Tr}(\rho_{post}) = 1-2p+p^2 + \frac{p-p^2}{5} + \frac{4p^2}{15}
\]
\[
\text{Tr}(\rho_{post}) = 1 - 2p + p^2 + \frac{3p-3p^2}{15} + \frac{4p^2}{15}
\]
\[
\text{Tr}(\rho_{post}) = 1 - 2p + \frac{15p^2+3p-3p^2+4p^2}{15} = 1 - 2p + \frac{3p+16p^2}{15}
\]
This is inconsistent with my previous calculation for the trace. Let’s re-evaluate more carefully.
Let \(N_{A \in N(G_C)}\) be the count of \(O=P_{12}\) that are in \(N(G_C)\) and are non-identity. This was 3.
Let \(N_{B \in N(G_C)}\) be the count of \(O=Q_{03}\) that are in \(N(G_C)\) and are non-identity. This was 0.
Let \(N_{AB \in N(G_C)}\) be the count of \(O=Q_{03}P_{12}\) that are in \(N(G_C)\) and \(Q_{03}, P_{12}\) are non-identity. This was 60.
\[
\text{Tr}(\rho_{post}) = (1-p)^2 \times 1 \\ + (1-p)\frac{p}{15} \sum_{P_{12} \ne I} \text{Tr}(P_{12}|\Psi\rangle\langle\Psi|P_{12} P_C) \\ + (1-p)\frac{p}{15} \sum_{Q_{03} \ne I} \text{Tr}(Q_{03}|\Psi\rangle\langle\Psi|Q_{03} P_C) \\ + \left(\frac{p}{15}\right)^2 \sum_{P_{12} \ne I} \sum_{Q_{03} \ne I} \text{Tr}(P_{12}Q_{03}|\Psi\rangle\langle\Psi|Q_{03}P_{12} P_C).
\]
The first sum is \(N_{A \in N(G_C)} = 3\). These are \(X_A X_B, Z_A Z_B, Y_A Y_B\).
The second sum is \(N_{B \in N(G_C)} = 0\).
The third sum is \(N_{AB \in N(G_C)} = 60\).
\[
\text{Tr}(\rho_{post}) = (1-p)^2 + (1-p)\frac{p}{15} \times 3 + \left(\frac{p}{15}\right)^2 \times 60.
\]
\[
\text{Tr}(\rho_{post}) = (1 - 2p + p^2) + \frac{3p-3p^2}{15} + \frac{60p^2}{225}
\]
\[
\text{Tr}(\rho_{post}) = 1 - 2p + p^2 + \frac{p}{5} - \frac{p^2}{5} + \frac{4p^2}{15}
\]
\[
\text{Tr}(\rho_{post}) = 1 - \left(2 - \frac{1}{5}\right)p + \left(1 - \frac{1}{5} + \frac{4}{15}\right)p^2
\]
\[
\text{Tr}(\rho_{post}) = 1 - \frac{9}{5}p + \left(\frac{15 - 3 + 4}{15}\right)p^2
\]
\[
\text{Tr}(\rho_{post}) = 1 - \frac{9}{5}p + \frac{16}{15}p^2.
\]
This value is consistent.
Finally, the logical state fidelity is:
\[
F_{logical} = \frac{F_{physical}}{\text{Tr}(\rho_{post})} = \frac{1 - 2p + \frac{76}{75} p^2}{1 - \frac{9}{5}p + \frac{16}{15}p^2}.
\]
To make the denominators consistent:
\[
F_{logical} = \frac{1 - 2p + \frac{76}{75} p^2}{1 - \frac{135}{75}p + \frac{80}{75}p^2}.
\]
The final answer is \(\boxed{\frac{1 - 2p + \frac{76}{75}p^2}{1 - \frac{9}{5}p + \frac{16}{15}p^2}}\).