We are given: “Suppose that we wish to prepare a logical two-qubit GHZ state \((|00\rangle_{AB}+|11\rangle_{AB})/\sqrt{2}\) in the [[4,2,2]] code. To do so, we use the following state preparation circuit:
\[
(CNOT_{03}) (H_0) (CNOT_{21}) (H_2).
\]
Note: This equation is written in matrix multiplication order, while the quantum operations in the circuit occur in the reverse order (from right-to-left in the above equation). \(H\) is a single-qubit Hadamard gate.
We want: “What is the physical state fidelity of the final physical 4-qubit state at the end of the circuit as a function of the two-qubit gate error rate \(p\)?”
Interpretation: We have a circuit that ideally prepares the logical GHZ state. But each CNOT gate is followed by a two-qubit depolarizing error channel. The error channel: After each CNOT, there is an error that applies one of the 15 non-identity two-qubit Paulis (on the two qubits involved) with probability p/15 each, and with probability 1-p, no error. The Hadamard gates are assumed perfect? The problem says: “each CNOT_{ij} gate in the circuit has a two qubit depolarizing error channel following it”. So only CNOT gates have errors. The Hadamard gates are error-free.
The circuit: The operations in order (from right to left in the given equation) are:
- H_2
- CNOT_{21}
- H_0
- CNOT_{03}
But careful: The given equation: (CNOT_{03}) (H_0) (CNOT_{21}) (H_2). In matrix multiplication order, the rightmost operation is applied first. So the actual circuit order is: Start with initial state? Typically, we start with all qubits in |0>. So initial state: |0000>.
Then apply H_2: That gives: H_2 on qubit 2: |0>2 -> (|0>+|1>)/β2. So state becomes: |00> on qubits 0,1,3 and on qubit2: (|0>+|1>)/β2. So state: 1/β2 (|0000> + |0010>) but careful: labeling: qubits: 0,1,2,3. So state: |q0 q1 q2 q3>. After H_2: state = 1/β2 (|0,0,0,0> + |0,0,1,0>).
Then apply CNOT_{21}: Control qubit 2, target qubit 1. So if qubit2 is 1, flip qubit1. So state becomes: 1/β2 (|0,0,0,0> + |0,1,1,0>).
Then apply H_0: Hadamard on qubit0. So state becomes: H_0 on first qubit:
|0> -> (|0>+|1>)/β2, |1> -> (|0>-|1>)/β2.
But here, qubit0 is always 0? Actually, from previous: state = 1/β2 (|0000> + |0110>). So after H_0:
For first term: |0000> -> 1/β2 (|0000> + |1000>)
For second term: |0110> -> 1/β2 (|0110> + (-1)? Actually careful: H|0> = (|0>+|1>)/β2, H|1> = (|0>-|1>)/β2. But here qubit0 is 0 in both? Actually, in second term, qubit0 is 0? Actually, |0110>: qubit0=0, qubit1=1, qubit2=1, qubit3=0. So H_0 on that gives: (|0>+|1>)/β2 on qubit0? But careful: H applied to |0> gives (|0>+|1>)/β2. So it’s the same: Actually, wait: There is no phase difference because qubit0 is always 0. So then state becomes:
1/β2 * [1/β2 (|0000> + |1000>) + 1/β2 (|0110> + |1110>)] = 1/2 (|0000> + |1000> + |0110> + |1110>).
Then apply CNOT_{03}: Control qubit 0, target qubit 3. So:
For each basis state, if control (qubit0) is 1, then flip qubit3.
So:
|0000>: control=0 -> remains |0000>
|1000>: control=1 -> becomes |1001>? Actually careful: target is qubit3. So |1000> becomes |1001>.
|0110>: control=0 -> remains |0110>
|1110>: control=1 -> becomes |1111>.
So final state: 1/2 (|0000> + |1001> + |0110> + |1111>).
That is the physical state. But is that the logical GHZ state? The logical GHZ state is (|00>_AB + |11>_AB)/β2. But what are the logical states? The code is [[4,2,2]]. The logical operators: X_A = XIXI, X_B=XXII, Z_A=ZZII, Z_B=ZIZI.
We need to check: The state we got: 1/2 (|0000> + |1001> + |0110> + |1111>).
Maybe it is indeed the logical GHZ state? Let’s check: The logical basis states? For the [[4,2,2]] code, the code space is 4-dimensional. The stabilizers are XXXX and ZZZZ. So the code space is the subspace of 4 qubits that are +1 eigenvectors of XXXX and ZZZZ. Our state: Check XXXX on |0000>: XXXX|0000> = |1111>, so not an eigenvector. So these states are not in the code space? But wait: The circuit is supposed to prepare a logical GHZ state. But the logical GHZ state is a state on two logical qubits. That state is encoded into 4 physical qubits. So it should be in the code space? Actually, the code space is the space of states that are stabilized by XXXX and ZZZZ. Our state:
For |0000>: XXXX|0000> = |1111>, so it’s not in the code space. But maybe the state is a superposition that is in the code space? Check: |0000> + |1111> is an eigenvector of XXXX? XXXX(|0000>+|1111>) = |1111>+|0000> = same, so that part is good. But then we also have |1001> and |0110>. Check XXXX on |1001>: XXXX|1001> = |0110>? Because flip all: 1->0,0->1,0->1,1->0 gives: 0,1,1,0 = |0110>. So |1001> and |0110> are swapped by XXXX. So the state 1/2 (|0000>+|1001>+|0110>+|1111>) is not an eigenvector of XXXX because applying XXXX gives 1/2 (|1111>+|0110>+|1001>+|0000>) which is the same actually? Because order: |0000> becomes |1111>; |1001> becomes |0110>; |0110> becomes |1001>; |1111> becomes |0000>. So indeed the state is symmetric. So it is an eigenvector of XXXX with eigenvalue 1. Now check ZZZZ: ZZZZ on |0000> gives +1; on |1001>: Z on qubit0: -1, on qubit1: +1, on qubit2: +1, on qubit3: -1? Actually careful: ZZZZ means apply Z on each qubit. So for |1001>, the phase: qubit0: 1 -> phase -1; qubit1: 0 -> phase +1; qubit2: 0 -> phase +1; qubit3: 1 -> phase -1; so product = (-1)(+1)(+1)(-1)= +1. For |0110>: qubit0:0 -> +1; qubit1:1 -> -1; qubit2:1 -> -1; qubit3:0 -> +1; product = (+1)(-1)(-1)(+1)= +1. For |1111>: all ones: (-1)^4=+1. So indeed the state is in the code space. So it is a valid encoded state. And it is the GHZ state? The logical GHZ state is (|00>_AB + |11>_AB)/β2. We need to check what are the logical basis states. The logical operators: X_A = XIXI, X_B=XXII, Z_A=ZZII, Z_B=ZIZI.
Let’s find the logical basis states. The code space is 4-dimensional. We want states that are eigenvectors of Z_A and Z_B. Z_A = ZZII. So its eigenvalues: For a state in the code space, Z_A gives Β±1. Similarly Z_B = ZIZI.
Our state: 1/2 (|0000>+|1001>+|0110>+|1111>). Compute Z_A on this state: Z_A = Z on qubit0 and qubit1.
For |0000>: Z_A gives +1.
|1001>: qubit0:1 -> -1, qubit1:0 -> +1, so product -1.
|0110>: qubit0:0 -> +1, qubit1:1 -> -1, so product -1.
|1111>: qubit0:1 -> -1, qubit1:1 -> -1, product +1.
So the state is not an eigenvector of Z_A. But it is the GHZ state which is a superposition of |00> and |11> logical. So it should be that if we measure Z_A and Z_B, we get either both +1 or both -1. Check Z_B = ZIZI:
|0000>: Z on qubit0: +1, Z on qubit2: +1, so +1.
|1001>: qubit0: -1, qubit2: 0 -> +1, so -1.
|0110>: qubit0: 0 -> +1, qubit2: 1 -> -1, so -1.
|1111>: qubit0: -1, qubit2: -1, so +1.
So indeed, the state is such that Z_A and Z_B are correlated: They are both +1 for the first and last terms, and both -1 for the middle two terms. So if we define logical |00> as the state that is +1 eigenvector of Z_A and Z_B, and |11> as the state that is -1 eigenvector of Z_A and Z_B, then our state is (|00> + |11>)/β2. So it is the GHZ state. So the circuit indeed prepares the logical GHZ state.
Now, we want: “What is the physical state fidelity of the final physical 4-qubit state at the end of the circuit as a function of the two-qubit gate error rate p?”
Interpretation: The circuit has two CNOT gates: CNOT_{21} and CNOT_{03}. Each CNOT gate is followed by a depolarizing error channel. So the actual process is:
Start with |0000>.
Apply H_2 (perfect).
Then apply CNOT_{21} but then followed by error channel on qubits {2,1}? Actually careful: “each CNOT_{ij} gate in the circuit has a two qubit depolarizing error channel following it”. So after CNOT_{21}, we apply an error operation on qubits 2 and 1. That error is: with probability 1-p, identity; with probability p, one of the 15 Pauli errors (non-identity two-qubit Paulis) chosen uniformly. So that error is applied to the state.
Then apply H_0 (perfect).
Then apply CNOT_{03} followed by error channel on qubits {0,3}.
We want the fidelity of the final state (after these operations, including errors) to the ideal state (which is the state we computed without errors). Fidelity is defined as F = <Ο_ideal| Ο |Ο_ideal> where Ο is the actual density matrix.
We assume that the errors are stochastic and independent. So we can compute the evolution as: The circuit is a sequence of operations. The errors occur after each CNOT. So we can compute the effect of errors on the state. Since the errors are Pauli errors, and the circuit is Clifford (Hadamard and CNOT are Clifford), the entire process will map Pauli errors to Pauli errors. But careful: The errors occur after the gates. So we can compute the overall effect as: The ideal circuit U = U_4 U_3 U_2 U_1, where U_1 = H_2, U_2 = CNOT_{21}, U_3 = H_0, U_4 = CNOT_{03}. But then after U_2, we have an error E2 on qubits {2,1} chosen from the set of 15 Paulis (including identity with probability 1-p, and each of the 15 with probability p/15). And after U_4, we have an error E4 on qubits {0,3} similarly.
So the actual final state is: Ο = average over E2 and E4 of [U_4 E4 U_3 U_2 E2 U_1 |0><0| U_1^\dagger E2^\dagger U_2^\dagger U_3^\dagger E4^\dagger U_4^\dagger]. But since the errors are Pauli, they are unitary. So the final state is a mixture of states of the form U_ideal * (some Pauli error propagated through the circuit) applied to |0>. But careful: The order: Actually, the circuit is:
State after step1: |Ο1> = H_2 |0>.
Then step2: Apply CNOT_{21} to get |Ο2> = CNOT_{21} |Ο1>.
Then error E2 on qubits {2,1} gives: |Ο2’> = E2 |Ο2>.
Then step3: Apply H_0: |Ο3> = H_0 |Ο2’>.
Then step4: Apply CNOT_{03}: |Ο4> = CNOT_{03} |Ο3>.
Then error E4 on qubits {0,3} gives: |Ο_f> = E4 |Ο4>.
So the overall transformation is: |Ο_f> = E4 * CNOT_{03} * H_0 * E2 * CNOT_{21} * H_2 |0>.
And U_ideal = CNOT_{03} * H_0 * CNOT_{21} * H_2.
So if there were no errors, we get |Ο_ideal>.
With errors, we get: |Ο_f> = (E4) * (CNOT_{03} H_0) * E2 * (CNOT_{21} H_2) |0>? But careful: The order: Actually, it’s:
U_ideal = CNOT_{03} * H_0 * CNOT_{21} * H_2.
And with errors:
Actual = E4 * CNOT_{03} * H_0 * E2 * CNOT_{21} * H_2.
So if we define V = CNOT_{03} * H_0, then actual = E4 * V * E2 * V^{-1} * (V * CNOT_{21} * H_2) = E4 * V * E2 * V^{-1} * U_ideal? Not exactly: Because V * CNOT_{21} * H_2 = CNOT_{03} * H_0 * CNOT_{21} * H_2 = U_ideal. So indeed, actual = E4 * (CNOT_{03} H_0) * E2 * (H_0^\dagger CNOT_{03}^\dagger) * U_ideal. So the error becomes: overall error operator = E4 * (CNOT_{03} H_0) * E2 * (H_0^\dagger CNOT_{03}^\dagger). Let’s denote that as O = E4 * U_{mid} * E2 * U_{mid}^\dagger, where U_{mid} = CNOT_{03} H_0? But careful: Actually, check:
We have: actual = E4 * CNOT_{03} * H_0 * E2 * CNOT_{21} * H_2.
And U_ideal = CNOT_{03} * H_0 * CNOT_{21} * H_2.
So if we multiply U_ideal by something from the left? Actually, note that CNOT_{21} * H_2 is not necessarily the inverse of something? Alternatively, we can compute the effect of errors by propagating them through the subsequent gates. That might be easier:
We have two error locations: after CNOT_{21} and after CNOT_{03}.
Let’s denote the Pauli errors:
E2 is on qubits {2,1}. It is one of the 15 Pauli operators on these two qubits (excluding identity). But note: The Pauli group on two qubits: They are of the form P = Ο_a β Ο_b, where Ο_a, Ο_b β {I, X, Y, Z} but not both I. So there are 15.
Similarly, E4 is on qubits {0,3}.
We want the fidelity F = average over E2 and E4 of |<Ο_ideal| Ο_actual>|^2. But careful: The actual state is pure if we fix E2 and E4. But then we average the fidelity? Actually, fidelity is defined as F = <Ο_ideal| Ο |Ο_ideal> where Ο is the mixed state from the process. And Ο = sum_{E2, E4} (probability) |Ο(E2,E4)><Ο(E2,E4)|. So then F = sum_{E2,E4} p(E2) p(E4) |<Ο_ideal|Ο(E2,E4)>|^2.
So we need to compute for each possible error pattern, the overlap between the ideal state and the state obtained with that error. And then average.
Since the circuit is Clifford, the effect of a Pauli error propagated through the subsequent Clifford gates becomes another Pauli operator on the final state. Specifically, if we have an error E inserted at some point, then the overall state becomes U_ideal * (U_ideal^\dagger * (error propagated) * U_ideal) |0>? Actually, let’s do it step by step.
We have: |Ο_ideal> = U |0> where U = CNOT_{03} H_0 CNOT_{21} H_2.
And |Ο_actual> = E4 * CNOT_{03} * H_0 * E2 * CNOT_{21} * H_2 |0>.
So |Ο_actual> = E4 * (CNOT_{03} H_0) * E2 * (CNOT_{03} H_0)^\dagger * U |0>? Check: U = CNOT_{03} H_0 CNOT_{21} H_2. So CNOT_{21} H_2 = (H_0^\dagger CNOT_{03}^\dagger) U? That would be if CNOT_{03} H_0 is invertible? Actually, note: U = (CNOT_{03} H_0) (CNOT_{21} H_2). So then CNOT_{21} H_2 = (CNOT_{03} H_0)^\dagger U. So then
|Ο_actual> = E4 * (CNOT_{03} H_0) * E2 * (CNOT_{03} H_0)^\dagger U |0> = E4 * U_{mid} * E2 * U_{mid}^\dagger * U |0>, where U_{mid} = CNOT_{03} H_0.
So then |Ο_actual> = (E4 * U_{mid} * E2 * U_{mid}^\dagger) |Ο_ideal>.
So the error operator on the ideal state is O = E4 * (U_{mid} E2 U_{mid}^\dagger). And note that U_{mid} is a Clifford operation (it is a product of H on qubit0 and CNOT on qubits 0 and 3). So it will map Pauli operators to Pauli operators. So let F = U_{mid} E2 U_{mid}^\dagger. Then F is a Pauli operator on the 4 qubits? But careful: E2 acts on qubits {2,1} only. U_{mid} = CNOT_{03} H_0. That acts on qubits 0 and 3? Actually, CNOT_{03} acts on qubits 0 and 3. H_0 acts on qubit0. So U_{mid} does not act on qubits 1 and 2. So then U_{mid} E2 U_{mid}^\dagger = E2 itself? Because E2 acts on qubits 1 and 2, and U_{mid} acts on qubits 0 and 3, so they commute? Actually, check: U_{mid} = CNOT_{03} H_0. This operator acts on qubits 0 and 3. E2 acts on qubits 2 and 1. These are on disjoint sets, so they commute. So indeed, U_{mid} E2 U_{mid}^\dagger = E2. So then O = E4 * E2. So the overall error is simply the product of the two errors? But wait, is that correct? Let’s check carefully:
We have: |Ο_actual> = E4 * CNOT_{03} * H_0 * E2 * CNOT_{21} * H_2 |0>.
And |Ο_ideal> = CNOT_{03} * H_0 * CNOT_{21} * H_2 |0>.
So if E2 and E4 commute with the subsequent operations? Actually, careful: E2 acts on qubits 1 and 2. After E2, we apply H_0. H_0 acts on qubit0, so it commutes with E2 because they act on different qubits. Then we apply CNOT_{03}. That acts on qubits 0 and 3. That also commutes with E2 because E2 acts on qubits 1 and 2. So indeed, we can move E2 to the right through H_0 and CNOT_{03}? But careful: The order: Actually, we have: CNOT_{03} * H_0 * E2. Since E2 commutes with H_0 and CNOT_{03} (because they act on disjoint sets), we have CNOT_{03} * H_0 * E2 = E2 * CNOT_{03} * H_0. So then
|Ο_actual> = E4 * E2 * CNOT_{03} * H_0 * CNOT_{21} * H_2 |0> = E4 * E2 * |Ο_ideal>.
So indeed, the overall effect is that the final state is simply the ideal state acted upon by the product of the two errors: E_total = E4 * E2. But wait: Check: E2 is applied after CNOT_{21} but before H_0. And we argued that E2 commutes with H_0 and CNOT_{03} because they act on different qubits. That is true if E2 acts only on qubits 1 and 2. And E4 acts on qubits 0 and 3. So indeed, they commute with each other? Actually, E2 and E4 act on disjoint sets, so they commute. So then the final state is: |Ο_actual> = E4 E2 |Ο_ideal>.
But wait: Is that always true? Check with a specific basis: For example, suppose E2 = X on qubit2. Then after CNOT_{21}, we have state: 1/β2 (|0000> + |0110>). Then E2 (X on qubit2) gives: 1/β2 (|0010> + |0100>). Then H_0: gives: 1/β2 (1/β2(|0010>+|1010>) + 1/β2(|0100>+|1100>)) = 1/2 (|0010>+|1010>+|0100>+|1100>). Then CNOT_{03}: control qubit0, target qubit3.
For |0010>: control=0 -> remains |0010>
|1010>: control=1 -> becomes |1011>
|0100>: control=0 -> remains |0100>
|1100>: control=1 -> becomes |1101>
So state becomes: 1/2 (|0010>+|1011>+|0100>+|1101>).
Then E4: say E4 = I? Then that is the state.
Now, if we instead take E2 and move it to the end: E2 = X on qubit2. And then apply that to the ideal state? The ideal state is: 1/2 (|0000>+|1001>+|0110>+|1111>). Applying X on qubit2 gives: 1/2 (|0010>+|1011>+|0100>+|1101>). That matches. So indeed, the errors simply multiply at the end. So the overall effect is that the final state is:
|Ο_f> = E_total |Ο_ideal>, where E_total = E4 * E2, and E2 and E4 are independent Pauli errors on their respective pairs. But careful: There is also the possibility that E2 or E4 is identity. So overall, the error is a Pauli operator on the 4 qubits that is a product of an operator on qubits {1,2} and an operator on qubits {0,3}. And these errors occur with probabilities:
For E2: probability of identity: 1-p; probability of each non-identity Pauli on qubits {2,1}: p/15.
For E4: similarly.
And they are independent.
So then the fidelity F = average over E2, E4 of |<Ο_ideal| E_total |Ο_ideal>|^2.
But careful: That is if the state is pure. But note: E_total is a Pauli operator. So we need to compute: For each Pauli operator P on the 4 qubits (which is a product of a Pauli on qubits {1,2} and a Pauli on qubits {0,3}), what is |<Ο_ideal| P |Ο_ideal>|^2? And then average over the distribution of P.
So we need to compute: For a given Pauli operator P (which acts on the 4 qubits), what is the overlap <Ο_ideal| P |Ο_ideal>? Since |Ο_ideal> is a specific state. But note: |Ο_ideal> is not necessarily a stabilizer state of the Pauli group? Actually, it is a stabilizer state? It is the GHZ state in the code. But it is a state in the code space. The code space is stabilized by XXXX and ZZZZ. So any Pauli operator that is in the stabilizer will act as identity on |Ο_ideal>. Also, Pauli operators that are logical operators? But careful: The state is not necessarily an eigenvector of all logical operators? Actually, the GHZ state is (|00>+|11>)/β2. That state is not an eigenvector of, say, Z_A alone? But it is an eigenvector of Z_A Z_B? Actually, check: Z_A Z_B? For our state, Z_A and Z_B are correlated: They are both +1 or both -1. So Z_A Z_B gives +1. But individually, they are not fixed. So we need to compute the expectation values.
Maybe we can compute directly:
|Ο_ideal> = 1/2 (|0000> + |1001> + |0110> + |1111>).
We want <Ο_ideal| P |Ο_ideal> for a Pauli operator P. P is a tensor product of Paulis on each qubit: P = P0 β P1 β P2 β P3, where each P_i is I, X, Y, Z. But note: Our errors come from two independent sets: qubits {1,2} and qubits {0,3}. But anyway.
We can compute:
<Ο_ideal| P |Ο_ideal> = (1/4) * [ <0000|P|0000> + <0000|P|1001> + … actually careful: It is sum_{a,b,c,d} where a,b,c,d are the four basis states? Actually, it’s easier:
|Ο_ideal> = 1/2 (|A> + |B> + |C> + |D>) where
A = |0000>, B = |1001>, C = |0110>, D = |1111>.
So <Ο_ideal| P |Ο_ideal> = 1/4 [ + + … + ].
But note: P is a Pauli operator. It will map computational basis states to other computational basis states up to a phase. So the matrix elements are zero unless P maps one basis state to another exactly. So we need to consider for each P, which pairs of these basis states are connected by P. And then sum the phases.
Alternatively, we can note that the ideal state is a stabilizer state? Actually, what is the stabilizer of |Ο_ideal>? It is the code stabilizer plus something that distinguishes the GHZ state from other states in the code. The code stabilizer is generated by XXXX and ZZZZ. So these stabilize |Ο_ideal>? Check: XXXX|Ο_ideal> = |Ο_ideal> as we computed. ZZZZ|Ο_ideal> = |Ο_ideal> as computed. So these are stabilizers. Also, what about Z_A? That is ZZII. That does not stabilize because it gives different phases on different terms? Actually, check: ZZII on |0000> gives +1, on |1001> gives? qubit0:1 -> -1, qubit1:0 -> +1, so -1. So not stabilizer. But maybe there is another operator? The GHZ state is stabilized by X_A X_B? That is XIXI * XXII = XXXI? That is not a Pauli? Actually, X_A X_B = (XIXI)(XXII) = X_{0}? Let’s compute: X_A = XIXI, so on qubits: qubit0: X, qubit1: I, qubit2: X, qubit3: I. X_B = XXII, so on qubits: qubit0: X, qubit1: X, qubit2: I, qubit3: I. Their product: qubit0: XX = I, qubit1: IX = X, qubit2: XI = X, qubit3: II = I. So X_A X_B = IXXI. That applied to |Ο_ideal>? For |0000>, IXXI gives |0110>? That is not an eigenvector. So maybe it’s not a stabilizer state in the usual sense? But it is a Clifford state because it is prepared by a Clifford circuit. So it is a stabilizer state of some subgroup of the Pauli group. The stabilizer of |Ο_ideal> should have 4 generators (for 4 qubits, stabilizer states have stabilizer group of size 2^4=16). So we can find the stabilizers. They are:
S1 = XXXX
S2 = ZZZZ
S3 = ?
Maybe we can find them by: The circuit: U = CNOT_{03} H_0 CNOT_{21} H_2. And initial state is |0000>. So the stabilizers of the initial state are: Z0, Z1, Z2, Z3. Then conjugated by U, we get the stabilizers of the final state. So:
For initial stabilizer: Z0 -> U Z0 U^\dagger. But that might be messy.
Maybe it’s easier to compute the overlap directly.
We want: F(P) = |<Ο_ideal| P |Ο_ideal>|^2.
Since P is a Pauli, it will either commute or anticommute with the stabilizers? But careful: The state is not necessarily an eigenvector of all Paulis? But if P is in the stabilizer group of |Ο_ideal>, then P|Ο_ideal> = |Ο_ideal>, so overlap = 1.
If P is not in the stabilizer, then it might send |Ο_ideal> to an orthogonal state? But not necessarily: For example, consider a GHZ state on two qubits: (|00>+|11>)/β2. Then the Pauli X on one qubit: X1 gives (|10>+|01>)/β2, which is orthogonal to the original. But what about Z1? Z1 gives (|00> - |11>)/β2, which is also orthogonal. So for the two-qubit GHZ, any Pauli that is not identity and not a stabilizer? Actually, the stabilizers of the two-qubit GHZ are XX and ZZ? Actually, for two qubits, the GHZ state is stabilized by XX and -ZZ? Actually, check: (|00>+|11>)/β2: XX gives (|11>+|00>)= same, so stabilizer. ZZ gives (|00> + (-1)(-1)? Actually, ZZ: on |00> gives +1, on |11> gives (+1)(+1)=1? Wait, careful: ZβZ: |00> -> 1, |11> -> (11)=1, so actually ZZ also stabilizes? But then what about ZβI? That gives (|00> - |11>)/β2, which is orthogonal. So indeed, for the two-qubit GHZ, any Pauli that is not in the stabilizer group gives zero overlap. But is that true for our 4-qubit state? Possibly yes because it is a Clifford state. In fact, for any stabilizer state, if a Pauli operator is not in the stabilizer group, then its expectation value is 0. But wait: There is also the possibility that the Pauli operator is a logical operator? But then it might have expectation value Β±1? For example, in a logical state, if the state is an eigenvector of a logical operator, then that logical operator will have expectation value Β±1. But careful: The stabilizer group of a state is the set of Paulis that act as identity on the state. For a logical state, say |0>_L, the stabilizer group is the code stabilizer plus maybe something like Z_L? Actually, for a logical state, the stabilizer group is only the code stabilizer. Because Z_L does not stabilize |0>_L? Actually, if |0>_L is defined as the +1 eigenvector of Z_L, then Z_L|0>_L = |0>_L, so it is a stabilizer. But then the stabilizer group of a logical state is larger than the code stabilizer? Actually, the code space is 2^k dimensional. A specific state in that code space is not stabilized by all logical operators. For example, for a single qubit code, the code space is 2-dimensional. The stabilizer of a state in that code space is not the whole code stabilizer because the code stabilizer is only the operators that fix every state in the code. For a logical state, say |0>_L, it is an eigenvector of Z_L, but Z_L is not in the stabilizer of the code because it acts as -1 on |1>_L. So the stabilizer group of the state |0>_L is actually the code stabilizer itself? Actually, check: For a stabilizer code, the stabilizer group S is a subgroup of the Pauli group. The code space is the common +1 eigenspace of S. But if we take a particular state |Ο> in the code space, it might be an eigenvector of some Pauli operator that is not in S, but that operator will not necessarily act as identity on all states in the code. So the stabilizer of the state |Ο> is actually larger than S if |Ο> is a stabilizer state? Actually, consider a single qubit: The state |0> has stabilizer {I, Z}. But if we encode |0> into a code, say the repetition code for 3 qubits: |0>_L = |000>, then the stabilizer of the code is {ZZI, IZZ}. But the state |000> is also stabilized by ZZZ? Actually, ZZZ|000> = |000>, so ZZZ is in the stabilizer of the state? But ZZZ is not in the stabilizer of the code because it is not generated by ZZI and IZZ? Actually, for the repetition code, the stabilizer is indeed generated by ZZI and IZZ, and then ZZZ = (ZZI)(IZZ) so it is in the group. So actually, the stabilizer of the state |000> is the whole stabilizer group of the code? But then what about logical X? X_L = XXX. That does not stabilize |000> because XXX|000> = |111>. So indeed, for a logical basis state, the stabilizer is the code stabilizer. But our state is a superposition: (|00>_L + |11>_L)/β2. That state is not stabilized by Z_A or Z_B individually. But it might be stabilized by some other operators. Let’s try to find the stabilizers of |Ο_ideal>.
We know that XXXX and ZZZZ stabilize it. What else?
Consider the operator: Z_A Z_B = (ZZII)(ZIZI) =? Actually, careful: Z_A = ZZII, Z_B = ZIZI. Their product: On qubit0: ZZ = I, qubit1: ZI = Z, qubit2: IZ = Z, qubit3: I*I = I. So Z_A Z_B = IZZI. Does that stabilize? Apply IZZI to |Ο_ideal>:
|0000> -> IZZI gives: qubit1: Z on 0 -> +1, qubit2: Z on 0 -> +1, so remains.
|1001> -> qubit1: Z on 0 -> +1, qubit2: Z on 0 -> +1, so remains.
|0110> -> qubit1: Z on 1 -> -1, qubit2: Z on 1 -> -1, product = +1, so remains.
|1111> -> qubit1: Z on 1 -> -1, qubit2: Z on 1 -> -1, product = +1, so remains.
So IZZI stabilizes. So that is a stabilizer.
Next, what about X_A X_B? We computed X_A X_B = (XIXI)(XXII) =? Let’s do carefully:
X_A = Ο_X on qubit0, I on qubit1, Ο_X on qubit2, I on qubit3.
X_B = Ο_X on qubit0, Ο_X on qubit1, I on qubit2, I on qubit3.
Their product: qubit0: X * X = I, qubit1: I * X = X, qubit2: X * I = X, qubit3: I * I = I. So X_A X_B = IXXI. Check on |Ο_ideal>:
IXXI on |0000> gives: qubit1: X on 0 -> |1>, qubit2: X on 0 -> |1>, so becomes |0110>.
|0110> becomes: qubit1: X on 1 -> |0>, qubit2: X on 1 -> |0>, so becomes |0000>.
Similarly, |1001> becomes? IXXI on |1001>: qubit1: X on 0 -> |1>, qubit2: X on 0 -> |1>, so becomes |1111>.
|1111> becomes: qubit1: X on 1 -> |0>, qubit2: X on 1 -> |0>, so becomes |1001>.
So IXXI actually swaps the first and third terms and swaps the second and fourth terms. So IXXI does not stabilize individually, but it might be that the state is an eigenvector if the coefficients are the same? Actually, |Ο_ideal> = 1/2 (|0000>+|1001>+|0110>+|1111>). Under IXXI, it becomes 1/2 (|0110>+|1111>+|0000>+|1001>) = same. So IXXI also stabilizes. So we have stabilizers: S1 = XXXX, S2 = ZZZZ, S3 = IZZI, S4 = IXXI. Check if these are independent? They are all commuting?
XXXX commutes with IZZI? X and Z anticommute on same qubit? But here IZZI acts on qubits 1 and 2. XXXX acts on all qubits. On qubit1, X and Z anticommute, so overall: sign = (-1)^(number of qubits where both are non-I? Actually, careful: XXXX and IZZI: On qubit1: X and Z anticommute, so product gives a minus sign. On qubit2: X and Z anticommute, so another minus sign. So overall, they commute because two minuses give plus. So yes.
So the stabilizer group of |Ο_ideal> is generated by these 4. That group has 16 elements. So indeed, |Ο_ideal> is a stabilizer state. So then for any Pauli operator P, if P is in the stabilizer group, then <Ο_ideal| P |Ο_ideal> = 1. If P is not in the stabilizer group, then it will map |Ο_ideal> to an orthogonal state, so the overlap is 0. But wait: There is also the possibility that P is exactly the negative of a stabilizer? But Pauli operators are Hermitian and have eigenvalues Β±1. But if P = -S for some stabilizer S, then P|Ο_ideal> = -|Ο_ideal>, so then overlap = -1, but the fidelity squared is still 1? Actually, fidelity is |<Ο_ideal|P|Ο_ideal>|^2. So if P = -S, then that gives 1 as well. So actually, if P is in the set of Paulis that are Β±1 times a stabilizer, then the overlap magnitude is 1. But careful: The stabilizer group itself is a subgroup of the Pauli group. But note: If S is a stabilizer, then -S is not in the stabilizer group because stabilizer group is defined as those operators that act as +1. But if we consider the set of operators that leave the state invariant up to a phase, that set is actually the stabilizer group multiplied by phases? Actually, for a stabilizer state, the state is an eigenvector of all elements of the stabilizer group. But if we take a Pauli operator that is exactly -S, then it will give -1. But then the overlap is -1, so the fidelity squared is 1. So indeed, if P is such that P|Ο_ideal> = Β±|Ο_ideal>, then |<Ο_ideal|P|Ο_ideal>|^2 = 1. And if P is not in that set, then the state P|Ο_ideal> is orthogonal to |Ο_ideal>, so overlap = 0.
So we need to determine: For a given Pauli error E_total = E4 * E2, when does it act as Β±1 on |Ο_ideal>? That is equivalent to: E_total must be in the normalizer of the stabilizer group? Actually, it must commute with all stabilizers? Not exactly: For a stabilizer state, a Pauli operator will either commute or anticommute with each stabilizer generator. If it anticommutes with some generator, then it will map the state to an orthogonal state. So the condition for E_total to have nonzero overlap is that it commutes with all stabilizers. But wait: Check: For a stabilizer state with stabilizers S_i, if a Pauli P anticommutes with some S_i, then S_i P|Ο> = - P S_i|Ο> = - P|Ο>, so P|Ο> is an eigenvector of S_i with eigenvalue -1, so it is orthogonal to |Ο> which is eigenvalue +1. So indeed, for P to have nonzero overlap, it must commute with all stabilizers. But is that sufficient? If P commutes with all stabilizers, then P maps the stabilizer group to itself. But then P|Ο> is also a stabilizer state? Actually, if P commutes with all stabilizers, then P|Ο> is in the code space? But not necessarily: For a stabilizer state, the stabilizer group is maximal. So if P commutes with all stabilizers, then P is actually an element of the stabilizer group itself? Is that true? For a stabilizer state, the stabilizer group is a maximal abelian subgroup of the Pauli group. So if a Pauli operator commutes with all elements of that maximal abelian subgroup, then it must be in that subgroup. Actually, that is a property: For a maximal abelian subgroup, the centralizer is the subgroup itself. So indeed, if P commutes with all stabilizers, then P is in the stabilizer group. But wait: There is a nuance: The stabilizer group of a state is defined as the set of Paulis that stabilize the state. But if P commutes with all stabilizers, then P|Ο> is an eigenvector of each stabilizer with eigenvalue +1, so P|Ο> is in the same eigenspace. But since the stabilizer group is maximal, that eigenspace is 1-dimensional. So P|Ο> must be proportional to |Ο>. So indeed, if P commutes with all stabilizers, then P is in the stabilizer group (up to a phase). But careful: What if P is itself a stabilizer? Then it’s fine. So indeed, the condition for <Ο_ideal| P |Ο_ideal> to be nonzero is that P is an element of the stabilizer group of |Ο_ideal>. And then the overlap is Β±1, so fidelity squared is 1.
But wait: Is it possible that P is not in the stabilizer group but still gives a nonzero overlap? For example, if the state is a superposition of two stabilizer states? But here it is a stabilizer state. So yes, it’s exactly that: For a stabilizer state, any Pauli operator either leaves the state invariant (up to a phase) or maps it to an orthogonal state. So then the fidelity for a given error pattern E_total is:
If E_total is in the stabilizer group of |Ο_ideal>, then fidelity = 1.
Otherwise, fidelity = 0.
So then the overall fidelity F = probability that E_total is in the stabilizer group.
Now, E_total = E4 * E2, where E2 is a Pauli on qubits {1,2} and E4 is a Pauli on qubits {0,3}. And these are chosen independently from the set of Paulis on two qubits, with probability: For each, probability of identity = 1-p, and probability of each non-identity Pauli = p/15.
And we want the average fidelity: F = sum_{E2, E4} Prob(E2)Prob(E4) * [1 if E4E2 is in Stabilizer, else 0].
So we need to determine: What are the elements of the stabilizer group of |Ο_ideal>? We have generators:
S1 = XXXX
S2 = ZZZZ
S3 = IZZI
S4 = IXXI
But careful: These generators act on all 4 qubits. But note: Our errors E2 act only on qubits 1 and 2. And E4 act only on qubits 0 and 3. So E_total is a product of an operator on {0,3} and an operator on {1,2}. So it is of the form: P_{03} β P_{12}. And we want this to be in the stabilizer group. The stabilizer group consists of products of these generators. Let’s list the stabilizer group elements? They are all of the form:
S = (XXXX)^a (ZZZZ)^b (IZZI)^c (IXXI)^d, where a,b,c,d β {0,1}. But careful: These generators might not be independent? Actually, they are 4 generators, so there are 16 elements. But we want to know which ones are of the form (operator on qubits 0,3) β (operator on qubits 1,2). That is, they factorize as: (A β B) where A acts on qubits 0 and 3, and B acts on qubits 1 and 2. Because our error E_total is of that form. So we want to find all stabilizer elements that are factorized as such. Let’s compute:
S1 = XXXX = (X on qubit0)(X on qubit1)(X on qubit2)(X on qubit3) = (X0 X3) β (X1 X2)? Actually, careful: XXXX = (X0 β X1 β X2 β X3). That can be written as (X0 β X3) β (X1 β X2) if we reorder? But careful: The tensor product order: qubits: 0,1,2,3. So if we group qubits 0 and 3 together and qubits 1 and 2 together, then XXXX becomes: On the group {0,3}, we have X0 β X3. On the group {1,2}, we have X1 β X2. So S1 = (X0 X3) β (X1 X2). But note: X0 X3 means Pauli X on qubit0 and Pauli X on qubit3. So that is a Pauli on two qubits? But careful: The Pauli group on two qubits: elements are of the form Ο β Ο’ where Ο, Ο’ β {I,X,Y,Z} but with a possible phase. Here X0 X3 is actually X β X. So S1 = (XβX) on {0,3} β (XβX) on {1,2}.
S2 = ZZZZ = (Z0 Z1 Z2 Z3) = (Z0 Z3) β (Z1 Z2) because qubits 1 and 2 are together? Actually, careful: ZZZZ = Z0 β Z1 β Z2 β Z3. Grouping: {0,3} and {1,2}: That gives (Z0 β Z3) β (Z1 β Z2). So S2 = (ZβZ) on {0,3} β (ZβZ) on {1,2}.
S3 = IZZI = on qubits: 0: I, 1: Z, 2: Z, 3: I. So that is: on {0,3}: IβI = I, on {1,2}: ZβZ. So S3 = I β (ZβZ) on {1,2}? But careful: S3 = I_{0} β Z_{1} β Z_{2} β I_{3} = (I0 β I3) β (Z1 β Z2) = I β (ZβZ).
S4 = IXXI = on qubits: 0: I, 1: X, 2: X, 3: I. So S4 = I β (XβX).
So the stabilizer generators in the factored form (grouping qubits as: group A = {0,3} and group B = {1,2}) are:
S1 = (XβX)_A β (XβX)_B
S2 = (ZβZ)_A β (ZβZ)_B
S3 = I_A β (ZβZ)_B
S4 = I_A β (XβX)_B
Now, note that S3 and S4 only act on group B. And S1 and S2 act on both groups.
So any stabilizer element is of the form:
S = (S1)^a (S2)^b (S3)^c (S4)^d, with a,b,c,d β {0,1}.
Let’s compute what that gives on group A and group B.
On group A:
From S1: gives (XβX)^a.
From S2: gives (ZβZ)^b.
From S3 and S4: give I.
So on group A, the operator is: (XβX)^a (ZβZ)^b. But careful: These might not commute? Actually, they are Pauli operators. But note: (XβX) and (ZβZ) commute? Check: On two qubits, XβX and ZβZ: On the same qubit, X and Z anticommute, so on qubit0: X and Z anticommute, on qubit3: X and Z anticommute, so overall they commute because two anticommutations give a factor of (-1)(-1)=1. So yes, they commute. So on group A, the operator is: (XβX)^a (ZβZ)^b. That can be: if a=0,b=0: IβI.
a=1,b=0: XβX.
a=0,b=1: ZβZ.
a=1,b=1: (XβX)(ZβZ) = (XZ)β(XZ) = (iY)β(iY) = - YβY? Actually, careful: XZ = -iY, so XZ β XZ = (-iY)β(-iY) = (-i)(-i) (YβY) = -1 * (YβY) = - YβY. But since we allow phases Β±1, Β±i? But Pauli group elements are defined up to phases? But here we are interested in the action on the state. The phase might matter. But note: The stabilizer group is defined as operators that stabilize the state. So if an operator has a phase, it might not be in the stabilizer group if that phase is not 1. But wait: The stabilizer group is usually defined as a subgroup of the Pauli group modulo phases? Actually, in quantum error correction, the stabilizer group is a set of operators that have eigenvalue +1 on the code space. They are usually taken to be Hermitian. So we want the operators that are actually in the Pauli group with phase Β±1? Actually, Pauli operators are Hermitian if they are products of Pauli matrices with real coefficients. But if we have iY, that is not Hermitian? Actually, Y is Hermitian, so iY is not Hermitian because (iY)^β = -i Y. So typically, we take the Pauli group to be {I, X, Y, Z} with possible factors of Β±1, Β±i. But for stabilizers, we usually choose them to be Hermitian and with eigenvalue +1. So we want the stabilizer elements to be such that when applied to the state, they give +1. So if an operator has a phase of -1, then it would give -1 on the state? But then it would not be a stabilizer. So we need to be careful: The generators we listed: S1 = XXXX. That is Hermitian and gives +1. S2 = ZZZZ gives +1. S3 = IZZI gives +1. S4 = IXXI gives +1. So these generators are chosen with +1 eigenvalue. Then any product of these will also have eigenvalue +1 if the product does not introduce a phase? But careful: When multiplying Pauli operators, sometimes there can be a phase factor. For example, S1 * S2 = (XXXX)(ZZZZ) = (XZ)(XZ)(XZ)(XZ) on each qubit? Actually, better: S1 and S2 commute. So S1 * S2 is just the product. But what is the phase? Each Pauli matrix is Hermitian. X and Z anticommute on the same qubit, but since we have four qubits, the product S1S2 = (X0Z0)(X1Z1)(X2Z2)(X3Z3). On each qubit, XZ = -iY. So S1S2 = (-iY0)(-iY1)(-iY2)(-iY3) = (-i)^4 (Y0Y1Y2Y3) = (1)(Y0Y1Y2Y3) = YYYY. So S1S2 = YYYY. And that should stabilize the state? Check: YYYY on |0000> gives? Y|0> = i|1>, so YYYY|0000> = i^4 |1111> = |1111>. But |1111> is part of the state, but wait, the state is 1/2(|0000>+|1001>+|0110>+|1111>). So YYYY applied to the state: It will map |0000> to |1111>, |1001> to ? Actually, we want to check if YYYY is in the stabilizer. Let’s check directly: YYYY|Ο_ideal> = ?
For |0000>, YYYY gives: Y|0>= i|1>, so overall: i^4 |1111> = |1111>.
For |1001>, Y on qubit0: Y|1> = -i|0>, on qubit1: Y|0>= i|1>, on qubit2: Y|0>= i|1>, on qubit3: Y|1> = -i|0>; product phase: (-i)(i)(i)(-i) = (-i * i = 1) (i * -i = 1) actually careful: (-i)(i) = 1, (i)(-i) = 1, so total 1, so |1001> goes to |0110>? Actually, careful:
Y|1> = -i|0>, so qubit0: from 1 to 0 with factor -i.
qubit1: from 0 to 1 with factor i.
qubit2: from 0 to 1 with factor i.
qubit3: from 1 to 0 with factor -i.
So product phase = (-i)(i)(i)*(-i) = (-i * i = 1) then (1 * i = i) then (i * -i = 1) so actually, let’s do step:
Phase = (-i) * (i) = 1, then 1 * (i) = i, then i * (-i) = 1. So phase = 1. And the state becomes: |0,1,1,0> = |0110>.
Similarly, |0110> goes to |1001> and |1111> goes to |0000>. So indeed, YYYY permutes the terms, so it gives the same state. So S1S2 is indeed a stabilizer. So it’s fine.
But when we factor into groups A and B, we need to be careful with phases. Let’s compute the group A part from S1^a S2^b.
For group A (qubits 0 and 3):
S1 gives: on A: X0 X3.
S2 gives: on A: Z0 Z3.
So S1^a S2^b on A gives: (X0X3)^a (Z0Z3)^b.
For a=1,b=0:ι£ε°±ζ― X0X3.
For a=0,b=1: Z0Z3.
For a=1,b=1: (X0X3)(Z0Z3) = (X0Z0)(X3Z3) = (-iY0)(-iY3) = (-i)(-i) Y0Y3 = (-1) Y0Y3? Actually, (-i)(-i) = i^2 = -1. So that gives - Y0Y3. So the operator on A from S1S2 is - Y0Y3. But wait, we computed S1S2 overall is YYYY. On group A, that would be Y0Y3, and on group B, Y1Y2. So there is a discrepancy: S1S2 should be (Y0Y3) β (Y1Y2). But our factorization from S1^1 S2^1 gives: on A: (X0X3)(Z0Z3) =? Let’s compute carefully:
On qubit0: from S1: X, from S2: Z, so product = XZ = -iY.
On qubit3: similarly, XZ = -iY.
So the product on A is (-iY0)(-iY3) = (i^2) (Y0Y3) = (-1) Y0Y3.
On group B: from S1: X1X2, from S2: Z1Z2, so product = (-iY1)(-iY2) = (-1) Y1Y2.
So overall, S1S2 would be (-1)^2 Y0Y3 Y1Y2 = Y0Y3 Y1Y2. So it’s consistent: Actually, careful: (-1) from group A and (-1) from group B multiply to give +1. So indeed, when we factor, we get:
On A: S1^a S2^b gives:
If (a,b) = (0,0): I
(1,0): X0X3
(0,1): Z0Z3
(1,1): (X0X3)(Z0Z3) =? As computed, on qubit0: XZ = -iY, on qubit3: XZ = -iY, so product = (-i)(-i) Y0Y3 = (-1) Y0Y3. So it is - Y0Y3. But note that -Y0Y3 is not exactly the same as Y0Y3. But when combined with the group B part, we get the overall phase. So we want to know: For an element to be in the stabilizer, it must act as +1 on the state. That means that the overall operator (on both groups) must be exactly one of the stabilizers. But since our errors are separate on groups A and B, we want to know: For a given Pauli on group A (qubits 0,3) and a Pauli on group B (qubits 1,2), when is their product in the stabilizer group? That is equivalent to: There exist a,b,c,d such that:
On group A: The operator is the part from S1^a S2^b (which gives either I, XβX, ZβZ, or -YβY) and on group B: The operator is from S1^a S2^b S3^c S4^d? Actually, careful: The full stabilizer element is:
S = (S1)^a (S2)^b (S3)^c (S4)^d.
On group A, that gives: (XβX)^a (ZβZ)^b.
On group B, that gives: (XβX)^a (ZβZ)^b (ZβZ)^c (XβX)^d = (XβX)^(a+d) (ZβZ)^(b+c).
So the stabilizer elements are exactly those operators that on group A are of the form:
A = (XβX)^a (ZβZ)^b, with a,b β {0,1} but note: For (a,b)=(1,1), we get (XβX)(ZβZ) =? As computed, that equals? Let’s compute explicitly:
On two qubits, label them 0 and 3.
(XβX) means: X on qubit0 and X on qubit3.
(ZβZ) means: Z on qubit0 and Z on qubit3.
Their product: On qubit0: XZ = -iY, on qubit3: XZ = -iY, so the product is (-iY)β(-iY) = (i^2) (YβY) = (-1) (YβY). So indeed, (XβX)(ZβZ) = - YβY.
But wait, could it be that -YβY is actually the same as YβY up to a phase? No, because YβY is Hermitian and its eigenvalues are Β±1. The phase -1 means that if we apply -YβY to a state, it gives the negative of what YβY gives. So they are different operators. But are both in the stabilizer? Let’s check: Is YβY on group A part of a stabilizer? That would require that there is a stabilizer element that on group A is YβY. For that, we need (XβX)^a (ZβZ)^b = YβY. That would require that on each qubit, we have: from a and b, we want the Pauli to be Y. But X^a Z^b: if a=1,b=1, then XZ = -iY, so that gives -iY, not Y. If we take a=1,b=1 and then multiply by a phase? But the stabilizer group is defined as the set of operators that are products of the generators. Those products are determined up to a phase? Actually, the generators are specific operators. So if we compute S1S2, we get: S1S2 = (XXXX)(ZZZZ) =? Let’s compute S1S2 explicitly on each qubit:
On qubit0: X from S1 and Z from S2 gives: XZ = -iY.
On qubit1: X and Z gives -iY.
On qubit2: X and Z gives -iY.
On qubit3: X and Z gives -iY.
So S1S2 = (-i)^4 (Y0Y1Y2Y3) = (1)(Y0Y1Y2Y3) = YYYY. So S1S2 is actually YYYY, not -YYYY. So that means that (XβX)(ZβZ) as computed from the group factorization: On group A, from S1 and S2, we get: (X0X3)(Z0Z3) =? But careful: S1 is X0X1X2X3. When we factor into groups A and B, we write S1 = (X0X3) β (X1X2). But note: (X0X3) is not exactly the same as X0 β X3? Actually, it is: X0X3 means the operator that acts as X on qubit0 and X on qubit3. So that is indeed X0 β X3. So then (X0X3)(Z0Z3) = (X0Z0) β (X3Z3) because they act on different qubits, so it’s a tensor product. And X0Z0 = -iY0, X3Z3 = -iY3, so product = (-i)(-i) (Y0βY3) = (-1)(Y0βY3). So that suggests that the group A part of S1S2 is -Y0Y3. But then the group B part from S1S2 would be (X1X2)(Z1Z2) = similarly -Y1Y2. Then overall, S1S2 would be (-Y0Y3) β (-Y1Y2) = (Y0Y3)(Y1Y2) because (-1)(-1)=1. So indeed, it is consistent: The group A part of S1S2 is -Y0Y3, but when combined with the group B part which is also -Y1Y2, the overall phase is (+1). So when we talk about the stabilizer element itself, it is not factorable into independent conditions on group A and group B because the phase might come from both. So we need to determine: For a given error E_total = E_A β E_B (where E_A acts on qubits 0,3 and E_B acts on qubits 1,2), when is E_A β E_B in the stabilizer group? That means there exist a,b,c,d such that:
E_A β E_B = (S1)^a (S2)^b (S3)^c (S4)^d.
And as computed, the right side is:
On A: (XβX)^a (ZβZ)^b.
On B: (XβX)^(a+d) (ZβZ)^(b+c).
And also there is an overall phase that might be Β±1? But note: The generators are chosen to have +1 eigenvalue. So they are specific operators. So we want exactly that operator (not up to a phase). So we need to compute the actual Pauli operator (including the phase) that results from the product. Let’s compute the stabilizer elements explicitly in terms of their action on groups A and B. We have:
S1 = X0X1X2X3. Write as: (X0X3) β (X1X2). But careful: (X0X3) is actually X0 β X3. So S1 = (X0 β X3) β (X1 β X2). There is no phase here.
S2 = Z0Z1Z2Z3 = (Z0βZ3) β (Z1βZ2).
S3 = I0 Z1 Z2 I3 = (I0βI3) β (Z1βZ2).
S4 = I0 X1 X2 I3 = (I0βI3) β (X1βX2).
Now, any stabilizer element is: S = S1^a S2^b S3^c S4^d. But careful: When multiplying these, we have to take into account that they commute? They do commute. So we can write:
S = (S1^a S2^b) (S3^c S4^d). And note that S3 and S4 only act on group B, and they commute with S1 and S2? They do because they act on different qubits? Actually, S1 and S2 act on both groups, but since S3 and S4 act only on group B, they commute with the group B part of S1 and S2? But careful: S1 has a group B part: X1X2. That commutes with S3? S3 is Z1Z2, and X and Z anticommute on each qubit, so X1X2 and Z1Z2: on qubit1, X and Z anticommute, on qubit2, X and Z anticommute, so they commute overall because (-1)*(-1)=1. So yes, they commute. So we can write:
S = (S1^a S2^b) (S3^c S4^d) = [ (X0X3)^a (Z0Z3)^b ]_A β [ (X1X2)^a (Z1Z2)^b ]_B * [ I_A ] β [ (Z1Z2)^c (X1X2)^d ]_B.
So then overall, on group A, we have: A = (X0X3)^a (Z0Z3)^b.
On group B, we have: B = (X1X2)^a (Z1Z2)^b (Z1Z2)^c (X1X2)^d = (X1X2)^(a+d) (Z1Z2)^(b+c).
Now, what are the possible outcomes on group A?
For a,b β {0,1}:
If (a,b)=(0,0): A = I.
(1,0): A = X0X3.
(0,1): A = Z0Z3.
(1,1): A = (X0X3)(Z0Z3). As computed, on qubit0: XZ = -iY, on qubit3: XZ = -iY, so this product is (-iY0)(-iY3) = (i^2)(Y0Y3) = (-1) Y0Y3. So A = - Y0Y3.
So on group A, the stabilizer elements can be: I, X0X3, Z0Z3, and -Y0Y3.
On group B, we have: Let u = a+d mod 2, and v = b+c mod 2. So u,v β {0,1}. Then B = (X1X2)^u (Z1Z2)^v.
Now, if (u,v)=(0,0): B = I.
(1,0): B = X1X2.
(0,1): B = Z1Z2.
(1,1): B = (X1X2)(Z1Z2) = similarly, = - Y1Y2.
So the stabilizer elements are: S = (A) β (B) with the following possibilities:
A can be: I, X0X3, Z0Z3, -Y0Y3.
B can be: I, X1X2, Z1Z2, -Y1Y2.
But wait, are all these 16 combinations actually stabilizer elements? They come from a,b,c,d with a,b β {0,1} and then u = a+d mod 2, v = b+c mod 2 can be any independent? For example, can we have A = I and B = -Y1Y2? That would require a=0,b=0 so that A=I, and then we need u=1,v=1, so a+d=1 mod2 means d=1, and b+c=1 mod2 means c=1. So yes, that gives S = I β (-Y1Y2) = - I0I3 β Y1Y2. But is that actually a stabilizer? Check: -Y1Y2 on group B. But wait, our generators S3 and S4 give on group B: S3 gives Z1Z2, S4 gives X1X2. Their product S3S4 gives Z1Z2 X1X2 =? That would be? Actually, careful: S3S4 = (IZZI)(IXXI) = I (Z X)(Z X) I = on qubits 1 and 2: ZX on qubit1 gives -iY, on qubit2: ZX gives -iY, so product = (-iY1)(-iY2) = (-1) Y1Y2. So S3S4 = - I0I3 β Y1Y2. So indeed, that is a stabilizer. So yes.
So the stabilizer group consists of all operators of the form:
On group A: either I, X0X3, Z0Z3, or -Y0Y3.
On group B: either I, X1X2, Z1Z2, or -Y1Y2.
But wait: Could there be a stabilizer element that has, say, A = Y0Y3 (without the minus sign)? That would require (a,b)=(1,1) but then we would need an overall phase factor of -1 to turn -Y0Y3 into Y0Y3. But then that would be -S1S2, which is not in the stabilizer because -S1S2 would give -1 times the state? Actually, check: -S1S2|Ο_ideal> = -|Ο_ideal>, so that is not a stabilizer. So indeed, the stabilizer elements are exactly those.
So, for an error E_total = E_A β E_B to be in the stabilizer, we need:
E_A must be one of: I, X0X3, Z0Z3, -Y0Y3.
E_B must be one of: I, X1X2, Z1Z2, -Y1Y2.
But careful: Is it sufficient that E_A and E_B are individually these? Because if E_A is, say, X0X3 and E_B is I, then the product is X0X3 β I, which is indeed a stabilizer (S1 with a=1,b=0,c=0,d=0 gives that). So yes.
So then the condition for fidelity to be 1 is that:
E4 (which acts on group A: qubits 0 and 3) is such that E4 is in the set {I, X0X3, Z0Z3, -Y0Y3}? But wait: E4 is a Pauli error on qubits 0 and 3. But note: E4 is applied as an error after CNOT_{03}. But we determined that the overall effect is that the final state is E4 E2 |Ο_ideal>. And E4 acts on group A and E2 acts on group B. So we need E4 to be one of these four operators on two qubits? But careful: The set of Pauli operators on two qubits (ignoring phases) has 16 elements. But here we are not ignoring phases: The stabilizer condition requires that the actual operator (including phase) is exactly one of these. So for group A, the allowed operators are:
- I (which is identity on both qubits)
- X0X3 (that is, Pauli X on qubit0 and Pauli X on qubit3)
- Z0Z3
- -Y0Y3 (that is, the operator that is -1 * (Y0 β Y3))
Similarly, for group B, the allowed operators are:
- I
- X1X2
- Z1Z2
- -Y1Y2
So then the fidelity is 1 if and only if E4 is in that set and E2 is in that set? But wait: Is it that both must be in these sets independently? Because if E4 is in that set and E2 is in that set, then E4βE2 is in the stabilizer. Conversely, if E4βE2 is in the stabilizer, then necessarily E4 must be one of these and E2 must be one of these? Could it be that E4 is not in that set but E2 is such that the product becomes something? For example, suppose E4 = Y0Y3 (without the minus sign). And suppose E2 = ? For the product to be in the stabilizer, we would need E2 such that Y0Y3 β E2 is in the stabilizer. That would require that on group A, we have Y0Y3, but the stabilizer only has -Y0Y3 on group A. So we would need E2 to contribute a factor of -1. But E2 is a Pauli on group B. The Pauli operators on group B are of the form Β± (something). But can they contribute a factor of -1? For example, if E2 = -I (the operator that is -1 times identity on group B), then E4βE2 = -Y0Y3 β I, which is in the stabilizer? Because stabilizer has -Y0Y3 β I? Check: Is -Y0Y3 β I a stabilizer? That would be if we take a=1,b=1 gives A = -Y0Y3, and then we want B = I. That requires u=0,v=0, so a+d=0 mod2 means d=1 mod2? Actually, if a=1, then d must be 1 to get u=0? Because u = a+d mod2, so if a=1, then to have u=0, we need d=1. And v = b+c, with b=1, to have v=0, we need c=1. So that gives S = S1 S2 S3 S4. Let’s compute S1S2S3S4:
S1S2S3S4 = (XXXX)(ZZZZ)(IZZI)(IXXI) =? We already computed S1S2 = YYYY. And S3S4 = - IβY1Y2? Actually, S3S4 = - I0I3 β Y1Y2. So product = YYYY * (- IβY1Y2) = - YYYY * (IβY1Y2) but careful: YYYY acts on all qubits: on group A: Y0Y3, on group B: Y1Y2. So product = - (Y0Y3)(Y1Y2) * (IβY1Y2) = - Y0Y3 β (Y1Y2 * Y1Y2) = - Y0Y3 β (Y1^2 Y2^2) = - Y0Y3 β (I) because Y^2=I. So indeed, S1S2S3S4 = - Y0Y3 β I. So that is a stabilizer. So wait, that means that if E4 = Y0Y3 (which is not in our list because our list requires -Y0Y3) and if E2 = -I (on group B), then the product is -Y0Y3 β (-I) = Y0Y3 β I? That would be positive? Actually, careful: E2 = -I means the operator is -1 times the identity on qubits 1 and 2. So then E4βE2 = (Y0Y3) β (-I) = - (Y0Y3 β I). And that is exactly the stabilizer we just found: S1S2S3S4 = -Y0Y3 β I. So indeed, if E4 = Y0Y3 and E2 = -I, then the overall error is in the stabilizer. So our condition is not that E4 and E2 are individually in those sets, but rather that the combined operator E4 β E2 is in the stabilizer group. And the stabilizer group consists of operators of the form:
On group A: either I, X0X3, Z0Z3, or -Y0Y3.
On group B: either I, X1X2, Z1Z2, or -Y1Y2.
But wait, could there be a stabilizer element that has, say, on group A: Y0Y3? As we just saw, if we take S1S2S3S4, we got -Y0Y3 β I. So that gives group A = -Y0Y3, not Y0Y3. What about something that gives group A = Y0Y3? That would require an overall minus sign relative to that. For instance, if we take -S1S2S3S4, that would be Y0Y3 β I, but that is not in the stabilizer because it would give -1 times the state? Actually, check: -S1S2S3S4|Ο_ideal> = - (stabilizer action) = -|Ο_ideal>, so that is not a stabilizer. So indeed, the stabilizer group does not contain any operator that has a positive Y0Y3 on group A. So the condition is: E4 β E2 must be one of the 16 stabilizer elements. That means that if we write E4 as a Pauli on two qubits (qubits 0 and 3), it can be any Pauli up to a phase? But careful: The Pauli group on two qubits has 16 elements if we consider the operators themselves (like I, X, Y, Z on each qubit independently) but then multiplied by phases Β±1, Β±i. However, when we talk about errors, they are physical operations. The error channel says: “produces one of the 15 non-identity two-qubit Paulis with equal probability p/15”. What does “non-identity two-qubit Paulis” mean? Typically, it means the set of operators of the form Ο_i β Ο_j where (i,j) is not (0,0) if we label I=0, X=1, Y=2, Z=3. But also, these operators are usually taken to be Hermitian? Actually, the depolarizing channel is usually defined as: With probability p, an error occurs, and the error is chosen uniformly from the set {I,X,Y,Z}β{I,X,Y,Z} excluding the identity. But note: That set has 15 elements. But these 15 elements are not all Hermitian? Actually, they are Hermitian because X, Y, Z are Hermitian. But wait: What about phases? For example, iI is not included because that’s not a Pauli matrix. So the errors are exactly the Pauli matrices (tensor products) with no additional phases. So that means that for a two-qubit error, the possible errors are:
On two qubits, the operators are:
IβI, IβX, IβY, IβZ,
XβI, XβX, XβY, XβZ,
YβI, YβX, YβY, YβZ,
ZβI, ZβX, ZβY, ZβZ.
And the error channel says: with probability 1-p, no error (which is IβI). With probability p, one of the other 15 occurs, each with probability p/15.
So for E4, which acts on qubits 0 and 3, the possible errors are these 16 operators (including identity). But note: They are defined without any additional phase factors. So for example, YβY is one of them. But our stabilizer condition requires that on group A, the operator should be -Y0Y3, not Y0Y3. So if E4 = Y0Y3 (i.e., Y on qubit0 and Y on qubit3), then that is not a stabilizer element by itself. But it could become a stabilizer if combined with an E2 that gives a factor of -1. But wait, can E2 give a factor of -1? E2 is also a Pauli on two qubits (qubits 1 and 2) from the set of 16 operators (IβI, IβX, …, ZβZ). These operators are also defined without any phase factors. So for example, if E2 = IβI, that is identity, so no phase. If E2 = something else, could it contribute a phase? For instance, consider E2 = -I? But -I is not in the set of Pauli errors because the Pauli errors are taken to be the matrices themselves, not multiplied by -1. Because the Pauli group has phases Β±1, Β±i, but the depolarizing channel usually considers the set of Pauli operators that are Hermitian and square to identity? Actually, wait: The Pauli matrices X, Y, Z are Hermitian and square to I. But what about -X? That is also Hermitian and squares to I. So could -X be considered as an error? Typically, the depolarizing channel is defined as: Ο -> (1-p)Ο + (p/15) sum_{P in Pauli, Pβ I} P Ο P. Here the sum is over all Pauli operators that are not identity. But note: If P is a Pauli operator, then -P is also a Pauli operator. But are they considered distinct? For example, on one qubit, the Pauli operators are usually taken as {I, X, Y, Z}. But what about -X? That is not included because it is just a phase times X. However, sometimes the depolarizing channel is defined as: Ο -> (1-p)Ο + (p/3)(XΟX + YΟY + ZΟZ). That does not include -X because -XΟ(-X) = XΟX. So indeed, the errors are considered up to a phase? Actually, careful: The depolarizing channel on a single qubit is: Ο -> (1-p)Ο + (p/3)(XΟX + YΟY + ZΟZ). So if an error occurs, it is equally likely to be X, Y, or Z. But what about -X? That would give the same effect because (-X)Ο(-X) = XΟX. So actually, the error is not sensitive to overall phases. But wait, our analysis here: We are computing the fidelity <Ο|E|Ο>^2. If E and -E are different operators, they could give different results because <Ο|(-E)|Ο> = -<Ο|E|Ο>. But then the fidelity squared is the same. However, if the error channel is defined as: with probability p/15, we apply one of the 15 non-identity Pauli operators, then those 15 areε
·δ½εͺδΊ? They are typically: {IβI, IβX, IβY, IβZ, XβI, XβX, XβY, XβZ, YβI, YβX, YβY, YβZ, ZβI, ZβX, ZβY, ZβZ} but excluding IβI. So that set does not include any operators with a minus sign. So for example, -XβX is not in that set. So then, for E4, the possible outcomes are exactly these 16 operators (with identity having probability 1-p, and each of the 15 others having probability p/15). And these operators are defined without any extra minus signs. So then, for group A, the possible E4 are:
I, X0I3? But careful: E4 acts on qubits 0 and 3. So its possible forms are:
I0I3,
I0X3, I0Y3, I0Z3,
X0I3, X0X3, X0Y3, X0Z3,
Y0I3, Y0X3, Y0Y3, Y0Z3,
Z0I3, Z0X3, Z0Y3, Z0Z3.
But wait: Is that correct? The error is on two specific qubits. So yes, there are 16 operators. But note: They are not all products that act on both qubits necessarily? They can act on only one qubit as well. For example, X0I3 is an error that only affects qubit0.
Similarly, for E2 on qubits 1 and 2, the possible outcomes are the same set:
I1I2,
I1X2, I1Y2, I1Z2,
X1I2, X1X2, X1Y2, X1Z2,
Y1I2, Y1X2, Y1Y2, Y1Z2,
Z1I2, Z1X2, Z1Y2, Z1Z2.
Now, the stabilizer elements we found are:
On group A, they are: I, X0X3, Z0Z3, and -Y0Y3.
On group B, they are: I, X1X2, Z1Z2, and -Y1Y2.
But note: In the list of possible E4, do we have -Y0Y3? No, because -Y0Y3 is not one of the 16. The 16 are: Y0Y3 is there, but not -Y0Y3. So that means that if E4 alone is considered, it can never be exactly -Y0Y3 because that would require a minus sign. However, could it be that E4 is something that when combined with E2 gives an overall minus? For example, if E4 = Y0Y3 and E2 = ? We want E4βE2 to be in the stabilizer. That requires that on group A, we need the operator to be either I, X0X3, Z0Z3, or -Y0Y3. So if E4 = Y0Y3, then to have the product be in the stabilizer, we would need that on group B, E2 contributes a factor of -1. But can E2 contribute a factor of -1? E2 is one of the 16 operators without any inherent minus signs. But wait: What are the actual operators? They are matrices. For example, consider E2 = I1I2. That is identity, so it gives +1. What about E2 = something like? Is there an operator that is actually equal to -I? No, because -I is not in the set because that would be -I1I2, but that is not listed because the listed ones are I1I2 itself. So it seems that the errors are taken from the set of Pauli matrices that are exactly these 16 for each two-qubit pair. They do not include overall minus signs. So then, for E4, the only possibilities that can be part of a stabilizer are those that themselves are exactly one of: I, X0X3, Z0Z3. Because the fourth possibility would be -Y0Y3, but that is not available because available is Y0Y3 itself. What about the possibility of getting a stabilizer element that has, say, on group A: something like X0I3? That is not in the stabilizer because stabilizer elements on group A always involve both qubits simultaneously? Check: Could X0I3 be a stabilizer? That would mean that there is a stabilizer that acts as X on qubit0 and I on qubit3. Is that possible? The stabilizer generators act on both qubits 0 and 3 together because S1 and S2 involve both. So likely not. So for E4 to contribute to a stabilizer, E4 must be either:
E4 = I (identity on both qubits)
E4 = X0X3 (i.e., X on qubit0 and X on qubit3)
E4 = Z0Z3
Or what about E4 = Y0Y3? That would give Y0Y3, but the stabilizer requires -Y0Y3. So if E4 = Y0Y3, then even if E2 is identity, the product is Y0Y3 β I, which is not a stabilizer because the stabilizer has -Y0Y3 β I. What if E2 is something that could multiply to give a minus sign? But as argued, E2 is one of the 16 operators without any minus signs. However, could it be that E2 itself is such that its matrix is actually - something? For example, consider E2 = X1X2. That is listed as X1X2. But wait, could it be that X1X2 is actually equal to - something? No, because X1X2 is defined as the Pauli operator that has X on qubit1 and X on qubit2. There is no minus sign. What about E2 = Y1Y2? That is Y1Y2, not -Y1Y2. So it seems that the errors are exactly these 16 operators for each pair. Therefore, for the product E4βE2 to be in the stabilizer, we need that:
E4 must be one of: I, X0X3, Z0Z3. And then, independently, E2 must be such that the product on group B is one of: I, X1X2, Z1Z2, or -Y1Y2. But wait, could there be a case where E4 is not in {I, X0X3, Z0Z3} but E2 is something that gives an overall phase? For instance, if E4 = Y0Y3, then for the product to be stabilizer, we need E4βE2 to be -Y0Y3 β (something). That would require that on group B, E2 actually is such that when combined with the phase from group A? But group A gives Y0Y3. To turn that into -Y0Y3, we need an overall factor of -1. That overall factor would have to come from group B if group B’s operator is actually -I ( identity times -1). But is -I available as an error? The errors are taken from the set of Pauli matrices on two qubits. That set does not include -I because -I is not one of the 16? Actually, wait: The set of Pauli matrices on n qubits is usually defined as {I, X, Y, Z}βn times phases Β±1, Β±i. But when we say “non-identity two-qubit Paulis”, we usually mean the set of all Pauli operators that are not the identity operator. But careful: There is a difference between the Pauli group and the set of Pauli errors in a depolarizing channel. The depolarizing channel is often defined as: Ο -> (1-p)Ο + (p/15) Ξ£_{P in {I,X,Y,Z}β2 \ {IβI}} P Ο P. In that sum, if P and -P are both included, then they would appear twice. But are they considered distinct? For example, on one qubit, the depolarizing channel is: Ο -> (1-p)Ο + (p/3)(XΟX + YΟY + ZΟZ). Notice that -X is not included because (-X)Ο(-X) = XΟX. So indeed, the errors are taken to be the Pauli matrices themselves, not their negatives. So the set is actually: {I, X, Y, Z} for one qubit, but wait, that set has 4 elements. For two qubits, the set is {I,X,Y,Z}β{I,X,Y,Z} which has 16 elements. But then the depolarizing channel is: Ο -> (1-p)Ο + (p/15) Ξ£_{P β IβI} P Ο P. In that sum, if P appears, then -P does not appear because if P is, say, XβX, then -XβX is a different operator? But does it matter? Consider: (-XβX) Ο (-XβX) = (XβX) Ο (XβX) because the minus signs cancel. So actually, the map Ο -> P Ο P is the same for P and -P. So wait: This is important: The error channel is not that we apply the operator P itself, but rather the quantum operation: Ο -> P Ο P. So if P and -P are different operators, they actually give the same quantum operation because (-P)Ο(-P) = PΟP. So when we talk about the depolarizing channel, the errors are usually considered up to a phase. That is, the set of errors is actually the set of Pauli operators modulo the phase factor of Β±1. Because if you have an operator P and -P, they produce the same effect on the density matrix. So then, should we consider that the errors are actually from the set of 15 distinct Pauli error types? But careful: The problem statement: “each CNOT_{ij} gate has a two qubit depolarizing error channel following it that produces one of the 15 non-identity two-qubit Paulis with equal probability p/15.” The phrase “non-identity two-qubit Paulis” likely means that the errors are taken from the set of Pauli operators on two qubits that are not the identity, but note that if an operator has a overall minus sign, it is still a Pauli operator. However, typically, the depolarizing channel is defined such that the errors are equally likely among the Pauli operators that are not the identity, but since P and -P give the same map, they are usually grouped together. Actually, wait: There are 15 non-identity Pauli operators on two qubits if we consider them up to phase? Let’s check: On one qubit, the non-identity Paulis are usually considered as X, Y, Z. That is 3. On two qubits, the number of Pauli operators that are not the identity (and not considering phases) is actually 4^2 - 1 = 15. But careful: That count comes from: The Pauli group on n qubits has 4^n elements if we ignore phases? Actually, the Pauli group modulo phases is of size 4^n. So for n=2, that is 16. So the non-identity ones are 15. So indeed, the errors are taken from the set of Pauli operators modulo phase. That means that when we say an error occurs, it is actually that we apply some Pauli operator that is representative of its equivalence class under multiplication by Β±1. So then, for example, both XβX and -XβX are actually the same error type because they give the same effect on the state? But careful: When we compute fidelity, we are computing <Ο|P|Ο>. If P is replaced by -P, then that changes the sign. But wait: The fidelity is |<Ο|P|Ο>|^2. So that is the same. However, if the error channel is defined as: with probability p/15, we apply one of the 15 Pauli errors (where each error is considered as an operator that is not the identity up to phase), then does that mean that if the actual error is -P, it is considered the same as P? But then the probability distribution might be such that actually, the chance to get an error that acts as P is p/15, but could it be that sometimes it is P and sometimes -P? However, the depolarizing channel is usually defined as: Ο -> (1-p)Ο + (p/15) Ξ£_{P in Pauli, Pβ I} P Ο P. In that sum, if P and -P are both included, then they would appear twice, but they are actually the same because PΟP = (-P)Ο(-P). So actually, the sum should be over a set of representatives that are not related by phase. Typically, the representatives are chosen such that they are Hermitian and square to I. And for Pauli matrices, we usually take I, X, Y, Z. So then on two qubits, the errors are: all operators of the form Ο_a β Ο_b where (a,b) runs over {0,1,2,3} with (0,0) excluded, and where Ο_0=I, Ο_1=X, Ο_2=Y, Ο_3=Z. So then indeed, the errors are these 15. And note that these representatives are chosen to be exactly these matrices. So then, for example, the error corresponding to YβY is actually the operator YβY itself, not -YβY. So then, for group A, the possible errors E4 are:
IβI,
IβX, IβY, IβZ,
XβI, XβX, XβY, XβZ,
YβI, YβX, YβY, YβZ,
ZβI, ZβX, ZβY, ZβZ.
And these are the 16. And the non-identity ones are the ones where not both are I.
Now, what are the stabilizer elements? They are determined by the generators which are specific operators. Those generators are: S1 = XβXβXβX. But careful: S1 acting on qubits 0 and 3 gives XβX. So that representative is XβX. S2 gives ZβZ on group A. S3 and S4 act only on group B. And then products like S1S2 give: On group A, that would be (XβX)(ZβZ) =? As computed, that equals (-iY)β(-iY) = (-1) YβY. But wait, our representative for YβY is YβY itself. So S1S2 actually gives -YβY on group A. So that means that the stabilizer element S1S2 is not represented by the error type YβY because it has a minus sign. So indeed, for group A, the stabilizer requires that if the Pauli is YβY, it must be actually -YβY to be in the stabilizer. But since our errors are taken as the representatives (YβY itself), that means that if an error occurs that is of type YβY on group A, then that error operator is YβY, not -YβY. So then, could it be that if we also have an error on group B that is of a certain type, the combined phase might become such that the overall operator becomes a stabilizer? For instance, suppose E4 = YβY (on group A) and suppose E2 = ? We want E4βE2 to be in the stabilizer. That requires that on group A, we need the operator to be either I, XβX, ZβZ, or -YβY. So if E4 = YβY, then to get -YβY overall, we would need that E2 contributes a factor of -1. Can E2 contribute a factor of -1? E2 is also one of the representatives. Is it possible that an error representative is actually equal to -I? No, because the representative for I is I itself. What about other errors? For example, consider E2 = XβX. That is XβX itself. That does not have a minus sign. What about E2 = something like? Actually, note that all representatives are chosen to be exactly the Pauli matrices without any additional minus signs. So then, it seems that for the product E4βE2 to be in the stabilizer, we need that individually, E4 must be such that its representative is actually one of: I, XβX, ZβZ. Because if E4 is YβY, then no matter what E2 is (since E2 will be one of the 16 representatives), the product will be (YβY) β (something). But could that something ever introduce a overall minus sign? For that to happen, we would need that something is actually -I (on group B). But -I is not one of the representatives because the representative for I is I itself. What if E2 is something like? wait, could it be that the error channel actually includes the possibility of applying -I? But -I is not included because that would be considered the same as I? Actually, careful: The depolarizing channel is defined as: with probability 1-p, no error; with probability p, an error occurs, and the error is chosen uniformly from the set of 15 non-identity Pauli operators. That set does not include -I because -I is not non-identity? Actually, -I is non-identity? But wait, -I is different from I. However, usually, the depolarizing channel is defined as: Ο -> (1-p)Ο + (p/3)(XΟX+YΟY+ZΟZ) for a single qubit. That does not include -X because -X would give the same map as XΟX. So they are not considered distinct errors. So the errors are taken to be the ones that are Hermitian and square to I. Those are: I, X, Y, Z. So for two qubits, the errors are taken to be: Ο_a β Ο_b where Ο_a is in {I,X,Y,Z} and (a,b) β (0,0). So indeed, there is no overall minus sign. Therefore, I conclude that for E4 to contribute to a stabilizer outcome, E4 must be either:
E4 = I (identity)
E4 = X0X3 (i.e., Pauli X on both qubits 0 and 3)
E4 = Z0Z3
What about E4 = something like X0I3? That would not be in the stabilizer because stabilizer requires that on qubit3 also something happens? Let’s check: Could X0I3 be a stabilizer? That would mean that there is a stabilizer element that acts as X on qubit0 and I on qubit3. Is that possible? The stabilizer generators involve both qubits together. So likely not. So yes.
Similarly, for E2, for the product to be in the stabilizer, we need that on group B, the operator must be one of: I, X1X2, Z1Z2, or -Y1Y2. But careful: The representatives for errors on group B are also taken as: I, X, Y, Z on each qubit. So that means that if an error on group B is of the type Y1Y2, its representative is Y1Y2 itself. But the stabilizer requires -Y1Y2. So that means that if E2 = Y1Y2, then that alone would not be okay. However, could it be that if E4 is something that contributes a phase? For instance, if E4 is something that itself has a phase factor? But as argued, E4 is from the set of representatives, so they don’t have an overall minus sign. What if E4 = I? Then E2 must be such that its representative is actually -Y1Y2 to be in the stabilizer. But -Y1Y2 is not available because the available representative is Y1Y2. So it seems that for E2, the errors that are in the stabilizer set are actually:
E2 = I,
E2 = X1X2,
E2 = Z1Z2.
What about E2 = Y1Y2? That would give Y1Y2, but the stabilizer requires -Y1Y2. So that is not included.
But wait, could there be a case where both E4 and E2 are not individually in these sets but their product becomes a stabilizer? For example, if E4 = Y0Y3 and E2 = Y1Y2, then the product is Y0Y3 β Y1Y2. Is that a stabilizer? Let’s check: Is YYYY a stabilizer? We determined that S1S2 = YYYY actually. But careful: S1S2 = (XXXX)(ZZZZ) gave YYYY. So YYYY is a stabilizer. So wait: If E4 = Y0Y3 and E2 = Y1Y2, then the product is Y0Y3 β Y1Y2 = YYYY. And that is a stabilizer because S1S2 is YYYY. But then that means that if both errors are of the type YβY on their respective groups, the overall error is actually in the stabilizer. But wait, check phases: E4 is representative: Y0Y3 means the operator that is Y on qubit0 and Y on qubit3. E2 is Y1Y2. Their product is Y0Y1Y2Y3. And we computed S1S2 = Y0Y1Y2Y3 (because S1S2 came out as YYYY without any minus sign). So indeed, if E4 = Y0Y3 and E2 = Y1Y2, then the overall error is exactly S1S2, which is a stabilizer. So that means that for E2, it is not that only I, X1X2, Z1Z2 are allowed. Because if E2 = Y1Y2, then if E4 is also Y0Y3, the product is stabilizer. But if E2 = Y1Y2 and E4 is something else, then it might not be. So we need to consider the combined conditions.
Let’s determine systematically: We want E_total = E4 β E2 to be in the stabilizer group. The stabilizer group consists of operators of the form:
S = (S1)^a (S2)^b (S3)^c (S4)^d.
And as computed, that gives:
On group A: A = (X0X3)^a (Z0Z3)^b. But careful with phases:
For (a,b)=(0,0): A = I.
(1,0): A = X0X3.
(0,1): A = Z0Z3.
(1,1): A = (X0X3)(Z0Z3) =? Let’s compute this carefully with phases:
S1 on group A is: X0X3. S2 on group A is: Z0Z3.
When we multiply these, we get: (X0X3)(Z0Z3) = (X0Z0)(X3Z3) because they act on different qubits so it’s a tensor product. Now, X0Z0 = -i Y0 (since XZ = -iY). So that gives (-iY0)(-iY3) = (i^2)(Y0Y3) = (-1) Y0Y3. So indeed, S1S2 gives on group A: -Y0Y3.
So the stabilizer elements on group A are:
I,
X0X3,
Z0Z3,
-Y0Y3.
On group B, we have: B = (X1X2)^(a+d) (Z1Z2)^(b+c), but careful with phases? Let’s compute similarly:
On group B, S1 gives: X1X2.
S2 gives: Z1Z2.
So (X1X2)(Z1Z2) = (-iY1)(-iY2) = (-1) Y1Y2.
Also, S3 gives: Z1Z2.
S4 gives: X1X2.
So indeed, any stabilizer element on group B will be of the form:
I,
X1X2,
Z1Z2,
or -Y1Y2.
But wait, could there be a stabilizer element that has on group B something like Y1Y2 itself? What if we take S1S2S3S4? That gave: On group A, we had -Y0Y3 (from S1S2) and on group B, from S3S4, we get? S3S4 = (Z1Z2)(X1X2) =εζ · (-1)Y1Y2. So then overall, S1S2S3S4 = (-Y0Y3)β(-Y1Y2) = (Y0Y3)(Y1Y2) because (-1)(-1)=1. So that would give YYYY. But wait, that seems to suggest that YYYY is also a stabilizer. But then that would mean that there is a stabilizer element that has on group A: Y0Y3 and on group B: Y1Y2? But careful: S1S2S3S4, let’s compute it explicitly without grouping:
S1 = X0X1X2X3
S2 = Z0Z1Z2Z3
S3 = I0Z1Z2I3
S4 = I0X1X2I3
Then S1S2 = (X0Z0)(X1Z1)(X2Z2)(X3Z3) = (-iY0)(-iY1)(-iY2)(-iY3) = ( (-i)^4 ) (Y0Y1Y2Y3) = (1)(Y0Y1Y2Y3) = Y0Y1Y2Y3. So actually, S1S2 = YYYY. I earlier got a phase of -1 when computing separately on groups? I need to be very careful with phases when products involve operators on different qubits that commute. Let’s compute S1S2 carefully:
S1 = X0 β X1 β X2 β X3.
S2 = Z0 β Z1 β Z2 β Z3.
These operators commute because on each qubit, X and Z anticommute but there are an even number of anticommutations? Actually, they commute because S1S2 = (X0Z0)β(X1Z1)β(X2Z2)β(X3Z3). Now, X_iZ_i = -iY_i. So this product = (-iY0)β(-iY1)β(-iY2)β(-iY3) = (-i)^4 (Y0βY1βY2βY3) = (1)(YYYY) = YYYY. So S1S2 = YYYY.
Now, if I try to separate into groups A and B, I must be careful because the tensor product is over all qubits. When I write S1 = (X0X3) β (X1X2), that is fine because X0X3 means X0βX3 and X1X2 means X1βX2. So S1 = (X0βX3) β (X1βX2). Similarly, S2 = (Z0βZ3) β (Z1βZ2). Then S1S2 = [(X0βX3)(Z0βZ3)] β [(X1βX2)(Z1βZ2)]. Now, (X0βX3)(Z0βZ3) is not simply the product of independent terms because these operators act on different qubits? Actually, they do act on different qubits so they commute. So (X0βX3)(Z0βZ3) = (X0Z0)β(X3Z3) because X0 and Z3 commute etc. So that gives (-iY0)β(-iY3) = (-i)^2 (Y0βY3) = (-1)(Y0βY3). So that suggests that the group A part of S1S2 is -Y0Y3. And similarly, the group B part is -Y1Y2. Then overall, S1S2 would be (-Y0Y3)β(-Y1Y2) = (-1)(-1) (Y0Y3βY1Y2) = YYYY. So it is consistent if we remember that the tensor product of phases multiplies. So when I say the group A part is -Y0Y3, that means that there is a factor of -1 associated with that group. And the group B part is -Y1Y2, which gives another factor of -1. When combined, (-1)*(-1)=1. So it is better to not separate the phases between groups because they multiply. So let’s instead determine the condition for E_total to be in the stabilizer by looking at its effect on the state |Ο_ideal>. Maybe it’s easier to compute the fidelity for each type of error directly from the state expression.
We have |Ο_ideal> = 1/2 (|0000> + |1001> + |0110> + |1111>).
And E_total = E4 β E2. But careful: E4 acts on qubits 0 and 3. E2 acts on qubits 1 and 2.
So let’s denote E4 by its action on qubits 0 and 3. It will map basis states to basis states with a phase. Similarly for E2.
We want to compute <Ο_ideal| E_total |Ο_ideal>. This will be zero unless E_total maps each term to itself or to another term in the superposition with the same phase relations? Actually, because |Ο_ideal> is a superposition of four states. E_total will permute these states and multiply by phases. So <Ο_ideal|E_total|Ο_ideal> = (1/4) times the sum over the four states of the phase factors when that state is mapped to itself or to another state that is also in the superposition, but careful with cross terms.
Maybe we can do this by brute force for each type of error? But there are 16*16 = 256 combinations. But wait, the errors are independent and we only need the average fidelity. And fidelity is |<Ο|E|Ο>|^2. And because |Ο> is a stabilizer state, this will be either 1 or 0. Is that true? For a stabilizer state, any Pauli operator either leaves it invariant (up to a phase) or maps it to an orthogonal state. So indeed, for each E_total, the fidelity is either 1 or 0. So we just need to count the number of error pairs (E4, E2) such that E_total is in the stabilizer group of |Ο_ideal>. And then the fidelity will be that probability.
So then the problem reduces to: Given that E4 is chosen uniformly from the 16 Pauli operators on qubits {0,3} with probability: P(E4=I) = 1-p, and for each of the 15 non-identity, probability = p/15.
Similarly, E2 is chosen from the 16 on qubits {1,2} with P(I)=1-p, and others p/15 each.
And we want the probability that E4 β E2 is in the stabilizer group of |Ο_ideal>. And the stabilizer group has 16 elements. But careful: The stabilizer group is a subgroup of the Pauli group on 4 qubits. But wait, is it true that if a Pauli operator is in the stabilizer group, then it will have fidelity 1? Yes.
So we need to know: How many Pauli operators on 4 qubits are in the stabilizer group? There are 16. But these 16 are specific operators. They are determined by the conditions we derived earlier but with careful phase issues. Let’s list the stabilizer group elements explicitly in terms of their action on qubits 0,3 and 1,2. They are given by:
S = (S1)^a (S2)^b (S3)^c (S4)^d, with a,b,c,d β {0,1}.
Let’s compute these 16 explicitly and write them in the form ( operator on qubits 0,3 ) β ( operator on qubits 1,2 ) including the overall phase factor that makes sure that S|Ο_ideal> = |Ο_ideal>. But careful: The stabilizer condition is that S|Ο_ideal> = |Ο_ideal>. So these S are determined up to an overall phase? Actually, they are specific operators. Let’s compute them by taking specific values of a,b,c,d.
We have:
S1 = X0 X1 X2 X3.
S2 = Z0 Z1 Z2 Z3.
S3 = I0 Z1 Z2 I3.
S4 = I0 X1 X2 I3.
I will compute S = product for each combination. It might be easier to compute the action on group A and group separately but keeping track of phases carefully. Let’s do that:
S = (S1)^a (S2)^b (S3)^c (S4)^d.
Group A (qubits 0 and 3):
From S1: contributes: (X0X3)^a.
From S2: contributes: (Z0Z3)^b.
From S3 and S4: nothing on group A.
So on group A, the operator is: A = (X0X3)^a (Z0Z3)^b. But careful with phases when both a and b are 1. Let’s compute that carefully:
If a=0,b=0: A = I.
If a=1,b=0: A = X0X3.
If a=0,b=1: A = Z0Z3.
If a=1,b=1: A = (X0X3)(Z0Z3). Now, (X0X3)(Z0Z3) = (X0Z0)(X3Z3) because these act on different qubits so they commute. Now, X0Z0 = -i Y0. So that gives (-iY0)*(-iY3) = (i^2)(Y0Y3) = (-1)(Y0Y3). So A = - Y0Y3.
So on group A, the possible outcomes are: I, X0X3, Z0Z3, -Y0Y3.
Group B (qubits 1 and 2):
From S1: contributes: (X1X2)^a.
From S2: contributes: (Z1Z2)^b.
From S3: contributes: (Z1Z2)^c.
From S4: contributes: (X1X2)^d.
So on group B, the operator is: B = (X1X2)^(a+d) (Z1Z2)^(b+c). But careful with phases when both (a+d) and (b+c) are 1 mod something? Let’s do it similarly:
Let u = a+d mod 2, and v = b+c mod 2. Then B = (X1X2)^u (Z1Z2)^v.
If u=0,v=0: B = I.
If u=1,v=0: B = X1X2.
If u=0,v=1: B = Z1Z2.
If u=1,v=1: B = (X1X2)(Z1Z2) = similarly = (-1) Y1Y2.
So then overall, S = A β B. But wait, there could be an additional phase coming from the fact that these operators commute? They should commute because they act on different groups. So then the overall S is simply the tensor product. So then the stabilizer elements are:
For any a,b,c,d, we get:
A = determined by (a,b):
(0,0): I
(1,0): X0X3
(0,1): Z0Z3
(1,1): -Y0Y3
B = determined by (u,v) where u=a+d, v=b+c:
(0,0): I
(1,0): X1X2
(0,1): Z1Z2
(1,1): -Y1Y2
So then S = A β B.
Now, note that these 16 are all distinct? Let’s check: If (a,b,c,d) = (1,1,1,1), then A = -Y0Y3, B = since u=1+1=0 mod2? Actually, careful: u = a+d mod2, so if a=1,d=1, then u=0 mod2. v = b+c, if b=1,c=1, then v=0 mod2. So that gives B = I. So S = (-Y0Y3) β I = -Y0Y3 I1I2.
If (a,b,c,d) = (1,1,0,0), then A = -Y0Y3, and u=1+0=1, v=1+0=1, so B = -Y1Y2. Then S = (-Y0Y3)β(-Y1Y2) = (Y0Y3)(Y1Y2) because (-1)(-1)=1. So that gives S = Y0Y3 Y1Y2 = YYYY.
So these are different.
So the stabilizer group consists of these 16 operators. Now, we want to know when does an error E_total = E4 β E2 become one of these stabilizer elements. E4 is one of the 16 Pauli operators on qubits 0 and 3. But careful: The Pauli operators on two qubits are usually taken as: I, X, Y, Z on each qubit independently. So they are of the form:
E4 = ( phase ) * (Ο_{0} β Ο_{3}) where Ο_{0} and Ο_{3} are in {I,X,Y,Z} and the phase is such that the operator is Hermitian and squares to I. Actually, the standard Pauli matrices are defined without any phase factors. So for two qubits, the set is:
{ IβI,
IβX, IβY, IβZ,
XβI, XβX, XβY, XβZ,
YβI, YβX, YβY, YβZ,
ZβI, ZβX, ZβY, ZβZ }.
So for example, what is XβX? That is clear.
What is YβY? That is the operator that acts as Y on both qubits.
Now, compare with our stabilizer elements on group A. They are:
I, X0X3, Z0Z3, and -Y0Y3.
Notice that -Y0Y3 is not the same as Y0Y3. So if an error E4 is actually Y0Y3 (i.e., YβY), then that is not equal to any stabilizer element on group A because the stabilizer requires -Y0Y3. However, could it be that when combined with an appropriate E2, the overall product becomes a stabilizer? For that to happen, we would need that E2 contributes a factor of -1 to cancel the phase difference. But wait, look at the stabilizer elements: They are of the form AβB. If E4 = Y0Y3, then for E4βE2 to be a stabilizer, we need that there is some stabilizer element S such that its group A part is Y0Y3. But from our list, the group A parts are only I, X0X3, Z0Z3, and -Y0Y3. There is no stabilizer element with group A part = Y0Y3. What about if both E4 and E2 have phases? For instance, if E4 = Y0Y3 and E2 = something that itself has a phase such that overall the product becomes something like? But wait, the stabilizer elements are determined. They are specific operators. For example, is there a stabilizer element that is Y0Y3 β (-I) maybe? That would be -Y0Y3 β I, which is actually a stabilizer? because that is when (a,b,c,d) = (1,1,1,1) gave -Y0Y3 β I. What about Y0Y3 β (-I) would be -Y0Y3 β I if that makes sense? Actually, careful: Y0Y3 β (-I) means take the operator that is Y on qubit0 and Y on qubit3, and on group B, take the operator that is - times identity. But -I is not one of the standard Pauli representatives because the representative for identity is I itself. So that is not available.
What if E4 = Y0Y3 and E2 = something that is not identity but gives an overall multiplication? For the product to be in the stabilizer, it must equal one of the 16 stabilizer elements exactly. The stabilizer elements have determined phases. So for example, consider the stabilizer element that is S1S2S3S4. We computed that earlier: S1S2S3S4 = ? Let’s compute that carefully without splitting groups:
S1 = X0X1X2X3
S2 = Z0Z1Z2Z3
S3 = I0Z1Z2I3
S4 = I0X1X2I3
Then S1S2 = (X0Z0)(X1Z1)(X2Z2)(X3Z3) = (-iY0)(-iY1)(-iY2)(-iY3) = (-i)^4 (Y0Y1Y2Y3) = Y0Y1Y2Y3.
Then S1S2S3 = Y0Y1Y2Y3 * (I0Z1Z2I3) = Y0 (Y1Z1)(Y2Z2) Y3. Now, Y1Z1 =? Y Z = i X? Actually, careful: Y Z = i X because YZ = iΟ_y Ο_z = i (-i Ο_x) wait, let’s do properly: Pauli matrices: X,Y,Z. They satisfy: XY = iZ, YZ = iX, ZX = iY. So Y Z = i X. So Y1Z1 = i X1. Similarly, Y2Z2 = i X2. So then S1S2S3 = Y0 (iX1)(iX2) Y3 = Y0 (-1) X1X2 Y3 = - Y0 X1X2 Y3.
Then S1S2S3S4 = - Y0 X1X2 Y3 * (I0X1X2I3) = - Y0 (X1X2 X1X2) Y3 = - Y0 (X1^2 X2^2) Y3 = - Y0 I1I2 Y3 = - Y0Y3.
So S1S2S3S4 = - Y0Y3 I1I2? But wait, that acts only on qubits 0 and 3? Actually, it acts on all qubits: it is - Y0 I1 I2 Y3 = - Y0Y3 on qubits 0 and 3 and identity on qubits 1 and 2. So that stabilizer element is -Y0Y3 β I. So that is one stabilizer element.
What about S1S2 itself? S1S2 = Y0Y1Y2Y3, so that is Y0Y3 β Y1Y2. So that is a stabilizer element. So indeed, there is a stabilizer element that has group A part = Y0Y3? Because S1S2 gives: On group A: from qubits 0 and 3, that is Y0Y3. On group B: Y1Y2. So that means that if E4 = Y0Y3 and E2 = Y1Y2, then the product is Y0Y3 β Y1Y2, which is exactly S1S2. But wait, check phases: S1S2 we computed as Y0Y1Y2Y3. And that is indeed Y0Y3 β Y1Y2 because these are tensor products. So yes, that works. So then, for group A, if E4 = Y0Y3, it can be part of a stabilizer if and only if E2 is also Y1Y2. Because then the product becomes Y0Y3 β Y1Y2, which is a stabilizer (S1S2). What if E4 = Y0Y3 and E2 is something else? Then the product would be Y0Y3 β (something). Look at the stabilizer elements: Those that have group A part = Y0Y3. Do any stabilizer elements have group A part = Y0Y3? From our list, when does A become Y0Y3? A = (X0X3)^a (Z0Z3)^b. For this to be Y0Y3, we need that on each qubit, the Pauli is Y. For qubit0, X^a Z^b gives Y if a=1,b=1 would give XZ which is -iY, so to get Y, we would need a phase of i. So actually, wait: (X0X3)(Z0Z3) gave -Y0Y3. To get Y0Y3, we would need -1 times that, so that would be actually (Z0Z3)(X0X3) is the same order? They commute so it’s the same. So it seems that no matter what, (X0X3)(Z0Z3) always gives -Y0Y3 because X0Z0 = -iY0, so product = (-iY0)(-iY3)= (-1)Y0Y3. So indeed, there is no way to get a stabilizer element with group A part = Y0Y3 from S1 and S2 alone. What about including S3 and S4? They don’t affect group A. So indeed, any stabilizer element will have group A part that is either I, X0X3, Z0Z3, or -Y0Y3. So wait, then how did S1S2 become Y0Y3 β Y1Y2? Let’s recompute S1S2 very carefully without any group separation issues:
S1 = X0 X1 X2 X3.
S2 = Z0 Z1 Z2 Z3.
Now, these operators commute because on each qubit, X and Z anticommute but there are an even number of anticommutations? Actually, they commute because S1S2 = (X0Z0)(X1Z1)(X2Z2)(X3Z3). Now, careful: X0Z0 is not simply -iY0 because that is true if we consider the order: X0Z0. But wait, careful: S1 and S2 are operators. They commute because for each qubit, X_i and Z_i anticommute, but since there are two terms per qubit? Actually, check: S1S2 |Ο> = X0X1X2X3 Z0Z1Z2Z3 |Ο>. I can commute Z0 through X1X2X3 because they act on different qubits. So S1S2 = (X0Z0) (X1Z1) (X2Z2) (X3Z3). Now, X0Z0: since X0 and Z0 anticommute, X0Z0 = - Z0X0? That doesn’t help. Let’s actually compute the product on a basis state. Maybe it’s easier to determine the stabilizer conditions directly from the state itself.
Maybe I should compute the fidelity for each error type by actually computing <Ο_ideal|E|Ο_ideal> for Pauli errors that are products of errors on these two groups. Because |Ο_ideal> is given explicitly. And since errors are Pauli, they will either leave the state invariant or map it to an orthogonal state. So I can determine for each Pauli operator on 4 qubits whether it is in the stabilizer of |Ο_0> by checking if it commutes with all stabilizer generators? But careful: That requires knowing the stabilizer generators of |Ο_ideal>. I already know that XXXX, ZZZZ, IZZI, IXXI stabilize |Ο_ideal>. So for E_total to be in the stabilizer, it must commute with these generators? Actually, for a stabilizer state, if an operator commutes with all stabilizers, then it is in the stabilizer group. So I can use that condition. So E_total is in the stabilizer if and only if it commutes with S1=XXXX, S2=ZZZZ, S3=IZZI, S4=IXXI.
Now, E_total = E4 β E2, where E4 acts on qubits 0 and 3, and E2 acts on qubits 1 and 2.
Let’s write E4 as something like: E4 = Pauli on qubit0 times Pauli on qubit3. So let E4 = P0 β P3, where P0, P3 β {I,X,Y,Z}. Similarly, E2 = Q1 β Q2, with Q1,Q2 β {I,X,Y,Z}.
Then E_total = P0 β Q1 β Q2 β P3. wait careful with order: qubits: 0,1,2,3. So E_total = (P0) on qubit0, (Q1) on qubit1, (Q2) on qubit2, (P3) on qubit3.
Now, commute with S1= XXXX means that E_total must commute with X0X1X2X3. commute with S2= ZZZZ means commute with Z0Z1Z2Z3.
commute with S3= IZZI means commute with I0 Z1 Z2 I3.
commute with S4= IXXI means commute with I0 X1 X2 I3.
because these stabilizers commute with each other, E_total will be in the stabilizer if it commutes with each. actually wait: For a stabilizer state, if an operator commutes with all stabilizers, then it is in the stabilizer group. So conditions:
[E_total, X0X1X2X3] = 0.
[E_total, Z0Z1Z2Z3] = 0.
[E_total, I0Z1Z2I3] = 0.
[E_total, I0X1X2I3] = 0.
Let’s do these conditions one by one.
Condition from S3: [E_total, I0Z1Z2I3] = 0.
E_total = P0 β Q1 β Q2 β P3.
S3 = I0 β Z1 β Z2 β I3.
These act on different qubits for qubits 0 and 3 clearly commute. So the commutativity condition is that [Q1, Z1] and [Q2, Z2] must be such that overall they commute. Actually, since these are tensor products, [E_total, S3] = 0 if and only if [Q1, Z1]=0 and [Q2, Z2]=0. Because if either anticommutes, then overall they will anticommute because signs multiply? Let’s check: If Q1 anticommutes with Z1 but Q2 commutes with Z2, then E_total S3 = (P0)β(Q1Z1)β(Q2Z2)β(P3) and S3 E_total = (P0)β(Z1Q1)β(Z2Q2)β(P3) = (P0)β(-Q1Z1)β(Q2Z2)β(P3) = - E_total S3. So indeed, we need [Q1, Z1]=0 and [Q2, Z2]=0. So that means that Q1 must commute with Z1, so Q1 cannot be X or Y? Actually, X anticommutes with Z, Y anticommutes with Z. So Q1 must be either I or Z. Similarly, Q2 must be either I or Z.
So condition from S3: Q1 β {I, Z} and Q2 β {I, Z}.
Next, condition from S4: [E_total, I0X1X2I3] = 0.
Similarly, this gives that [Q1, X1]=0 and [Q2, X2]=0. So Q1 must commute with X1, so Q1 cannot be Z or Y? Actually, Z anticommutes with X, Y anticommutes with X. So Q1 must be either I or X.
Combining with S3 condition, Q1 must be such that it commutes with both Z and X. The only Pauli that commutes with both X and Z is I (because X and Z themselves do not commute with each other). So Q1 must be I.
Similarly, Q2 must be I.
So conditions from S3 and S4 together force that Q1 = I and Q2 = I.
That is very strong! That would mean that E2 must be the identity on qubits 1 and 2. But wait, is that true? Let’s check with an example. Consider E_total = X0X1X2X3 itself. That is S1. That commutes with all stabilizers. In that case, Q1 would be X and Q2 would be X. But that violates the condition because X does not commute with Z? But wait, check S3: S3 = IZZI. X and Z anticommute on each qubit. But then overall, would that cause anticommutation? For E_total = X0X1X2X3 and S3 = I0Z1Z2I3, they actually commute because on qubits 1 and 2, we have X1X2 and Z1Z2. And X1 anticommutes with Z1 gives a factor -1, X2 anticommutes with Z2 gives another -1, product (-1)(-1)=1. So wait, my earlier reasoning about conditions from S3 needs to be careful. When we have operators that act on multiple qubits, the commutativity condition is that the operators commute if they anticommute on an even number of qubits. So for S3, we need that the number of qubits among {1,2} for which Q anticommutes with Z should be even. So condition from S3: For qubits 1 and 2, we need that the product of the signs from anticommutation is +1. That is: if Q1 anticommutes with Z1, that gives a factor -1; if Q2 anticommutes with Z2, that gives a factor -1; so overall, if both anticommute, then (-1)(-1)=+1. So actually, the condition from S3 is that Q1 and Q2 must either both commute with Z or both anticommute with Z. Because if one commutes and the other anticommutes, then overall they anticommute. So from S3: either (Q1 commutes with Z1 and Q2 commutes with Z2) OR (Q1 anticommutes with Z1 and Q2 anticommutes with Z2).
Similarly, from S4: either (Q1 commutes with X1 and Q2 commutes with X2) OR (Q1 anticommutes with X1 and Q2 anticommutes with X2).
Now, what Paulis commute with Z? I and Z commute with Z. X and Y anticommute with Z.
What Paulis commute with X? I and X commute with X. Z and Y anticommute with X.
So for the first case from S3: both commute with Z means Q1,Q2 β {I, Z}.
For the second case from S3: both anticommute with Z means Q1,Q2 β {X, Y}.
Now from S4: first case: both commute with X means Q1,Q2 β {I, X}.
Second case: both anticommute with X means Q1,Q2 β {Z,}.
So combining S3 and S4 conditions:
We need that either:
Case 1: (Q1,Q2 both commute with Z) and (Q1,Q2 both commute with X). The only possibility for that is Q1,Q2 must be I because Z does not commute with X. So that gives Q1=Q2=I.
Case 2: (Q1,Q2 both commute with Z) and (Q1,Q2 both anticommute with X). For anticommute with X, that means Q1,Q2 β {Z, Y} actually wait: anticommute with X means: I and X commute with X, so they are out. Z anticommutes with X, Y anticommutes with X. So that set is {Z, Y}. But wait, also they must commute with Z from case 2 of S3? Case 2 of S3 would be both anticommute with Z, not commute with Z. So careful:
Let’s do it systematically:
S3 gives two possibilities:
A: Q1 and Q2 are such that they both commute with Z. So that means Q1,Q2 β {I, Z}.
B: Q1 and Q2 are such that they both anticommute with Z. So that means Q1,Q2 β {X, Y}.
S4 gives two possibilities:
C: Q1 and Q2 are such that they both commute with X. So that means Q1,Q2 β {I, X}.
D: Q1 and Q2 are such that they both anticommute with X. So that means Q1,Q2 β {Z, Y}.
So the conditions are that ( from S3 and S4 ) must be