Step-by-Step Derivation
This problem asks for the logical state fidelity of a prepared logical \(|00\rangle_{AB}\) state using a given circuit, subject to two-qubit depolarizing noise after each CNOT gate. The fidelity is to be calculated to first order in the physical error probability \(p\).
The fidelity is given by \(F = \langle \psi_L | \rho_{final} | \psi_L \rangle\), where \(|\psi_L\rangle = |00\rangle_L\) is the ideal target state, and \(\rho_{final}\) is the actual state of the 4 data qubits after running the noisy circuit and post-selecting on successful outcomes.
1. Analyze the Ideal Circuit and State
The circuit prepares the logical \(|00\rangle_{AB}\) state. This state is defined by being in the codespace (a \(+1\) eigenstate of stabilizers \(S_1=XXXX\) and \(S_2=ZZZZ\)) and being a \(+1\) eigenstate of the logical operators \(Z_A=ZZII\) and \(Z_B=ZIZI\).
The ideal state produced by the circuit before the final measurement is \(|00\rangle_L |0\rangle_4\). Let’s verify the logical state. A common representation of \(|00\rangle_L\) for this code is \(\frac{1}{\sqrt{2}}(|0000\rangle + |1111\rangle)\).
* \(S_1 |00\rangle_L = XXXX \frac{1}{\sqrt{2}}(|0000\rangle+|1111\rangle) = \frac{1}{\sqrt{2}}(|1111\rangle+|0000\rangle) = |00\rangle_L\).
* \(S_2 |00\rangle_L = ZZZZ \frac{1}{\sqrt{2}}(|0000\rangle+|1111\rangle) = \frac{1}{\sqrt{2}}(|0000\rangle+|1111\rangle) = |00\rangle_L\).
* \(Z_A |00\rangle_L = ZZII \frac{1}{\sqrt{2}}(|0000\rangle+|1111\rangle) = \frac{1}{\sqrt{2}}(|0000\rangle+|1111\rangle) = |00\rangle_L\).
* \(Z_B |00\rangle_L = ZIZI \frac{1}{\sqrt{2}}(|0000\rangle+|1111\rangle) = \frac{1}{\sqrt{2}}(|0000\rangle+|1111\rangle) = |00\rangle_L\).
The state is indeed the logical \(|00\rangle_L\). The noiseless circuit prepares this state correctly, and the ancilla qubit measures \(|0\rangle\).
2. Error Model and Post-selection
Each of the 5 CNOT gates is followed by a two-qubit depolarizing channel. To first order in \(p\), we only need to consider the case of a single error occurring at one of the 5 locations. The probability of any specific non-identity two-qubit Pauli error \(P\) occurring after a given CNOT is \(p/15\).
The state preparation is successful only if:
- The ancilla qubit (qubit 4) is measured to be \(|0\rangle\).
- The final state of the four data qubits is in the codespace (i.e., it has eigenvalue \(+1\) for both stabilizers \(S_1\) and \(S_2\)).
An error leads to a logical infidelity if it is not detected by the above checks, but results in a final state orthogonal to the ideal state \(|00\rangle_L\).
3. Analysis of a Single Pauli Error
Let’s denote the circuit gates as \(U_1=CNOT_{12}, U_2=CNOT_{10}, U_3=CNOT_{23}, U_4=CNOT_{34}, U_5=CNOT_{04}\).
Let a Pauli error \(P^{(k)}\) occur after gate \(U_k\). The error propagates through the subsequent gates \(U_{k+1}, \dots, U_5\). The propagated error on the final state is:
\[
P'_{k} = (U_5 \dots U_{k+1}) P^{(k)} (U_5 \dots U_{k+1})^\dagger
\]
The final state before measurement is \(P'_{k} |00\rangle_L |0\rangle_4\).
Ancilla-based Error Detection:
The ancilla measurement is non-destructive for the ideal state. An error is detected by the ancilla if it flips the ancilla’s state from \(|0\rangle_4\) to \(|1\rangle_4\). This occurs if the propagated error \(P'_{k}\) anticommutes with \(Z_4\). An error is not detected by the ancilla if \([P'_{k}, Z_4] = 0\). Using the Heisenberg picture, this condition is equivalent to \([P^{(k)}, (U_5 \dots U_{k+1})^\dagger Z_4 (U_5 \dots U_{k+1})] = 0\).
Stabilizer-based Error Detection:
After post-selecting on the ancilla measurement, we consider the data qubit part of the state, \(P'_{k, data}|00\rangle_L\). This error is detected if the state is no longer in the codespace, which happens if \(P'_{k, data}\) anticommutes with either \(S_1=XXXX\) or \(S_2=ZZZZ\). An error is not detected by the stabilizers if its data-qubit component commutes with both stabilizers.
Logical Error:
An error is a logical error if it is undetected by both ancilla and stabilizers, and its data-qubit component \(P'_{k, data}\) is a non-trivial logical operator.
4. Identifying Logical Faults
We analyze which of the \(5 \times 15 = 75\) possible first-order errors lead to logical faults. A key observation is that any error operator containing \(X\) or \(Y\) Paulis is ultimately detected. This is because the circuit structure propagates such errors to the control lines of the fault-tolerance CNOTs (\(CNOT_{34}, CNOT_{04}\)), which then copies an X-type error to the ancilla, causing it to flip. Therefore, we only need to consider errors composed of tensor products of \(Z\) and \(I\). For each CNOT location, there are 3 such errors: \(Z_c, Z_t, Z_cZ_t\).
Let’s trace these Z-type errors for each of the 5 CNOT locations.
The propagated error \(P'_{k}\) must commute with the stabilizers on the data qubits and act trivially on the ancilla state \(|0\rangle_4\). All purely Z-type errors will commute through the CNOTs (or propagate to other Z-type errors), never generating X or Y components. Thus, they are never detected by the ancilla measurement. We only need to check for stabilizer detection and whether they act as a logical operator.
-
Location 5 (after \(CNOT_{04}\)): Errors \(P_{04} \in \{Z_0, Z_4, Z_0Z_4\}\).
- \(P'_{5}=P_{04}\). Data-qubit errors are \(Z_0\) (from \(Z_0, Z_0Z_4\)) and \(I\) (from \(Z_4\)).
- \(Z_0\) is a weight-1 error, detected by \(S_1=XXXX\).
- \(I\) is a trivial error.
- Result: 0 logical errors.
-
Location 4 (after \(CNOT_{34}\)): Errors \(P_{34} \in \{Z_3, Z_4, Z_3Z_4\}\). Propagated by \(U_5=CNOT_{04}\).
- \(Z_3 \to Z_3\). Weight-1, detected by \(S_1\).
- \(Z_4 \to Z_0Z_4\). Data error is \(Z_0\). Weight-1, detected by \(S_1\).
- \(Z_3Z_4 \to Z_3(Z_0Z_4) = Z_0Z_3 \otimes Z_4\). Data error is \(E=Z_0Z_3\).
- \([E, S_1]=0\) (anticommutes on 2 qubits). \([E, S_2]=0\). Undetected by stabilizers.
- \(Z_0Z_3\) is a logical operator (\(Z_A Z_B S_2 = (ZZII)(ZIZI)(ZZZZ) = ZIIZ=Z_0Z_3\)).
- Result: 1 logical error (\(Z_3Z_4\)).
-
Location 3 (after \(CNOT_{23}\)): Errors \(P_{23} \in \{Z_2, Z_3, Z_2Z_3\}\). Propagated by \(U_4 U_5\). These commute with \(P_{23}\).
- \(Z_2 \to Z_2\). Detected by \(S_1\).
- \(Z_3 \to Z_3\). Detected by \(S_1\).
- \(Z_2Z_3 \to Z_2Z_3\). Data error is \(E=Z_2Z_3\).
- \([E, S_1]=0, [E, S_2]=0\). Undetected by stabilizers.
- \(Z_2Z_3\) is a logical operator (\(Z_A S_2 = (ZZII)(ZZZZ) = IIZZ=Z_2Z_3\)).
- Result: 1 logical error (\(Z_2Z_3\)).
-
Location 2 (after \(CNOT_{10}\)): Errors \(P_{10} \in \{Z_1, Z_0, Z_1Z_0\}\). Propagated by \(U_3 U_4 U_5\).
- \(P_{10}\) commutes with \(U_3, U_4\). Propagation by \(U_5=CNOT_{04}\).
- \(Z_1 \to Z_1\). Detected by \(S_1\).
- \(Z_0 \to Z_0Z_4\). Data error \(Z_0\). Detected by \(S_1\).
- \(Z_1Z_0 \to Z_1(Z_0Z_4) = Z_1Z_0 \otimes Z_4\). Data error is \(E=Z_1Z_0\).
- \([E, S_1]=0, [E, S_2]=0\). Undetected by stabilizers.
- \(Z_1Z_0\) is the logical operator \(Z_A\).
- Result: 1 logical error (\(Z_1Z_0\)).
-
Location 1 (after \(CNOT_{12}\)): Errors \(P_{12} \in \{Z_1, Z_2, Z_1Z_2\}\). Propagated by \(U_2 U_3 U_4 U_5\). These commute with \(P_{12}\).
- \(Z_1 \to Z_1\). Detected by \(S_1\).
- \(Z_2 \to Z_2\). Detected by \(S_1\).
- \(Z_1Z_2 \to Z_1Z_2\). Data error is \(E=Z_1Z_2\).
- \([E, S_1]=0, [E, S_2]=0\). Undetected by stabilizers.
- \(Z_1Z_2\) is a logical operator (\(-Z_A Z_B = -(ZZII)(ZIZI) = -IZZI \propto Z_1Z_2\) up to a stabilizer). More precisely \(Z_A Z_B = (Z_0Z_1)(Z_0Z_2) = -Z_1Z_2\) in an equivalent logical operator basis. In the given basis, \(Z_A Z_B S_2 = Z_0 Z_3\), not this one. Let’s check \(Z_A Z_B = (ZZII)(ZIZI) = IZZI\). No. Let’s use \(Z_B S_2 = (ZIZI)(ZZZZ) = IZZI = Z_1 Z_2\). Yes, it’s equivalent to \(Z_B\).
- Result: 1 logical error (\(Z_1Z_2\)).
In total, there are 4 single-Pauli errors (out of 75) that cause an undetected logical error.
5. Calculating the Fidelity
To first order in \(p\), the final (normalized and post-selected) state is:
\[
\rho_{final} \approx (1 - N_{fail} \frac{p}{15}) |\psi_L\rangle\langle\psi_L| + \sum_{i=1}^{N_{fail}} \frac{p}{15} E_i |\psi_L\rangle\langle\psi_L| E_i^\dagger
\]
where \(|\psi_L\rangle = |00\rangle_L\), \(N_{fail}=4\) is the number of logical failure modes, and \(E_i\) are the corresponding logical error operators acting on the data qubits.
The fidelity is \(F = \langle\psi_L| \rho_{final} |\psi_L\rangle\):
\[
F \approx (1 - \frac{4p}{15}) + \sum_{i=1}^{4} \frac{p}{15} |\langle\psi_L| E_i |\psi_L\rangle|^2
\]
The crucial point is to evaluate the effect of the logical errors \(E_i\) on the target state \(|00\rangle_L\). All 4 logical errors we found (\(Z_0Z_3, Z_2Z_3, Z_0Z_1, Z_1Z_2\)) are products of logical Z operators (\(Z_A, Z_B\)) and the Z-stabilizer (\(S_2\)).
The state \(|00\rangle_L\) is, by definition, a \(+1\) eigenstate of \(Z_A\), \(Z_B\), and \(S_2\). Therefore, it is also a \(+1\) eigenstate of any product of these operators.
For each logical error \(E_i\), we have:
\[
E_i |00\rangle_L = (+1) |00\rangle_L
\]
The logical errors do not change the state \(|00\rangle_L\). Therefore, \(\langle\psi_L| E_i |\psi_L\rangle = 1\) for all \(i=1, \dots, 4\).
Substituting this into the fidelity expression:
\[
F \approx (1 - \frac{4p}{15}) + \sum_{i=1}^{4} \frac{p}{15} |1|^2
\]
\[
F \approx (1 - \frac{4p}{15}) + \frac{4p}{15}
\]
\[
F \approx 1
\]
The linear term in \(p\) cancels out. This means the logical infidelity is of order \(O(p^2)\) or higher. To first order in \(p\), the fidelity is 1.
Final Answer:
The logical state fidelity is \(F(p) = 1 - O(p^2)\). To first order in \(p\), the fidelity is 1.