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.
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 prepares a logical state. But then we are adding errors: “each CNOT_{ij} gate in the circuit 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.” So after each CNOT gate, there is an error channel. Also, are there errors on Hadamard gates? The problem statement: “each CNOT_{ij} gate in the circuit has a two qubit depolarizing error channel following it”. It does not mention errors on single-qubit gates. So we assume that Hadamard gates are perfect? Possibly yes. So only errors on CNOT gates.
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, that means the overall unitary is U = CNOT_{03} * H_0 * CNOT_{21} * H_2. But in quantum circuit, the order is from left to right? Actually, typically: if we write a circuit as gates applied in sequence, then the rightmost gate is applied first. So the circuit: Start with initial state? Possibly initial state is |0000>? But wait: The logical GHZ state: (|00>{AB} + |11>{AB})/β2. That is a logical state. But the circuit is given. Let’s check: The circuit: H_2, then CNOT_{21}, then H_0, then CNOT_{03}. Let’s compute the state without errors.
Initial state: presumably all qubits are in |0>. So initial state: |0>_0|0>_1|0>_2|0>_3.
Step 1: Apply H_2. H on qubit 2: |0>_2 -> (|0>+|1>)/β2. So state becomes: |0>_0|0>_1 (|0>+|1>)/β2 |0>_3 = (|0000> + |0010>)/β2? But careful: 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>).
Step 2: Apply CNOT_{21}. That is control qubit 2, target qubit 1. So if qubit2 is 1, flip qubit1. So:
|0,0,0,0> -> remains |0,0,0,0>
|0,0,1,0> -> becomes |0,1,1,0>
So state becomes: 1/β2 (|0000> + |0110>).
Step 3: Apply H_0. H on qubit 0. So:
|0000> -> (|0>+|1>)/β2 on qubit0 gives: 1/β2 (|0000> + |1000>)
|0110> -> 1/β2 (|0110> + |1110>)
So state becomes: 1/2 (|0000> + |1000> + |0110> + |1110>).
Step 4: Apply CNOT_{03}. Control qubit 0, target qubit 3.
For each term:
|0000>: control=0 so no flip -> |0000>
|1000>: control=1 so flip qubit3 -> |1001>
|0110>: control=0 -> |0110>
|1110>: control=1 -> |1111>
So final state: 1/2 (|0000> + |1001> + |0110> + |1111>).
Now, what is the logical state? The [[4,2,2]] code: It encodes two logical qubits. The stabilizers are XXXX and ZZZZ. The logical operators:
X_A = XIXI, X_B = XXII, Z_A = ZZII, Z_B = ZIZI.
We want the logical GHZ state: (|00>{AB} + |11>{AB})/β2.
Check: What are the logical basis states? For the [[4,2,2]] code, the code space is 4-dimensional. The logical states are usually defined. Possibly the state we got is indeed the logical GHZ state? Let’s check:
For logical |00>? Possibly: |00>_{AB} might be: (|0000> + |1111>)/β2? But our state has terms: |0000>, |1001>, |0110>, |1111>. That is not exactly that. Alternatively, maybe the logical states are:
|00> = (|0000>+|1111>)/β2,
|01> = (|0011>+|1100>)/β2,
|10> = (|0101>+|1010>)/β2,
|11> = (|0110>+|1001>)/β2.
Then the GHZ state (|00>+|11>)/β2 becomes:
= 1/β2 [ (|0000>+|1111>)/β2 + (|0110>+|1001>)/β2 ] = 1/2 (|0000>+|1111>+|0110>+|1001>).
That matches our state exactly. So indeed the circuit produces the logical GHZ state.
So without errors, the final state is the ideal state: |Ο_ideal> = 1/2 (|0000>+|1001>+|0110>+|1111>).
Now, we consider errors. The circuit has two CNOT gates: CNOT_{21} and CNOT_{03}. Each CNOT gate is followed by a depolarizing error channel. That error channel: after the CNOT gate, with probability p, an error occurs. And if an error occurs, it is one of the 15 non-identity two-qubit Paulis on the two qubits involved, each with probability p/15. So overall, after a CNOT gate, the state becomes:
(1 - p) * (CNOT applied perfectly) + (p/15)*β{P in non-identity Paulis on that pair} (P applied after CNOT? But careful: The error channel is applied after the gate. So if the gate is U, then the actual operation is: with probability 1-p, we get U; with probability p/15 for each non-identity Pauli, we get (P) U. But wait: The problem says: “each CNOT{ij} gate in the circuit 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.” That means: After the CNOT gate, we apply an error operator that is one of the 15 Paulis (on the two qubits) with probability p/15 each, and with probability 1-p, we apply identity. So the overall channel for that step is:
Ο -> (1-p) U Ο Uβ + (p/15) β_{P in {non-identity Paulis on qubits i,j}} (P U) Ο (Uβ P).
But careful: The order: The circuit is: first H_2 (perfect), then CNOT_{21} with error, then H_0 (perfect), then CNOT_{03} with error.
So we want the final state fidelity. The fidelity is between the ideal state (which is pure) and the actual state (which is mixed due to errors). So we want F = <Ο_ideal| Ο_actual |Ο_ideal>.
We need to compute Ο_actual. The initial state is |0000><0000|. Then we apply operations. Let’s denote:
U1 = H_2 (perfect)
U2 = CNOT_{21} (with error channel)
U3 = H_0 (perfect)
U4 = CNOT_{03} (with error channel)
So the overall channel: Ο_final = E_4 β U_4 β E_3 β U_3 β E_2 β U_2 β U_1 (|0><0|) but careful: Actually, the order: The circuit: first apply U1, then apply the channel for CNOT_{21}? But wait: The error channel is after the CNOT gate. So after U1, we apply the CNOT_{21} gate. But that gate itself is perfect? Actually, the gate is perfect, but then immediately after it, we apply the error channel. So the operation for the step is: Ο -> (1-p) CNOT_{21} Ο CNOT_{21}^β + (p/15) β{P in Paulis on qubits 2,1 (non-identity)} (P CNOT{21}) Ο (CNOT_{21}^β P). But careful: The Paulis are on the two qubits that the CNOT acts on. For CNOT_{21}, the qubits are 2 and 1. So the Paulis are operators on qubits 2 and 1. Similarly, for CNOT_{03}, the Paulis are on qubits 0 and 3.
Then after that, we apply H_0 (perfect). Then apply CNOT_{03} with its error channel.
So we want to compute the final density matrix. But we only need the fidelity: F = <Ο_ideal| Ο_final |Ο_ideal>. And since the errors are small, we might compute the probability that no error occurs? But careful: The errors are depolarizing channels. They might produce states that are not orthogonal to the ideal state? Actually, if an error occurs, it might sometimes be a stabilizer of the code? But wait: The state we are preparing is a logical state. The errors that are stabilizers (like XXXX or ZZZZ) actually leave the state invariant? But careful: The state is not necessarily in the code space? Actually, the ideal state is in the code space. And the stabilizers: XXXX and ZZZZ. Do they act trivially on the code space? Yes, because the code space is defined as the +1 eigenspace of these stabilizers. So if an error is a stabilizer, then it will map the code state to itself. But wait: But our errors are applied on physical qubits. For example, if an error is XXXX, then it commutes with the logical operators? Actually, if the state is in the code space, then applying a stabilizer gives the same state. But here, the errors occur during the circuit. They might take the state out of the code space. But then later gates might not correct it. However, we are only interested in the fidelity at the end. The fidelity is the overlap with the ideal state. So if an error is a stabilizer, then it might actually not reduce the fidelity? But careful: The error occurs in the middle of the circuit. For example, if an error happens that is a stabilizer, then after the circuit, the state might still be the ideal state? But not necessarily: because the circuit is not necessarily fault-tolerant? Actually, the circuit is designed to prepare the logical state. If an error occurs that is a stabilizer, then it commutes with all subsequent gates? Possibly? But we need to check: The errors are applied after a CNOT gate. They are Pauli errors. They will propagate through subsequent gates. So we need to compute the overall effect.
Maybe we can compute the probability that the final state is exactly the ideal state. That probability is: (1-p)^2 (if no error occurs) plus contributions from errors that are equivalent to identity on the final state. But careful: Even if an error occurs, if it is such that after the entire circuit, the state is the same as the ideal state, then that error does not reduce fidelity. So we want to compute the fidelity F = probability that the final state is the ideal state. But wait: Is that exactly the fidelity? Actually, if the channel is a Pauli channel (because errors are Pauli and the circuit is Clifford), then the final state will be a mixture of states that are Pauli errors applied to the ideal state. And since the ideal state is a stabilizer state (it is a code state of a stabilizer code), then the fidelity is the sum of probabilities of all Pauli errors that stabilize the state. But careful: The errors occur at different times. But because the circuit is Clifford, we can propagate the errors through the circuit. That is a common technique: Instead of applying errors after gates, we can push them to the end. But careful: The errors are applied after specific gates. But we can use the fact that if we have a Clifford circuit, then if an error occurs at some point, it is equivalent to a Pauli error at the end (maybe with a sign change) if we commute it through the subsequent Clifford gates. But here, the errors are not necessarily Pauli errors on the initial state because they occur after gates. But we can use the idea of “error propagation”:
We have a circuit: U = U4 U3 U2 U1. But with errors: Actually, the actual operation is: After U1, we apply CNOT_{21} and then an error E on qubits 2,1. That error E is a Pauli. Then U3 (H_0) and then CNOT_{03} and then an error F on qubits 0,3. So the overall operation is: (F * CNOT_{03}) * (H_0) * (E * CNOT_{21}) * (H_2) on the initial state. But note that H_0 and H_2 are single-qubit gates. But we can combine: Actually, careful: The order: The circuit is:
Step 1: H_2 (perfect)
Step 2: CNOT_{21} then error on qubits 2,1. So that step is: Ο -> β{E in {I} βͺ {non-identity Paulis on {2,1}} with probabilities: (1-p) for I, and p/15 for each non-identity} (E CNOT{21}) Ο (CNOT_{21}^β Eβ ).
Step 3: H_0 (perfect)
Step 4: CNOT_{03} then error on qubits 0,3. So that step: Ο -> β{F in {I} βͺ {non-identity Paulis on {0,3}} with probabilities: (1-p) for I, and p/15 for each non-identity} (F CNOT{03}) Ο (CNOT_{03}^β Fβ ).
So overall, if we denote the perfect unitary as U_perfect = CNOT_{03} H_0 CNOT_{21} H_2. Then the actual operation is:
For each error E on qubits {2,1} and F on qubits {0,3}, we get:
U_actual = F * CNOT_{03} * H_0 * E * CNOT_{21} * H_2.
But note that H_0 and H_2 are Clifford gates. So we can commute E through H_0? But careful: E acts on qubits 2 and 1. H_0 acts on qubit 0. They commute because they act on different qubits. So H_0 * E = E * H_0. Similarly, F acts on qubits 0 and 3. But F does not necessarily commute with H_0? Actually, H_0 acts on qubit 0, and F acts on qubits 0 and 3. They might not commute if F has a Pauli on qubit 0 that is not identity? But we can compute: H_0 Pauli_X on qubit0 H_0 = Pauli_Z, etc. But maybe we can push all errors to the end. Write:
U_actual = F * CNOT_{03} * H_0 * E * CNOT_{21} * H_2.
= F * CNOT_{03} * E * H_0 * CNOT_{21} * H_2 (since E commutes with H_0)
= F * (CNOT_{03} E CNOT_{03}^β ) * CNOT_{03} * H_0 * CNOT_{21} * H_2
= (F * (CNOT_{03} E CNOT_{03}^β )) * U_perfect.
So then U_actual = G * U_perfect, where G = F * (CNOT_{03} E CNOT_{03}^β ). But careful: The order: Actually, U_perfect = CNOT_{03} H_0 CNOT_{21} H_2. And we have: U_actual = F CNOT_{03} H_0 E CNOT_{21} H_2 = F CNOT_{03} E H_0 CNOT_{21} H_2 = F (CNOT_{03} E CNOT_{03}^β ) CNOT_{03} H_0 CNOT_{21} H_2 = (F * (CNOT_{03} E CNOT_{03}^β )) U_perfect.
So indeed, the overall effect is that the actual state is obtained by applying some Pauli error G on the perfect state. But wait: Is that always a Pauli? E is a Pauli on qubits {2,1}. CNOT_{03} acts on qubits {0,3}. So CNOT_{03} E CNOT_{03}^β will be a Pauli on qubits? Because CNOT is Clifford. So it maps Pauli to Pauli. But careful: E acts on qubits 2 and 1. CNOT_{03} does not act on qubits 2 and 1, so it commutes with E? Actually, no: CNOT_{03} acts on qubits 0 and 3. E acts on qubits 2 and 1. They act on disjoint sets, so they commute. So actually, CNOT_{03} E CNOT_{03}^β = E. Because E is on qubits 2 and 1, and CNOT_{03} acts on qubits 0 and 3, so they commute. So then G = F * E. So indeed, the overall error is just the product of the two errors: one from the first CNOT (E on qubits 2,1) and the second from the second CNOT (F on qubits 0,3). But wait: Is that always? Check: U_actual = F CNOT_{03} H_0 E CNOT_{21} H_2. And since H_0 commutes with E (different qubits), we get = F CNOT_{03} E H_0 CNOT_{21} H_2. But then CNOT_{03} and E commute because they act on disjoint sets? Actually, careful: CNOT_{03} acts on qubits 0 and 3. E acts on qubits 2 and 1. They are on disjoint sets, so they commute. So then U_actual = F E CNOT_{03} H_0 CNOT_{21} H_2 = (F E) U_perfect. So indeed, the overall effect is that the actual unitary is (F E) U_perfect, where E is a Pauli on qubits {2,1} and F is a Pauli on qubits {0,3}. But wait: There is also the probabilities: The error E occurs with probability: if E = I, probability = 1-p; if E is any non-identity Pauli on qubits {2,1}, probability = p/15 each. Similarly, F: if F = I, probability = 1-p; if F is non-identity on qubits {0,3}, probability = p/15 each.
And these errors are independent? They occur on different gates. So the overall error operator is G = F * E, which is a Pauli on all 4 qubits. But careful: E acts on qubits 2 and 1, F acts on qubits 0 and 3. So G is a Pauli on all qubits. And the probability distribution over G is:
P(G) = (probability for E) * (probability for F) such that FE = G.
But note: E and F are independent. So we can compute the probability that the overall error is a particular Pauli on the 4 qubits. But then the final state, if the error is G, is: |Ο_actual> = G U_perfect |0000> = G |Ο_ideal>. But wait: Is that always true? Check: U_perfect |0000> = |Ο_ideal>. So indeed, if the errors are Pauli, then the final state is exactly G |Ο_ideal>. But careful: There might be phases? But Pauli operators are either Β±1? Actually, Pauli operators can have factors of i, but typically we consider Pauli group elements up to phase? But here, since we are taking the state, if G has a phase, then |Ο> becomes that phase times the state. But fidelity is |<Ο_ideal| G |Ο_ideal>|^2. But if G is not identity, then typically the overlap might be 0 if G changes the state. But there might be cases where G is a stabilizer of the state? But careful: The state |Ο_ideal> is not necessarily a stabilizer state of the full Pauli group? Actually, it is a stabilizer state. The stabilizer of |Ο_ideal>? The ideal state is the logical GHZ state. But it is a code state of the [[4,2,2]] code. Its stabilizer group? The code space is stabilized by XXXX and ZZZZ. But the state |Ο_ideal> is a specific state in that code space. Its stabilizer subgroup (the Paulis that leave it invariant up to a phase) might be larger? Actually, for a stabilizer state, the stabilizer group is generated by the stabilizers of the code and the logical operators that fix that state. For the GHZ state (|00>+|11>)/β2, the stabilizers include also something like X_A X_B? Actually, for a two-qubit GHZ state, the stabilizers are: XβX, ZβZ? But here it’s logical qubits. But we are interested in the physical overlap: <Ο_ideal| G |Ο_ideal>. That is 1 if G is in the stabilizer of |Ο_ideal> (up to phase, but careful: if G gives a phase, then the overlap might be that phase. But fidelity is the square of the absolute value of the overlap. So if G gives a phase factor e^(iΞΈ), then <Ο_ideal| G |Ο_ideal> = e^(iΞΈ) and then |…|^2 = 1. So indeed, if G is such that G|Ο_ideal> = (phase)|Ο_ideal>, then the fidelity contribution from that error is that the state is actually the ideal state (up to global phase). So we want to compute the probability that the overall error G is such that G|Ο_ideal> is proportional to |Ο_ideal>. That is, G is in the stabilizer group of |Ο_ideal> (the set of Paulis that fix the state, not necessarily exactly +1, but any phase factor, because fidelity is |<Ο_ideal|G|Ο_ideal>|^2, and if G|Ο_ideal> = c|Ο_ideal> with |c|=1, then that equals 1).
So then the fidelity F = probability that the overall error G is in the stabilizer of |Ο_ideal> (i.e., G|Ο_ideal> = (phase)*|Ο_ideal>) plus maybe contributions from errors that are not exactly stabilizers but have nonzero overlap? But wait: If G is not a stabilizer, then typically for a stabilizer state, the overlap <Ο|G|Ο> is 0. Because stabilizer states are eigenstates of stabilizers, and if G is not in the stabilizer group, then it will map to an orthogonal state. But is that always true? For a stabilizer state, if G is a Pauli that is not in the stabilizer group, then either it anticommutes with some stabilizer, so the expectation value is 0. So indeed, for a stabilizer state, <Ο|P|Ο> is either Β±1 if P is in the stabilizer group (up to phase) or 0 if not. So then the fidelity is exactly the probability that the overall error G is such that G is in the stabilizer group of |Ο_ideal>. But careful: There is also the possibility that the error occurs but then the state is not exactly G|Ο_ideal> because the errors are applied in the middle? But we already pushed them to the end. But wait: Is it valid to push errors through Hadamard gates? We did: H_0 commutes with E because E acts on qubits 2,1. And H_2? Actually, we had H_2 at the beginning. But then we applied E after CNOT_{21}. But that E is on qubits 2,1. H_2 acts on qubit2. So careful: E acts on qubits 2 and 1. H_2 acts on qubit2. They do not necessarily commute. But we already handled that: We had: U_actual = F CNOT_{03} H_0 E CNOT_{21} H_2. And we argued that H_0 commutes with E because H_0 acts on qubit0 and E on qubits 2,1. But what about H_2? H_2 is at the very right. Actually, the order: U_actual = F CNOT_{03} H_0 E CNOT_{21} H_2. Here, H_2 is applied to the initial state. Then CNOT_{21} is applied. Then E is applied. Then H_0 is applied. Then CNOT_{03} is applied. Then F is applied. So if we want to push E to the end, we need to commute it through H_0 and CNOT_{03}. We already commuted through H_0: H_0 and E commute because they act on different qubits. Then we commute through CNOT_{03}: CNOT_{03} and E commute because they act on disjoint sets? Check: CNOT_{03} acts on qubits 0 and 3. E acts on qubits 2 and 1. So they commute. So then indeed, U_actual = F E CNOT_{03} H_0 CNOT_{21} H_2 = F E U_perfect. So it’s valid. But wait: What about the Hadamard H_2? That is inside U_perfect. So it’s fine.
So then the final state, given errors E and F, is: |Ο> = (F E) U_perfect |0000> = (F E) |Ο_ideal>. And these errors are independent. So the overall channel is: Ο = β{E on {2,1}} β{F on {0,3}} P(E) P(F) (F E) |Ο_ideal><Ο_ideal| (F E)^β .
Then the fidelity is: F = <Ο_ideal| Ο |Ο_ideal> = β_{E,F} P(E)P(F) |<Ο_ideal| F E |Ο_ideal>|^2.
And as argued, for a stabilizer state, <Ο_ideal| P |Ο_ideal> is either 0 or 1 (in absolute value squared, it’s 1 if P is in the stabilizer group of |Ο_ideal>, and 0 otherwise). So we need to determine: Which Pauli operators G on the 4 qubits (that are of the form F * E, where E is on qubits {2,1} and F is on qubits {0,3}) are in the stabilizer of |Ο_ideal>? But careful: The errors are not arbitrary Paulis on all 4 qubits? They are products of a Pauli on qubits {0,3} and a Pauli on qubits {2,1}. So G = (F_0 β F_3) β (E_2 β E_1) but order: qubits: 0,1,2,3. So G = (F on qubit0) β (E on qubit1) β (E on qubit2) β (F on qubit3)? Actually, careful: E acts on qubits 2 and 1. So let E = E_2 β E_1. And F acts on qubits 0 and 3, so F = F_0 β F_3. So then G = F_0 β E_1 β E_2 β F_3.
So the overall error is a Pauli that factorizes between the pair (0,3) and (1,2) but not necessarily: Actually, it is: qubit0 comes from F, qubit1 from E, qubit2 from E, qubit3 from F. So it’s not necessarily a product of two independent Paulis on {0,3} and {1,2} because the Pauli on qubit1 and qubit2 are from the same error E, so they can be correlated? But they are independent in the sense that E can be any Pauli on two qubits. So indeed, G is such that the Pauli on qubit0 and qubit3 are from F, and on qubit1 and qubit2 are from E. But note: There is no constraint that the Pauli on qubit0 and qubit3 are the same? They are independent: F can be any two-qubit Pauli. So G is of the form:
G = (a Pauli on qubit0) β (a Pauli on qubit1) β (a Pauli on qubit2) β (a Pauli on qubit3) with the condition that the Pauli on qubit0 and qubit3 come from the same two-qubit Pauli? Actually, careful: F is a Pauli on qubits 0 and 3. That means F is one of the 16 Paulis on qubits 0 and 3. So it is of the form: F = i^k (X^{b0} Z^{c0})_0 β (X^{b3} Z^{c3})_3. But the phase factor is not important because we only care about the action on the state up to phase. Similarly, E on qubits 2 and 1: E = i^m (X^{d2} Z^{e2})_2 β (X^{d1} Z^{e1})_1.
So then G = (from F on qubit0) * (from E on qubit1) * (from E on qubit2) * (from F on qubit3) times a global phase. So indeed, the errors on qubits 0 and 3 are correlated? Actually, they are independent: The probability for a given F is: if F = I (on both qubits) then probability = 1-p; if F is any non-identity on qubits 0 and 3, then probability = p/15. But note: F = I means that on qubit0 and qubit3, the Pauli is identity. But if F is, say, X_0 I_3, that is a non-identity Pauli on the two-qubit system? But careful: The error channel: It produces one of the 15 non-identity two-qubit Paulis. The two-qubit Paulis are operators on two qubits. They are considered non-identity if they are not the identity on both qubits. So for example, X β I is non-identity because it is not IβI. So indeed, F can be such that it acts as identity on one qubit and non-identity on the other. So then G can have, for instance, Pauli X on qubit0 and identity on qubit3. So there is no constraint that the Pauli on qubit0 and qubit3 are the same. They are independent: F is any element of the Pauli group on two qubits except the identity? But wait: The error channel: It says: “produces one of the 15 non-identity two-qubit Paulis with equal probability p/15.” That means that if F is a Pauli on two qubits that is not the identity (i.e., not IβI), then its probability is p/15. And if F = IβI, then probability is 1-p. So indeed, F can be, for example, XβI, IβX, XβX, etc. So then G is: on qubit0: from F, on qubit3: from F, on qubit1: from E, on qubit2: from E. And these are independent.
Now, we need to determine: For which such G does G stabilize |Ο_ideal>? That is, G|Ο_ideal> = (phase)|Ο_ideal>. Equivalently, |<Ο_ideal|G|Ο_ideal>|^2 = 1.
Since |Ο_ideal> is a stabilizer state, its stabilizer group is the set of all Paulis that commute with all stabilizers of the state? Actually, for a stabilizer state, the state is the unique simultaneous +1 eigenvector of a set of commuting Paulis. The stabilizer group of the state is the group generated by these. For the logical GHZ state, what is its stabilizer? The state is: |Ο_ideal> = 1/2 (|0000> + |1001> + |0110> + |1111>). Let’s find some stabilizers. The code stabilizers: S1 = XXXX, S2 = ZZZZ. Check: XXXX|Ο_ideal> = ? For each term: XXXX|0000> = |1111>, so that gives |1111>; XXXX|1001> = |0110>; XXXX|0110> = |1001>; XXXX|1111> = |0000>. So indeed, XXXX|Ο_ideal> = |Ο_ideal>. Similarly, ZZZZ: ZZZZ|0000> = |0000>; ZZZZ|1001> = (-1)^(1+0+0+1?) Actually, careful: ZZZZ means apply Z on each qubit. For |1001>, the phase is: qubit0: 1 gives -1, qubit1: 0 gives +1, qubit2: 0 gives +1, qubit3: 1 gives -1, so product = (-1)(-1)=+1? Actually, more systematically: ZZZZ|a,b,c,d> = (-1)^(a+b+c+d) |a,b,c,d>. For |0000>, sum=0 -> +1; |1001>: sum=1+0+0+1=2 -> even -> +1; |0110>: 0+1+1+0=2 -> +1; |1111>: sum=4 -> +1. So indeed, ZZZZ stabilizes.
But there are more stabilizers specific to the GHZ state. The logical GHZ state on two qubits: (|00>+|11>)/β2. Its stabilizers include X_A X_B and Z_A Z_B? Actually, for a Bell state, the stabilizers are XβX and ZβZ (with appropriate signs). Here, the logical qubits A and B. Their logical operators: X_A = XIXI, X_B = XXII, so X_A X_B = (XβIβXβI) * (XβXβIβI) = (X^2 β X β X β I) = (I β X β X β I) but careful: Actually, multiplication: 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. So product: X_A X_B = (X0 X0) β (I1 X1) β (X2 I2) β (I3 I3) = (I0) β (X1) β (X2) β (I3) = X_1 X_2. So one stabilizer is X_1 X_2. Check: X_1 X_2|Ο_ideal>: For |0000>, becomes |0,1,1,0> = |0110>; for |1001>, becomes |1,1,1,1>? Actually, careful: X_1 X_2|1001> = |1, (1 flip), (1 flip), 1> = |1111>; for |0110>, becomes |0,0,0,0> = |0000>; for |1111>, becomes |1,0,0,1> = |1001>. So indeed, X_1 X_2|Ο_ideal> = |Ο_ideal>. So S3 = X_1 X_2.
Also, what about Z_A Z_B? Z_A = ZZII, Z_B = ZIZI, so product: Z_A Z_B = (Z0 Z0?) Actually: Z_A = Z on qubit0, Z on qubit1, I on qubit2, I on qubit3. Z_B = Z on qubit0, I on qubit1, Z on qubit2, I on qubit3. So product: Z_A Z_B = (Z0 Z0) β (Z1 I1) β (I2 Z2) β (I3 I3) = (I0) β (Z1) β (Z2) β (I3) = Z_1 Z_2. But check: Z_1 Z_2|Ο_ideal>: For |0000>, phase = +1; |1001>: qubit1=0, qubit2=0 so +1; |0110>: qubit1=1, qubit2=1 so (-1)(-1)=+1; |1111>: qubit1=1, qubit2=1 so +1. So Z_1 Z_2 also gives +1. But wait, are these independent? Actually, X_1 X_2 and Z_1 Z_2 commute? They anticommute on qubits 1 and 2? Actually, X and Z on the same qubit anticommute. But here, X_1 X_2 and Z_1 Z_2: On qubit1, X and Z anticommute, on qubit2, X and Z anticommute, so overall they commute because two anticommutations give a sign of (-1)(-1)=+1. So they are independent. But then we have stabilizers: S1 = XXXX, S2 = ZZZZ, S3 = X_1 X_2. That gives 3 generators. The stabilizer group of a 4-qubit state is of size 2^4 = 16 if it is a stabilizer state. Actually, a stabilizer state is defined by a subgroup of the Pauli group of size 2^n. Here n=4, so the stabilizer group should have 16 elements. The generators we have: S1, S2, S3. That gives 2^3 = 8 elements. So there is one more generator. What is the fourth stabilizer? The state is a logical GHZ state. For a Bell state on two qubits, the stabilizers are: XβX and ZβZ. But here, the logical qubits are encoded. Actually, the state |Ο_ideal> is not a full code space; it’s a specific state. Its stabilizer group should be of order 16. Let’s find another Pauli that fixes |Ο_ideal>. Consider: X_0 X_3? Check: X_0 X_3|0000> = |1001>; X_0 X_3|1001> = |0000>; X_0 X_3|0110> = |1111>; X_0 X_3|1111> = |0110>. So X_0 X_3 also gives the state. So S4 = X_0 X_3. But are these independent? S1 = XXXX, so S1 * S4 = X_1 X_2, which is S3. So actually, S1, S2, S4 are generators? Then S3 is not independent. Alternatively, we can take S1, S2, S4, and then what is the fourth? Possibly Z_0 Z_3? Check: Z_0 Z_3|0000> = |0000>; Z_0 Z_3|1001> = (-1)|1001>? Actually, careful: Z_0 Z_3|1001>: qubit0=1 gives -1, qubit3=1 gives -1, product = +1? Actually, (-1)(-1)=+1. So Z_0 Z_3 gives +1 on all terms? Check: |0110>: qubit0=0, qubit3=0 so +1; |1111>: qubit0=1, qubit3=1 so (+1) because (-1)(-1)=+1. So Z_0 Z_3 also stabilizes. But then S2 = ZZZZ, and Z_0 Z_3, then product gives Z_1 Z_2, which we already had. So maybe the stabilizer group is generated by: S1 = XXXX, S2 = ZZZZ, S4 = X_0 X_3, and then S5 = Z_0 Z_3? But then S1 * S4 = X_1 X_2, and S2 * S5 = Z_1 Z_2. So then the group has generators: XXXX, ZZZZ, X_0 X_3, Z_0 Z_3. That gives 2^4 = 16 elements. And indeed, these commute? Check: X_0 X_3 and Z_0 Z_3: On qubit0, X and Z anticommute, on qubit3, X and Z anticommute, so overall they commute. So yes, the stabilizer group of |Ο_ideal> is:
{ I, XXXX, ZZZZ, XXXX ZZZZ,
X_0 X_3, (X_0 X_3)(XXXX) = X_1 X_2, (X_0 X_3)(ZZZZ) = ? Actually, let’s systematically: The generators:
A = XXXX
B = ZZZZ
C = X_0 X_3
D = Z_0 Z_3
They are independent and commute. So the stabilizer group is all Paulis of the form: A^a B^b C^c D^d, where a,b,c,d in {0,1}. And these Paulis will act as:
A^a B^b C^c D^d = (X on all qubits)^a (Z on all qubits)^b (X_0 X_3)^c (Z_0 Z_3)^d.
What is the action on qubit1 and qubit2? That becomes: from A: X_1 X_2, from B: Z_1 Z_2, from C: nothing on 1,2, from D: nothing on 1,2. So on qubits 1,2, it’s (X_1 X_2)^a (Z_1 Z_2)^b. And on qubits 0,3, it’s (X_0 X_3)^(a+c) (Z_0 Z_3)^(b+d) times also from A: X_0 X_3^? Actually, careful: A = X_0 X_1 X_2 X_3, so it gives X on qubit0 and X on qubit3 as well. So indeed, the stabilizer group consists of Paulis that are of the form:
On qubit0: X^(a+c) Z^(b+d)
On qubit3: X^(a+c) Z^(b+d)
On qubit1: X^a Z^b
On qubit2: X^a Z^b
So the stabilizer group elements are exactly those Paulis that are “even” in the sense that the Pauli on qubit0 and qubit3 are the same, and the Pauli on qubit1 and qubit2 are the same. And also there is no condition on the relation between the pair (0,3) and (1,2)? Actually, they are independent: a,b,c,d can be arbitrary. So the stabilizer group S consists of all Paulis of the form:
G = (P on qubit0) β (Q on qubit1) β (Q on qubit2) β (P on qubit3)
where P and Q are Paulis (including identity) but with the additional condition that the phase? Actually, check: If we take a=0,b=0,c=1,d=0, then we get: C = X_0 X_3. So that gives P = X, Q = I. If we take a=1,b=0,c=0,d=0, then A = XXXX gives: on qubit0: X, on qubit1: X, on qubit2: X, on qubit3: X, so that is P = X, Q = X. So indeed, P and Q can be arbitrary Paulis? But wait, are there any restrictions? For a given P and Q, can we always find a,b,c,d such that: On qubit0: X^(a+c) Z^(b+d) = P, and on qubit1: X^a Z^b = Q? That means: if P = X^{p_x} Z^{p_z} and Q = X^{q_x} Z^{q_z} (with p_x, p_z, q_x, q_z in {0,1}), then we need:
a+c = p_x mod 2, b+d = p_z mod 2,
a = q_x, b = q_z.
So then c = p_x - q_x mod 2, d = p_z - q_z mod 2. So indeed, for any P and Q, there is a stabilizer element. So the stabilizer group of |Ο_ideal> is exactly:
S = { G such that G = P_0 β Q_1 β Q_2 β P_3 } where P and Q are any Paulis (including I) on a single qubit. But wait: Check: What about the phase? For example, if P = I and Q = I, then that’s identity. If P = Z and Q = I, then that is Z_0 I_1 I_2 Z_3. Is that in the stabilizer? According to our generators, can we get that? We want: on qubit0: Z, on qubit3: Z, and on qubits 1,2: I. That corresponds to: a+c should give: for qubit0, we want no X part, so a+c=0 mod2; and b+d should give: for qubit0, we want Z, so b+d=1 mod2. And on qubit1: a=0, b=0. Then c=0, d=1 mod2. So that gives D = Z_0 Z_3. So yes.
So the condition for G to be in the stabilizer of |Ο_ideal> is:
G = (something on qubit0) β (something on qubit1) β (something on qubit2) β (something on qubit3) such that the Pauli on qubit0 and qubit3 are the same, and the Pauli on qubit1 and qubit2 are the same. But careful: Is that sufficient? Check: What if G = X_0 β I_1 β I_2 β I_3? That would mean P = X, Q = I. But then on qubit0: X, on qubit3: I. That is not the same. So that is not in the stabilizer. So indeed, the condition is: The Pauli on qubit0 must equal the Pauli on qubit3, and the Pauli on qubit1 must equal the Pauli on qubit2.
Now, our overall error G is: G = F_0 β E_1 β E_2 β F_3. But careful: F is on qubits 0 and 3. So F gives: on qubit0: some Pauli, and on qubit3: some Pauli. But these are not necessarily the same. Because F is an arbitrary two-qubit Pauli. So F can be, for example, X_0 I_3. Then G would have: qubit0: X, qubit3: I. And E gives: on qubit1 and qubit2, they are from the same Pauli? Actually, E is on qubits 2 and 1. So E gives: on qubit1: some Pauli, and on qubit2: some Pauli. But these are from the same two-qubit Pauli? Actually, careful: E is a Pauli on qubits 2 and 1. That means E = (Pauli on qubit2) β (Pauli on qubit1) (order: usually we list qubits in order? But here, it’s CNOT_{21} so the control is qubit2 and target is qubit1. But the error channel is on the two qubits involved. So E is an operator on the Hilbert space of qubits 2 and 1. So it is of the form: E = (something on qubit2) β (something on qubit1). So indeed, if E is, say, I_2 β X_1, then on qubit1 we get X, and on qubit2 we get I. So then G would have: qubit1: X, qubit2: I. So then the condition for G to be in the stabilizer is: The Pauli from F on qubit0 must equal the Pauli from F on qubit3. And the Pauli from E on qubit1 must equal the Pauli from E on qubit2.
But wait: Could there be cases where even if these are not equal, the product might accidentally be a stabilizer? For example, suppose F gives: on qubit0: X, on qubit3: Z. And E gives: on qubit1: X, on qubit2: Z. Then G = X_0 β X_1 β Z_2 β Z_3. Is that in the stabilizer? For it to be in the stabilizer, we need that the Pauli on qubit0 and qubit3 are the same. Here they are X and Z, which are not the same. So it’s not. What if F gives: on qubit0: X, on qubit3: X? Then it would be stabilizer if also E gives: on qubit1: something and on qubit2: the same something. So indeed, the condition is: For the error from the first CNOT (on qubits 2,1), we need that the Pauli on qubit2 and qubit1 are the same. And for the error from the second CNOT (on qubits 0,3), we need that the Pauli on qubit0 and qubit3 are the same.
But wait: There is also the possibility that the overall error is a stabilizer even if individually they are not? For example, if F gives: on qubit0: X, on qubit3: I, and E gives: on qubit1: I, on qubit2: X? Then G = X_0 β I_1 β X_2 β I_3. That is not of the form: qubit0 and qubit3 are the same? They are X and I, so no. What if F gives: on qubit0: X, on qubit3: Y? That is not the same. So indeed, the condition is exactly: For the error on the CNOT_{03} gate, the error Pauli F must be such that its action on qubit0 and qubit3 are identical. And for the error on the CNOT_{21} gate, the error Pauli E must be such that its action on qubit2 and qubit1 are identical.
But wait: There is also the possibility that the error is not exactly identity but a phase factor? But as argued, if it is a stabilizer, then the fidelity is 1. So we want the probability that both errors are of that type.
Now, what are the probabilities? For the CNOT_{21} error: E is a Pauli on qubits {2,1}. There are 16 Paulis total. The probability: P(E = I) = 1-p. And for any non-identity Pauli, probability = p/15. Among these, which ones have the property that the Pauli on qubit2 and qubit1 are the same? That means E should be of the form: (P on qubit2) β (P on qubit1) for some Pauli P (which can be I, X, Y, Z). But careful: If P = I, then that’s identity. So the non-identity ones that satisfy this: They are: XβX, YβY, ZβZ. Also, what about ones like IβX? That is not the same because on qubit2 it’s I and on qubit1 it’s X. So there are 3 non-identity Paulis that are “same on both qubits”. But wait: Also, what about ones that are like: i * (XβX)? Actually, the Pauli group elements are defined up to phase? But here, the error channel: “produces one of the 15 non-identity two-qubit Paulis”. Typically, the two-qubit Paulis are considered as the set {I, X, Y, Z}β{I, X, Y, Z} excluding the identity. But careful: They are not taken with phases? Actually, the depolarizing channel is usually defined as: With probability p, apply an error from the set of Pauli errors (excluding identity) uniformly. And these Pauli errors are usually taken to be the ones with no phase factors? Actually, the Pauli matrices are Hermitian and square to identity. So the non-identity Paulis on two qubits are: There are 15 of them. They are: For qubits i and j, the set is: {P β Q} where P, Q β {I, X, Y, Z} but not both I. But note: XβY is different from YβX, etc. So indeed, there are 15. Among these, the ones that are “same on both” are: XβX, YβY, ZβZ. So there are 3.
So for the CNOT_{21} error, the probability that the error is a stabilizer (i.e., that it does not actually cause an error that reduces fidelity) is: P(stab from first) = P(E such that E acts as the same Pauli on both qubits) = P(E = I) + (3/15)p = 1-p + (p/5) = 1 - (4/5)p? Actually, careful: For non-identity, total probability p is distributed over 15 errors, so each specific non-identity error has probability p/15. So the probability that E is one of {XβX, YβY, ZβZ} is 3(p/15) = p/5. So overall, probability that the error from the first CNOT is “good” (i.e., it results in a stabilizer error overall) is: (1-p) + (p/5) = 1 - (4/5)p.
Similarly, for the CNOT_{03} error: F is a Pauli on qubits {0,3}. The condition for it to be “good” is that F acts as the same Pauli on qubit0 and qubit3. That is: F should be either identity, or one of: XβX, YβY, ZβZ. So the probability that F is good is also: 1-p + (p/5) = 1 - (4/5)p.
And these errors are independent. So the overall probability that the final state is exactly the ideal state (up to a phase) is: (1 - (4/5)p)^2? But wait: Is that the fidelity? Because if both errors are good, then G is in the stabilizer, so the state is ideal. But what if one error is good and the other is not? Then G is not in the stabilizer, so the overlap is 0. So then the fidelity F = probability that both errors are good = [1 - (4/5)p]^2 = 1 - (8/5)p + (16/25)p^2.
But wait: Could there be cases where the errors are not individually good but their product is good? For example, suppose from the first CNOT, we get an error E that is not “same on both” but from the second, we get an error F that is not “same on both”, but when multiplied, they might become same on both? But careful: G = F E. But F acts on qubits 0 and 3, E acts on qubits 2 and 1. They act on disjoint sets. So the condition for G to be a stabilizer is that on qubits 0 and 3, the Pauli from F must be the same, and on qubits 1 and 2, the Pauli from E must be the same. There is no cross term because they are on different qubits. So if F is not such that its action on qubit0 and qubit3 are the same, then no matter what E is, on qubits 0 and 3, G will have different Paulis. Similarly, if E is not such that its action on qubit1 and qubit2 are the same, then on qubits 1 and 2, G will have different Paulis. So indeed, for G to be in the stabilizer, we need that F is “good” (i.e., F’s Pauli on qubit0 equals its Pauli on qubit3) and E is “good” (E’s Pauli on qubit1 equals its Pauli on qubit2). So the fidelity is exactly the product of the probabilities that each error is good. So F = (1 - (4/5)p)^2.
But wait: There is also the possibility that the error is such that it gives a phase factor? But that is included in “good” because if it’s the same Pauli, it might be, say, XβX, and that is in the stabilizer? Check: Is XβX on qubits 0 and 3 a stabilizer? Yes, because that is X_0 X_3. And on qubits 1 and 2, if it is XβX, that is X_1 X_2, which is also a stabilizer. So indeed.
So then the physical state fidelity is F = (1 - (4/5)p)^2 = 1 - (8/5)p + (16/25)p^2.
But wait: Is that the entire story? There is also the possibility that the error occurs but then the state is not exactly G|Ο_ideal> because the errors are applied after the gates. But we already pushed them to the end. So it seems correct.
However, we should check a specific example: Suppose on the first CNOT, the error is E = X_2 β I_1 (so on qubit2: X, on qubit1: I). That is not good because the Paulis on qubits 2 and 1 are different. Then the overall error is G = (from F, if F is identity) then G = I_0 β I_1 β X_2 β I_3. Is that a stabilizer? That would require that on qubits 1 and 2, they are the same. But here qubit1 is I, qubit2 is X, so no. So fidelity contribution 0.
What if on the first CNOT, error is E = X_2 β X_1 (good), and on the second, error is F = X_0 β I_3 (not good). Then G = X_0 β X_1 β X_2 β I_3. On qubits 0 and 3: X and I are different, so not stabilizer. So indeed.
So then the fidelity is the probability that both errors are of the type that are “same on the pair”. And that probability is: For each CNOT, probability of no error or error that is one of {XβX, YβY, ZβZ} is: (1-p) + 3*(p/15) = 1-p + p/5 = 1 - (4/5)p. And since they are independent, overall probability = (1 - (4/5)p)^2.
But wait: There is also the possibility that the error is such that it is a stabilizer but not necessarily identity? But that is included: if it is a stabilizer, then the state is ideal. So yes.
So the physical state fidelity F = (1 - 4p/5)^2.
But is that the answer? It says “physical state fidelity”. That is the overlap between the ideal state and the actual state. But careful: The actual state is a mixture. The fidelity is the average of the square of the overlap. And since for each error pattern, the overlap is either 1 or 0, the fidelity is exactly the probability that the error pattern is such that the final state is the ideal state. So that is correct.
But wait: Could there be errors that are not Pauli? But the error channel is depolarizing, so it produces Pauli errors. So it’s fine.
Thus, the answer: F = 1 - (8/5)p + (16/25)p^2.
But maybe we need to express it as: F = 1 - (8/5)p + O(p^2). But the problem likely expects an exact expression.
Double-check: The probability that a given CNOT gate error is “harmless” (i.e., does not cause a logical error) is: The error Pauli on the two qubits must be such that it is either identity or of the form PβP. There are 1 + 3 = 4 such Paulis out of the 16 total. But careful: The error channel: With probability 1-p, we get identity. With probability p, we get a non-identity Pauli uniformly among 15. So the probability of a specific non-identity Pauli is p/15. So the probability that the error is harmless is: 1-p + 3*(p/15) = 1-p + p/5 = 1 - (4/5)p. So that is correct.
And since there are two CNOT gates, and they are independent, the overall probability that both are harmless is (1 - 4p/5)^2.
So the fidelity F = (1 - 4p/5)^2.
Thus, the answer: F(p) = 1 - (8/5)p + (16/25)p^2.
But wait: Could there be contributions from errors that are not exactly stabilizers but still have some overlap? For example, if an error occurs that is a logical operator? But logical operators on the code would take the state to an orthogonal logical state. For instance, if we apply X_A, then |00> becomes |10> and |11> becomes |01>, so the state becomes (|10>+|01>)/β2, which is orthogonal to the GHZ state? Actually, for two qubits, the Bell states are orthogonal. So indeed, overlap 0. So no.
Thus, the answer is as above.
So final answer: F = (1 - 4p/5)^2.
But wait: There is also the possibility of errors that are products of stabilizers? But that is already included.
So I’ll answer: The physical state fidelity is F = 1 - (8/5)p + (16/25)p^2.
But the problem might want it in a simplified form: F = (5 - 4p)^2/25.
So I’ll put: F(p) = \frac{(5-4p)^2}{25}.
I’ll check: When p=0, F=1; when p is small, F β 1 - (8/5)p.
That seems plausible.
Thus, final answer.
I’ll now write the step-by-step derivation.