We are given: “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: (CNOT_{03}) (H_0) (CNOT_{21}) (H_2). But careful: The equation is written in matrix multiplication order, while quantum operations occur in reverse order. So the actual circuit order from initial state to final state is:
Start with initial state? Typically, we assume initial state is |0000>? But problem doesn’t explicitly say initial state? But we want to prepare a logical two-qubit GHZ state: (|00>AB + |11>_AB)/√2. So the circuit is supposed to produce that state. So initial state is presumably |0000>? But wait: The circuit: (CNOT{03}) (H_0) (CNOT_{21}) (H_2). In matrix multiplication order: That means if we write U = CNOT_{03} * H_0 * CNOT_{21} * H_2, then the actual circuit applies H_2 first, then CNOT_{21}, then H_0, then CNOT_{03}. So order:
Step 1: Apply H on qubit 2.
Step 2: Apply CNOT with control qubit 2 and target qubit 1.
Step 3: Apply H on qubit 0.
Step 4: Apply CNOT with control qubit 0 and target qubit 3.
So initial state: |0000>? But then check:
After H_2: qubit2 becomes (|0>+|1>)/√2, so state: |00> (on qubits 0,1) and (|0>+|1>)/√2 on qubit2, and qubit3: |0> so state: |0000> + |0010>? Actually careful: Qubits: indices: 0,1,2,3. Initially: |0>|0>|0>|0>.
After H_2: becomes: (1/√2)(|0>|0>|0>|0> + |0>|0>|1>|0>) = (|0000> + |0010>)/√2.
Then CNOT_{21}: control qubit 2, target qubit 1. So if qubit2 is 1, flip qubit1.
So state becomes: (1/√2)(|0000> + |0110>) because: For first term: qubit2=0 so no flip: remains |0000>. For second: qubit2=1 so flip qubit1: from |0> to |1>: so becomes |0,1,1,0> = |0110>.
Then H_0: Apply Hadamard on qubit0. So state: (1/√2)( H|0>|0>|0>|0> + H|0>|1>|1>|0> ) = (1/√2)( (|0>+|1>)/√2 |0>|0>|0> + (|0>+|1>)/√2 |1>|1>|0> ) = 1/√2 * 1/√2 ( |0000> + |1000> + |0110> + |1110> ) = 1/2 ( |0000> + |1000> + |0110> + |1110> ).
Then CNOT_{03}: control qubit0, target qubit3. So if qubit0 is 1, flip qubit3.
So state:
For |0000>: qubit0=0 so remains: |0000>
For |1000>: qubit0=1 so flip qubit3: becomes |1001>
For |0110>: qubit0=0 so remains: |0110>
For |1110>: qubit0=1 so flip qubit3: becomes |1111>
So final state: 1/2 (|0000> + |1001> + |0110> + |1111>).
That state is: (|00>_A? But wait: The logical qubits: A and B. Their logical operators: X_A = XIXI, X_B=XXII, Z_A=ZZII, Z_B=ZIZI.
We want logical GHZ: (|00>_AB + |11>_AB)/√2. Check: What is logical |00>? The code [[4,2,2]] encodes two qubits. The stabilizers: XXXX and ZZZZ. The logical states? Possibly:
|00>_L = (|0000> + |1111>)/√2? But then |11>_L = (|0110> + |1001>)/√2? Actually check:
Given logical operators:
X_A = XIXI. So acting on state |0000>? But careful: The code space is 4-dimensional? Actually [[4,2,2]] means: n=4, k=2, d=2. So code space dimension 2^2=4. The stabilizers: XXXX and ZZZZ. They commute? Actually XXXX and ZZZZ commute? Check: XXXX * ZZZZ = (XZ)(XZ)(XZ)(XZ) = (-iY)(-iY)(-iY)(-iY) =? Actually easier: They commute because each pair: X and Z anticommute, but product over all qubits: XXXX and ZZZZ: Actually, X_i and Z_j commute if i≠j, but here they are on same qubits? Actually, on each qubit, X and Z anticommute. So product: (X1 X2 X3 X4) and (Z1 Z2 Z3 Z4): For each qubit, X_i Z_i = -Z_i X_i. So overall, the commutator: XXXX ZZZZ = (X1Z1)(X2Z2)(X3Z3)(X4Z4) = (-Z1X1)(-Z2X2)(-Z3X3)(-Z4X4) = (-1)^4 (Z1X1 Z2X2 Z3X3 Z4X4) = (Z1Z2Z3Z4)(X1X2X3X4) = ZZZZ XXXX. So they commute. So stabilizers are valid.
The code space: states that are +1 eigenstates of both XXXX and ZZZZ.
Check our final state:
|ψ> = 1/2 (|0000> + |1001> + |0110> + |1111>).
Compute XXXX|ψ> =?
XXXX|0000> = |1111>
XXXX|1001> = |0110>? Because flip all: 1001 -> 0110.
XXXX|0110> = |1001>
XXXX|1111> = |0000>
So XXXX|ψ> = 1/2 (|1111> + |0110> + |1001> + |0000>) = |ψ>. So it’s +1.
ZZZZ|ψ> =?
ZZZZ|0000> = |0000> because all phases: Z on |0> gives +1.
ZZZZ|1001> =? Z on qubit0: |1> gives -1, qubit1: |0> gives +1, qubit2: |0> gives +1, qubit3: |1> gives -1, so product = (-1)(-1)=+1? Actually careful: ZZZZ means Z⊗Z⊗Z⊗Z. So on |1001>, eigenvalue: for qubit0: -1, qubit1: +1, qubit2: +1, qubit3: -1, so product = (-1)(+1)(+1)(-1)= +1. So |1001> remains.
ZZZZ|0110>: qubit0:0 -> +1, qubit1:1 -> -1, qubit2:1 -> -1, qubit3:0 -> +1, product = (+1)(-1)(-1)*(+1)= +1.
ZZZZ|1111>: all ones: (-1)^4 = +1.
So indeed, |ψ> is in the code space. And it is a superposition of two basis states? Actually the code space is 4-dimensional. But our state is a specific state. And it is the logical GHZ state? Check: Logical operators:
X_A = XIXI. Compute X_A on |ψ>:
X_A|0000> = |0100>? But wait: X_A = qubit0: X, qubit1: I, qubit2: X, qubit3: I. So on |0000>, becomes |0? Actually careful: indices: 0,1,2,3. X_A acts on qubit0 and qubit2. So |0000> becomes |1?0? Actually: qubit0: flip: 0->1, qubit2: flip: 0->1, so becomes |1,0,1,0> = |1010>. That is not in the superposition? So maybe our state is not an eigenstate of X_A? But we want GHZ: (|00>+|11>)/√2. That state is not a code state? Actually, it is a state on two logical qubits. They are encoded. So we want to check: What are the logical basis states? They are usually defined such that they are eigenvectors of Z_A and Z_B. So we want Z_A and Z_B.
Z_A = ZZII. So on our state:
Z_A|ψ> =?
For |0000>: Z_A gives: qubit0: Z, qubit1: Z, so on |00> gives +1, so remains.
|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 Z_A|ψ> = 1/2 (|0000> - |1001> - |0110> + |1111>). That is not ±|ψ> generally. So |ψ> is not an eigenstate of Z_A. But wait, the GHZ state is (|00>+|11>)/√2. That state is not an eigenstate of Z⊗I? Actually, on two qubits, Z⊗I on (|00>+|11>)/√2 gives (|00> - |11>)/√2, so it’s not an eigenstate. So that’s fine.
Maybe we check: The logical state (|00>+|11>)/√2 should have the property that if we measure Z_A and Z_B, we get correlated: either both +1 or both -1? Actually, for GHZ, if we measure Z on both, we get either (0,0) or (1,1) with equal probability. So our state: The probability to get Z_A=+1? That happens for |0000> and |1111> so amplitude 1/2 each, so probability 1/2. And Z_A=-1 for |1001> and |0110>, so probability 1/2. And similarly Z_B? Z_B = ZIZI. Compute on our state:
Z_B|0000>: qubit0: Z gives +1, qubit2: Z gives +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, Z_B gives +1 on |0000> and |1111> and -1 on the others. So indeed, our state is such that Z_A and Z_B are always equal. So it is the GHZ state: (|00>_L + |11>_L)/√2, if we identify |00>_L as the state with Z_A=+1, Z_B=+1, and |11>_L as the state with Z_A=-1, Z_B=-1. But careful: The code space has 4 states. The logical basis can be chosen as:
|00>_L = (|0000>+|1111>)/√2,
|01>_L = (|0011>+|1100>)/√2? Actually, need to check stabilizers? But anyway, our state is indeed:
|ψ> = 1/2 (|0000> + |1001> + |0110> + |1111>) =
= 1/√2 [ (|0000>+|1111>)/√2 + (|1001>+|0110>)/√2 ].
And note that (|1001>+|0110>)/√2 is actually the logical |11>? Because then Z_A on that: gives -1 on each, and Z_B gives -1 on each. So yes.
So circuit produces the desired logical GHZ state.
Now, we introduce errors: Each CNOT gate is followed by a two-qubit depolarizing error channel. There are two CNOT gates: CNOT_{21} and CNOT_{03}. So after each CNOT, we apply an error channel on the two qubits involved. The error channel: With probability p, an error occurs. And if an error occurs, it is uniformly chosen among the 15 non-identity two-qubit Paulis. So probability of no error from a CNOT is (1-p). And if error occurs, each specific Pauli error (from the set of 15) has probability p/15.
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 p?”
Interpretation: We want the fidelity between the ideal state (without errors) and the actual state (with errors) after the circuit. But careful: The circuit has gates: H_2, then CNOT_{21} (with error), then H_0, then CNOT_{03} (with error). But wait: The problem statement: “each CNOT_{ij} gate in the circuit has a two qubit depolarizing error channel following it”. So that means: After applying CNOT_{21}, we apply the error channel on qubits 2 and 1. And after applying CNOT_{03}, we apply the error channel on qubits 0 and 3.
Also, note: The Hadamard gates are assumed perfect? Probably yes. So only errors come from CNOT gates.
We want the fidelity F = <ψ_ideal| ρ_actual |ψ_ideal> where ρ_actual is the state after the circuit with errors.
We can compute this by tracing over the error processes. The circuit is:
Start with |0000>.
Apply H_2: perfect.
Then apply CNOT_{21} followed by error channel on qubits (2,1).
Then apply H_0: perfect.
Then apply CNOT_{03} followed by error channel on qubits (0,3).
So we want to compute the final density matrix ρ. Since errors are independent on each CNOT, we can compute the effect of each error channel on the state evolution.
Let’s denote:
U1 = CNOT_{21}
U2 = CNOT_{03}
And Hadamards: H2 and H0.
So circuit: U = U2 * H0 * U1 * H2. (But careful: Order: Actually, the circuit is: H2, then U1, then H0, then U2. So overall unitary: U = U2 * H0 * U1 * H2.)
Ideal state: |ψ_ideal> = U |0000>.
Now, with errors: After U1, we apply error channel on qubits 2 and 1. That error channel: For each Pauli E from the set of two-qubit Paulis on qubits (2,1) (excluding identity), with probability p/15, we get error E. And with probability 1-p, we get identity.
So after step: state becomes: ρ1 = (1-p) U1 (H2|0000><0000|H2†) U1† + (p/15) ∑{E in Paulis on (2,1) non-identity} E U1 (H2|0000><0000|H2†) U1† E†.
But note: E are Pauli operators, so they are unitary and Hermitian. So E† = E.
So ρ1 = (1-p) |φ1><φ1| + (p/15) ∑{E ≠ I} E |φ1><φ1| E, where |φ1> = U1 H2 |0000>.
But careful: Actually, the error channel is applied after U1. So the state after U1 is |φ1> = U1 H2 |0000>. Then error channel: with probability 1-p, no error; with probability p, an error occurs, and then the state becomes E|φ1> for some E. But then we average over E? Actually, the depolarizing channel: It is: ρ -> (1-p) ρ + (p/15) ∑_{E ≠ I} E ρ E. So yes.
Then after that, we apply H0 (perfect). So state becomes: ρ2 = H0 ρ1 H0†.
Then apply U2 (CNOT_{03}) perfect? Actually, careful: The circuit: after H0, we apply U2. But then after U2, we apply the error channel on qubits (0,3). So after U2, we get state: |φ2> = U2 H0 |φ1>? Actually, careful: The process:
After step 1: ρ1 (on qubits 0,1,2,3).
Then apply H0 on qubit0. So ρ2 = (H0 ⊗ I_{1,2,3}) ρ1 (H0† ⊗ I).
Then apply U2 (CNOT_{03}). So then state becomes: ρ3 = U2 ρ2 U2†.
Then apply error channel on qubits (0,3): That gives: ρ_final = (1-p) ρ3 + (p/15) ∑_{F in Paulis on (0,3) non-identity} F ρ3 F.
And we want fidelity: F = <ψ_ideal| ρ_final |ψ_ideal>, where |ψ_ideal> = U2 H0 U1 H2 |0000> = U |0000>.
Because the errors are independent and the circuit is linear, we can compute the fidelity as the product of the fidelities from each error step? But careful: The errors occur on different sets of qubits and they might not commute with subsequent gates? But we can compute exactly.
Alternatively, we can compute the effect of an error on the final state. The ideal final state is |ψ_ideal>. Now, if an error occurs at the first CNOT step (on qubits 2,1), that error E will be propagated through the subsequent gates H0 and U2. So effectively, if an error E occurs at the first step, then the final state becomes: U2 H0 E U1 H2 |0000>? But careful: The error happens after U1. So the state becomes E U1 H2 |0000>. Then we apply H0 on qubit0. That gives H0 E U1 H2 |0000>. But note: H0 acts only on qubit0. And E acts on qubits 2 and 1. They commute because they act on different qubits? Actually, qubit0 is separate from qubits 1 and 2? Yes, qubits are 0,1,2,3. So H0 and E commute if E acts on qubits 1 and 2? But careful: H0 acts on qubit0. E acts on qubits 2 and 1. They act on disjoint sets, so they commute. So then state becomes: E H0 U1 H2 |0000>. Then apply U2 (CNOT_{03}). That gives: U2 E H0 U1 H2 |0000>. But does U2 commute with E? U2 acts on qubits 0 and 3. E acts on qubits 1 and 2. They act on disjoint sets, so they commute. So then state becomes: E U2 H0 U1 H2 |0000> = E |ψ_ideal>. So indeed, an error E from the first CNOT step simply becomes a Pauli error on the final state: The final state becomes E |ψ_ideal>, where E is a Pauli on qubits 1 and 2? But wait: E originally acts on qubits 2 and 1. But after commuting through, it remains the same Pauli on those qubits. So any error from the first CNOT step becomes a Pauli error on the final state on qubits 1 and 2.
Similarly, an error from the second CNOT step: After U2, we apply error F on qubits (0,3). That error F directly acts on the ideal state? But careful: The ideal state after U2 is |ψ_ideal>? Actually, if there were no errors from first step, then after U2, the state is |ψ_ideal>. Then error F gives F |ψ_ideal>. So errors from the second step become Pauli errors on qubits 0 and 3 on the final state.
But wait: There is also the possibility of errors from both steps. But since errors are independent, the overall final state is a mixture: With probability (1-p)^2, no errors occur, so state is |ψ_ideal>.
With probability p(1-p) from first error only: then state becomes E |ψ_ideal> for some E (on qubits 1,2) with probability p/15 each.
With probability (1-p)p from second error only: then state becomes F |ψ_ideal> for some F (on qubits 0,3) with probability p/15 each.
With probability p^2 from both errors: then state becomes F E |ψ_ideal>? But careful: If both errors occur, then the first error gives E, and then after H0 and U2, we get E |ψ_ideal> as argued? But then the second error F acts on that: F E |ψ_ideal>. But note: F acts on qubits 0 and 3, and E acts on qubits 1 and 2. They commute. So indeed, the combined error is just the product F E. And since these are independent, the probability for a specific pair (E, F) is (p/15)^2.
So overall, the final density matrix is:
ρ_final = (1-p)^2 |ψ_ideal><ψ_ideal|
+ (p/15)(1-p) ∑_{E in Paulis on {1,2} non-identity} |E ψ_ideal><F E ψ_ideal|.
But wait: Is that correct? Check: The error channels are applied independently. So yes.
Then the fidelity F = <ψ_ideal| ρ_final |ψ_ideal>.
That equals:
(1-p)^2 * 1
+ (p/15)(1-p) ∑_{E} <ψ_ideal|E|ψ_ideal><ψ_ideal|E|ψ_ideal>? Actually careful: The terms are projectors: |E ψ><E ψ|. So <ψ| |E ψ> = |<ψ|E|ψ>|^2.
Similarly, for F: |<ψ|F|ψ>|^2.
And for both: |<ψ|F E|ψ>|^2.
So fidelity = (1-p)^2 + (p/15)(1-p) [∑{E on {1,2} non-identity} |<ψ|E|ψ>|^2] + (p/15)(1-p) [∑{F on {0,3} non-identity} |<ψ|F|ψ>|^2] + (p/15)^2 [∑_{E on {1,2}, F on {0,3} non-identity} |<ψ|F E|ψ>|^2].
So we need to compute these overlaps: <ψ|P|ψ> for various Pauli operators P that act on subsets of qubits. But careful: Our state |ψ> is the ideal state: |ψ> = 1/2 (|0000> + |1001> + |0110> + |1111>).
We need to compute for each Pauli operator on the specified qubits, the expectation value <ψ|P|ψ>? Actually, we need |<ψ|P|ψ>|^2. But note: Since Pauli operators are Hermitian and unitary, they have eigenvalues ±1. But our state might not be an eigenstate. But we can compute explicitly.
Let’s denote the state:
|ψ> = (|0000> + |1001> + |0110> + |1111>)/2.
We want to compute <ψ|P|ψ> for a Pauli operator P. Since Pauli operators are tensor products of I, X, Y, Z on each qubit. But careful: The Paulis we consider: For first set: E acts on qubits 1 and 2. So E is of the form: P_{1} ⊗ P_{2} (on qubits 1 and 2) and identity on qubits 0 and 3.
For second set: F acts on qubits 0 and 3. So F is of the form: P_{0} ⊗ P_{3} and identity on qubits 1 and 2.
And for both: F E acts on all qubits? But careful: That product is on qubits 0,3 and on qubits 1,2. So it’s a Pauli on all 4 qubits. But we sum over all non-identity on the respective sets. So we need to compute for each such Pauli, the overlap <ψ|P|ψ>.
Because the state |ψ> is symmetric in a certain pattern? Let’s list the basis states:
|a,b,c,d> with a,b,c,d in {0,1}. And |ψ> has nonzero amplitudes only for states where:
0000, 1001, 0110, 1111.
Notice pattern: The sum of the bits? For these, a+d? Actually, 0000: a=0,d=0; 1001: a=1,d=1; 0110: a=0,d=0? Actually, 0110: a=0,d=0; 1111: a=1,d=1. So it seems that a and d are always equal? Check: 0000: 0=0; 1001: 1=1; 0110: 0=0; 1111: 1=1. So indeed, qubit0 and qubit3 are always the same. Also, look at qubits 1 and 2: For 0000: b=0,c=0; 1001: b=0,c=0; 0110: b=1,c=1; 1111: b=1,c=1. So qubits 1 and 2 are also always the same. So |ψ> is actually:
|ψ> = 1/2 (|0,0,0,0> + |1,0,0,1> + |0,1,1,0> + |1,1,1,1>) but careful: That ordering: qubits: 0,1,2,3. So indeed, condition: qubit0 = qubit3, and qubit1 = qubit2.
So we can write: |ψ> = 1/2 (|0,0,0,0> + |1,0,0,1> + |0,1,1,0> + |1,1,1,1>).
That might simplify computations.
Now, consider a Pauli operator on qubits 1 and 2. It is of the form: I ⊗ (P_{1} ⊗ P_{2}) ⊗ I? Actually careful: The qubits order: 0,1,2,3. So an operator on qubits 1 and 2 only: It acts as identity on qubit0 and qubit3. So let E = I_0 ⊗ A ⊗ B ⊗ I_3, where A and B are Pauli matrices (X, Y, Z) but not both I? Actually, we sum over non-identity on the pair. So A and B can be any Pauli from {X,Y,Z}? But wait: The set of two-qubit Paulis on qubits 1 and 2: There are 15 such operators: They are all products of Pauli matrices on qubit1 and qubit2, excluding the identity on both. But note: They include operators like X⊗I, I⊗X, etc. But careful: The error channel is on the two qubits together. So the errors are two-qubit Pauli operators on that pair. That set includes operators that act on only one qubit? Yes, because those are non-identity on the pair? For example, X⊗I is not the identity on the pair because identity on two qubits is I⊗I. So indeed, the set is: All Pauli operators on two qubits except I⊗I. So we have:
On qubits 1 and 2, the Paulis are:
X⊗I, Y⊗I, Z⊗I,
I⊗X, I⊗Y, I⊗Z,
X⊗X, X⊗Y, X⊗Z,
Y⊗X, Y⊗Y, Y⊗Z,
Z⊗X, Z⊗Y, Z⊗Z.
So 15 total.
We want to compute <ψ|E|ψ> for each such E. But note: Because of the symmetry of |ψ>? Actually, |ψ> has the property that qubits 1 and 2 are always equal. So if we apply an operator that does not preserve that symmetry, then E|ψ> might be orthogonal to |ψ>? Let’s compute systematically.
Write |ψ> = 1/2 (|0,0,0,0> + |1,0,0,1> + |0,1,1,0> + |1,1,1,1>).
For an operator E acting on qubits 1 and 2 only. So E = I_0 ⊗ O ⊗ I_3, where O is a 4x4 matrix on qubits 1 and 2. Then E|ψ> = 1/2 ( |0> ⊗ (O|00>) ⊗ |0> + |1> ⊗ (O|00>) ⊗ |1> + |0> ⊗ (O|11>) ⊗ |0> + |1> ⊗ (O|11>) ⊗ |1> ). Because on the terms: |0,0,0,0> becomes: qubits1,2: |00> so O|00>; similarly, |1,0,0,1>: qubits1,2: |00> so O|00>; |0,1,1,0>: qubits1,2: |11> so O|11>; |1,1,1,1>: qubits1,2: |11> so O|11>.
So then <ψ|E|ψ> = 1/4 [ <00|O|00> + <00|O|00> + <11|O|11> + <11|O|11>? Actually careful:
<ψ|E|ψ> = (1/2)(1/2) sum? Let’s do properly:
<ψ|E|ψ> = ∑{a,d in {0,1}}? Actually, we can compute:
<ψ|E|ψ> = 1/4 [ <0000| + <1001| + <0110| + <1111| ] E [ |0000> + |1001> + |0110> + |1111> ].
But since E acts only on qubits 1,2, the cross terms between different a,d? Actually, careful: The states are orthogonal if the qubit0 and qubit3 differ? Actually, |0000> and |1001> are orthogonal because qubit0 differs. So we can compute term by term:
Term from |0000>: <0000|E|0000> = <00|O|00>.
|1001>: <1001|E|1001> = <00|O|00>.
|0110>: <0110|E|0110> = <11|O|11>.
|1111>: <1111|E|1111> = <11|O|11>.
And cross terms like <0000|E|1001> = 0 because qubit0: 0 vs 1.
So indeed, <ψ|E|ψ> = 1/4 [ 2 <00|O|00> + 2 <11|O|11> ] = 1/2 [ <00|O|00> + <11|O|11> ].
So for any operator O on two qubits (qubits 1 and 2), we have:
<ψ|E|ψ> = 1/2 (Tr(O (|00><00| + |11><11|))? Actually, careful: <00|O|00> is the (00,00) matrix element, and <11|O|11> is the (11,11) matrix element.
So if O is a Pauli matrix, then these are either 0 or ±1. Specifically, Pauli matrices:
X: <00|X|00> = 0, <11|X|11> = 0? Actually, X flips bits: X|0> = |1>, so on two qubits, X⊗I: then <00|X⊗I|00> = <0|X|0><0|I|0> = 0. Similarly, <11|X⊗I|11> = <1|X|1><1|I|1> = 0. So that gives 0.
Y: similarly, 0.
Z: <00|Z|00> = 1? Actually, careful: Z|0>=|0>, so <00|Z⊗I|00> = 1. But wait: O is on two qubits. But we need to consider all Paulis on two qubits. They are products: For example, X⊗I, I⊗X, X⊗X, etc.
Let’s list all 15 Paulis on qubits 1 and 2. They are of the form: P ⊗ Q, where P, Q ∈ {I, X, Y, Z} but not both I.
We want <ψ|E|ψ> = 1/2 ( <00|P⊗Q|00> + <11|P⊗Q|11> ).
Now, <00|P⊗Q|00> = <0|P|0><0|Q|0>.
<11|P⊗Q|11> = <1|P|1><1|Q|1>.
For Pauli matrices:
For I: <0|I|0>=1, <1|I|1>=1.
For X: <0|X|0>=0, <1|X|1>=0.
For Y: <0|Y|0>=0, <1|Y|1>=0.
For Z: <0|Z|0>=1, <1|Z|1> = -1.
So then:
If P⊗Q = I⊗I, then it’s identity, but we exclude that.
So for non-identity:
Case: P = I, Q is non-identity:
I⊗X: then <00| = 10=0; <11| = 10=0; so overlap = 0.
I⊗Y: 0.
I⊗Z: <00| = 11=1; <11| = 1(-1) = -1; so sum = 1 + (-1)=0, so overlap = 0.
Similarly, P = X, Q = I: X⊗I: 0.
P = Y, Q = I: 0.
P = Z, Q = I: Z⊗I: <00| = 11=1; <11| = (-1)1 = -1; so sum=0.
Now, if both P and Q are non-I:
X⊗X: <00| = 00=0; <11| = 00=0; so 0.
X⊗Y: 0.
X⊗Z: <00| = 01=0; <11| = 0(-1)=0; so 0.
Y⊗X: 0.
Y⊗Y: 0? Actually, careful: Y|0> = i|1>, so <0|Y|0>=0, so yes 0.
Y⊗Z: 0.
Z⊗X: <00| = 10=0; <11| = (-1)0=0; so 0.
Z⊗Y: 0.
Z⊗Z: <00| = 11=1; <11| = (-1)(-1)=1; so sum = 1+1=2, so overlap = 1/2 * 2 = 1.
So the only Pauli on qubits 1 and 2 that gives nonzero overlap is Z⊗Z. But wait: Check: What about Paulis that are products like? Actually, we’ve covered all: The only one is Z⊗Z. But also, what about -Z⊗Z? That is not a separate Pauli because Paulis are defined up to phase? Actually, Pauli group: The Pauli matrices are usually taken as X, Y, Z. But note: Y = i? Actually, careful: The Pauli matrices are Hermitian? Actually, X and Z are Hermitian, but Y is Hermitian? Y = [[0,-i],[i,0]] is Hermitian. So they are all Hermitian. So indeed, the set is {I, X, Y, Z} on each qubit. So we’ve covered.
So for errors on qubits 1 and 2, only the error E = Z⊗Z on qubits 1 and 2 (i.e., operator: I_0 ⊗ Z_1 ⊗ Z_2 ⊗ I_3) gives <ψ|E|ψ> = 1. But wait: Check: Z⊗Z on |ψ>:
Z⊗Z on qubits 1 and 2: For |0000>, qubits1,2: |00> -> Z|0>=|0>, so unchanged? Actually, Z⊗Z|00> = |00> because both get phase +1? Actually, careful: Z|0>=|0>, so Z⊗Z|00> = |00>. For |1001>, similarly, |00> -> |00>. For |0110>, |11> -> Z⊗Z|11> = (-1)*(-1)|11> = |11>. For |1111>, |11> -> |11>. So indeed, Z⊗Z leaves |ψ> unchanged. So <ψ|Z⊗Z|ψ> = 1.
But then we need |<ψ|E|ψ>|^2. For E = Z⊗Z, that is 1^2 = 1.
For all other E on qubits 1 and 2, the overlap is 0. So then the sum over E on qubits 1 and 2 (non-identity) of |<ψ|E|ψ>|^2 is: There is exactly 1 Pauli (Z⊗Z) that gives 1, and the other 14 give 0.
But wait: Check: What about -Z⊗Z? That is not a Pauli because Pauli matrices are defined as X, Y, Z. The Pauli group elements include phases ±1, ±i. But here the error channel: “produces one of the 15 non-identity two-qubit Paulis”. Usually, the two-qubit Pauli group has 15 elements if we consider them up to phase? Actually, careful: The depolarizing channel is usually defined as: With probability p, an error occurs, and the error is uniformly chosen from the set {I, X, Y, Z}⊗{I, X, Y, Z} minus the identity? But then that set has 15 elements. But note: That set includes, for example, -I⊗X? No, because we only take the matrices themselves: The set is {I, X, Y, Z} ⊗ {I, X, Y, Z} but excluding I⊗I. But then that set includes, for instance, X⊗I, Y⊗I, Z⊗I, I⊗X, I⊗Y, I⊗Z, X⊗X, X⊗Y, X⊗Z, Y⊗X, Y⊗Y, Y⊗Z, Z⊗X, Z⊗Y, Z⊗Z. So indeed, it’s exactly 15. And none of these are negative? Because if we take -X, that is not in the set because we only take X, Y, Z. So it’s fine.
So for errors on qubits 1 and 2, only Z⊗Z gives nonzero overlap. So sum{E on {1,2} non-identity} |<ψ|E|ψ>|^2 = 1.
Now, similarly, consider errors on qubits 0 and 3. F is a Pauli on qubits 0 and 3. Write F = P ⊗ I_1 ⊗ I_2 ⊗ Q, where P, Q ∈ {X, Y, Z}? But careful: The set is all two-qubit Paulis on qubits 0 and 3 that are non-identity. So similar analysis: |ψ> has the property that qubit0 and qubit3 are always equal. So then by similar argument, if we act with an operator on qubits 0 and 3, then
<ψ|F|ψ> = 1/2 ( <0|P|0><0|Q|0> + <1|P|1><1|Q|1> ) but careful: Actually, careful: F acts on qubits 0 and 3. Write |ψ> = 1/2 (|0,0,0,0> + |1,0,0,1> + |0,1,1,0> + |1,1,1,1>). Then F|ψ> = 1/2 ( (P|0> ⊗ |00> ⊗ (Q|0>) + (P|1> ⊗ |00> ⊗ (Q|1>) + (P|0> ⊗ |11> ⊗ (Q|0>) + (P|1> ⊗ |11> ⊗ (Q|1>) ). Then <ψ|F|ψ> = 1/4 [ <0|P|0><0|Q|0> + <1|P|1><1|Q|1> + … Actually, let’s do similarly:
<ψ|F|ψ> = 1/4 [ <0000|F|0000> + <1001|F|1001> + <0110|F|0110> + <1111|F|1111> ] because cross terms vanish.
Now, <0000|F|0000> = <0|P|0><0|Q|0>.
<1001|F|1001> = <1|P|1><1|Q|1>.
<0110|F|0110> = <0|P|0><0|Q|0>? Actually careful: For |0110>, qubit0=0, qubit3=0, so it gives <0|P|0><0|Q|0>.
<1111|F|1111> = <1|P|1><1|Q|1>.
So total = 1/4 [ 2(<0|P|0><0|Q|0> + 2(<1|P|1><1|Q|1>)] = 1/2 ( <0|P|0><0|Q|0> + <1|P|1><1|Q|1> ).
So again, if P and Q are such that one of them is X or Y, then these are 0. The only possibility is if both are Z? But careful: What if P = Z and Q = I? That is not allowed because then it’s identity on the pair? Actually, wait: The set of Paulis on qubits 0 and 3: They are of the form: P ⊗ Q, where P, Q ∈ {I, X, Y, Z} but not both I. So we consider:
P = I, Q non-I:
I⊗X: gives 0.
I⊗Y: 0.
I⊗Z: gives: <0|I|0>=1, <0|Z|0>=1; <1|I|1>=1, <1|Z|1> = -1; so sum = 1 + (-1)=0.
Similarly, P = X, Q = I: 0.
P = Y, Q = I: 0.
P = Z, Q = I: gives: <0|Z|0>=1, <0|I|0>=1; <1|Z|1>=-1, <1|I|1>=1; so sum = 1 + (-1)=0.
Now, both non-I:
X⊗X: 0.
X⊗Y: 0.
X⊗Z: 0.
Y⊗X: 0.
Y⊗Y: 0.
Y⊗Z: 0.
Z⊗X: 0.
Z⊗Y: 0.
Z⊗Z: gives: <0|Z|0>=1, <0|Z|0>=1 so product=1; <1|Z|1>=-1, <1|Z|1>=-1 so product=1; sum=2, so overlap = 1.
So again, the only Pauli on qubits 0 and 3 that gives nonzero overlap is Z⊗Z. So sum_{F on {0,3} non-identity} |<ψ|F|ψ>|^2 = 1.
Now, what about errors from both steps? That is F E, where E is on qubits 1,2 (non-identity) and F is on qubits 0,3 (non-identity). Then we want |<ψ|F E|ψ>|^2. But note: F and E act on disjoint sets, so they commute. And we computed separately: For E, only E = Z⊗Z on {1,2} gives <ψ|E|ψ> = 1, and for F, only F = Z⊗Z on {0,3} gives <ψ|F|ψ> = 1. But careful: If we take E that is not Z⊗Z, then <ψ|E|ψ>=0, so then <ψ|F E|ψ> might be 0? But we need to sum over all E and F. But we can compute generally:
<ψ|F E|ψ> = ? Since F and E act on different qubits, and |ψ> factorizes in a sense? Actually, |ψ> is not a product state but it has structure: qubits 0 and 3 are correlated, and qubits 1 and 2 are correlated. And F acts on 0,3 and E acts on 1,2. So then <ψ|F E|ψ> =? We can compute by writing |ψ> as:
|ψ> = 1/2 (|0,0>{03} ⊗ |0,0>{12} + |1,1>{03} ⊗ |0,0>{12}? Actually careful:
|ψ> = 1/2 (|0>0|0>_1|0>_2|0>_3 + |1>_0|0>_1|0>_2|1>_3 + |0>_0|1>_1|1>_2|0>_3 + |1>_0|1>_1|1>_2|1>_3).
Group qubits: (0,3) and (1,2). Then we have:
|ψ> = 1/2 ( |00>{03} ⊗ |00>{12} + |11>{03} ⊗ |00>{12} + |00>{03} ⊗ |11>{12} + |11>{03} ⊗ |11>{12} )? But careful: That would be if qubit0 and qubit3 are both 0 or both 1, and qubit1 and qubit2 are both 0 or both 1. So indeed, |ψ> = (|00>+|11>){03} ⊗ (|00>+|11>){12} / 2? Check: (|00>+|11>){03} ⊗ (|00>+|11>){12} = |0000> + |0011> + |1100> + |1111>. But our state is |0000> + |1001> + |0110> + |1111>. That is not the same because |1001> corresponds to |10>{03}? Actually, careful: Qubit0 and qubit3: For |1001>, that is qubit0=1, qubit3=1? Actually, |1001> means: qubit0=1, qubit1=0, qubit2=0, qubit3=1. So in the grouping (0,3) and (1,2), |1001> becomes: (1,1) on (0,3) and (0,0) on (1,2). So it is |11>{03} ⊗ |00>{12}. And |0110> becomes: (0,0) on (0,3) and (1,1) on (1,2). So indeed, |ψ> = |00>{03}⊗|00>{12} + |11>{03}⊗|00>{12} + |00>{03}⊗|11>{12} + |11>{03}⊗|11>{12} all divided by 2. That is actually = (|00>{03}+|11>{03}) ⊗ (|00>{12}+|11>{12}) / 2? But then that product gives cross terms: |00>{03}⊗|11>{12} and |11>{03}⊗|00>{12} are included, but also |00>{03}⊗|00>{12} and |11>{03}⊗|11>{12}. So yes, it is exactly:
|ψ> = (|00>{03}+|11>{03})/√2 ⊗ (|00>{12}+|11>{12})/√2.
So indeed, |ψ> is a product of two Bell states on pairs (0,3) and (1,2). That is interesting.
So then, for an operator F that acts on qubits 0 and 3, and E that acts on qubits 1 and 2, we have:
<ψ|F E|ψ> = * , where Bell = (|00>+|11>)/√2.
And we already computed for a two-qubit Pauli on a Bell state? Actually, for a Bell state |Φ^+> = (|00>+|11>)/√2, what is <Φ^+|P⊗Q|Φ^+>? That is known: It is 1/2 (Tr(P Q^T)? Actually, simpler: For Bell state, <Φ^+|A⊗B|Φ^+> = 1/2 Tr(A^T B)? Alternatively, we can compute directly:
For Bell state on two qubits: |Φ> = (|00>+|11>)/√2.
Then <Φ| (P⊗Q) |Φ> = 1/2 ( <00|P⊗Q|00> + <11|P⊗Q|11> + <00|P⊗Q|11> + <11|P⊗Q|00> ). But note: <00|P⊗Q|11> = <0|P|1><0|Q|1> and <11|P⊗Q|00> = <1|P|0><1|Q|0>. But since P and Q are Paulis, they are either diagonal or off-diagonal. Actually, we already computed for operators that are diagonal in the computational basis? But careful: Our previous computation for operators on qubits 1 and2 gave: <ψ|E|ψ> = 1/2 (<00|E|00>+<11|E|11>) but that was because the state |ψ> here is actually a Bell state? Actually, wait: Our |ψ> is product of two Bell states. But then if we isolate one Bell state, say on qubits 1 and2, then that Bell state is (|00>+|11>)/√2. And then = 1/2 (<00|E|00>+<11|E|11> + <00|E|11>+<11|E|00>). But earlier, we computed for E acting on qubits 1 and2 from the full state, we got only the diagonal terms? That was because the full state |ψ> is product, and when we compute <ψ|E|ψ>, since E acts only on qubits 1 and2, it becomes * = . So actually, should be what we computed? But we computed <ψ|E|ψ> = 1/2 (<00|E|00>+<11|E|11>) from a direct computation. That suggests that for a Bell state, is actually 1/2 (<00|E|00>+<11|E|11>) if E is diagonal? But wait, check: For E = X⊗I on qubits 1 and2. Then = ?
|Bell> = (|00>+|11>)/√2.
X⊗I|00> = |10>, X⊗I|11> = |01>. So = 1/2 (<00|10>+<00|01>+<11|10>+<11|01>) = 0. So that matches: 1/2(0+0)=0.
For E = Z⊗Z, we got 1/2(1+1)=1. So indeed, for a Bell state, the off-diagonal terms <00|E|11> and <11|E|00> are actually 0 for Pauli operators? Check: For E = Z⊗Z, <00|Z⊗Z|11> = <0|Z|1><0|Z|1> = 00=0. So indeed, for Pauli operators, the off-diagonal terms are always 0 because if E is a Pauli, then it either flips bits or doesn’t. Actually, if E has any X or Y, then it will flip some bits, so the diagonal elements are 0. And if E is diagonal (only Z and I), then off-diagonals are 0. So indeed, = 1/2 ( <00|E|00> + <11|E|11> ). So our previous computation is consistent.
So then, for errors on both sets:
<ψ|F E|ψ> = * .
And we already computed that for a two-qubit Pauli on a Bell pair, the only nonzero is when it is Z⊗Z, giving value 1. So then, if both F and E are Z⊗Z on their respective pairs, then <ψ|F E|ψ> = 11 = 1. For any other combination, at least one factor is 0, so product is 0.
But wait: Could there be a case where, say, F is Z⊗Z and E is something that gives 0? That gives 0. Or F is something that gives 0 and E is Z⊗Z gives 0. So indeed, the only combination that gives nonzero is F = Z⊗Z on {0,3} and E = Z⊗Z on {1,2}. But note: That product is Z⊗Z on all qubits? Actually, Z⊗Z on {0,3} and Z⊗Z on {1,2} gives overall operator: Z_0 ⊗ Z_1 ⊗ Z_2 ⊗ Z_3. And what is <ψ| ZZZZ |ψ>? That is the stabilizer? Actually, ZZZZ is a stabilizer, so it gives +1. So indeed, that gives 1.
So then, sum over E on {1,2} and F on {0,3} non-identity of |<ψ|F E|ψ>|^2 = 1 (only the pair: E = Z⊗Z on {1,2} and F = Z⊗Z on {0,3}).
But wait: There is also possibility: What if the error from the first step is identity? That we already covered: (1-p)^2 term.
And errors from first step only: sum gives: (p/15)(1-p)1.
Errors from second step only: (p/15)(1-p)1.
Errors from both: (p/15)^2 * 1.
So then the fidelity F = (1-p)^2 + (p/15)(1-p) + (p/15)(1-p) + (p/15)^2 = (1-p)^2 + 2p(1-p)/15 + p^2/225.
Simplify: = 1 - 2p + p^2 + (2p/15 - 2p^2/15) + p^2/225 = 1 - 2p + p^2 + 2p/15 - 2p^2/15 + p^2/225 = 1 - (2p - 2p/15) + p^2(1 - 2/15 + 1/225) = 1 - (30p/15 - 2p/15) + p^2( (225/225) - (30/225) + (1/225) ) = 1 - (28p/15) + p^2*(196/225) = 1 - (28/15)p + (196/225)p^2.
So fidelity F = 1 - (28/15)p + (196/225)p^2.
But wait: Is that the physical state fidelity? That is the fidelity between the ideal state and the noisy state. But careful: The fidelity is defined as F = <ψ_ideal| ρ |ψ_ideal>. And we computed that as the sum of probabilities that the error pattern results in a state that is not orthogonal to |ψ_ideal>. And we found that if the error is either no error, or only the error that is Z⊗Z on the respective pairs, then the state is exactly |ψ_ideal> (since Z⊗Z on a Bell pair acts as identity on the Bell state? Actually, check: For the Bell state on qubits 1,2, Z⊗Z|Bell> =? (|00>+|11>)/√2, because Z⊗Z|00> = |00>, Z⊗Z|11> = |11>. So yes, it is invariant. Similarly, on qubits 0,3, Z⊗Z is invariant. So indeed, those errors do not change the state. So the fidelity is exactly the probability that the errors are either no error or exactly these specific errors. And that probability is:
From first CNOT: probability of no error: (1-p) + probability of error that is Z⊗Z: that probability is p/15. So total from first CNOT: (1-p) + p/15 = 1 - p + p/15 = 1 - (14/15)p.
From second CNOT: similarly, (1-p) + p/15 = 1 - (14/15)p.
And since they are independent, the overall probability that the final state is exactly |ψ_ideal> is (1 - (14/15)p)^2 = 1 - (28/15)p + (196/225)p^2. That matches our fidelity. So indeed, the fidelity is exactly that.
But wait: Could there be other errors that leave the state unchanged? What about errors that are products of stabilizers? The stabilizers are XXXX and ZZZZ. But our errors are on specific pairs. For example, an error on qubits 1,2 that is X⊗X? That would give: X⊗X on Bell state? Actually, X⊗X on Bell state: (|00>+|11>)/√2 becomes (|11>+|00>)/√2, so that is invariant. But wait: Check: For qubits 1,2, if we apply X⊗X, then on |00> it becomes |11>, and on |11> it becomes |00>. So indeed, X⊗X also leaves the Bell state invariant? But then why did we get that =? Let’s compute: For Bell state on two qubits: |Φ> = (|00>+|11>)/√2. Then X⊗X|Φ> = (X⊗X|00> + X⊗X|11>)/√2 = (|11>+|00>)/√2 = |Φ>. So actually, X⊗X also acts as identity on the Bell state. But then why did our computation earlier give that for an operator on qubits 1,2, we computed <ψ|E|ψ> = 1/2(<00|E|00>+<11|E|11>). For E = X⊗X, that gives 1/2(0+0)=0. That is a discrepancy. Let’s recompute carefully:
We want <ψ|E|ψ> for E acting on qubits 1 and 2.
|ψ> = (|0000> + |1001> + |0110> + |1111>)/2.
Consider E = X⊗X on qubits 1 and 2. That means: E = I_0 ⊗ (X on qubit1) ⊗ (X on qubit2) ⊗ I_3.
Then E|ψ> = 1/2 ( E|0000> + E|1001> + E|0110> + E|1111> ).
Now, |0000>: qubits1,2 are |00>. X⊗X|00> = |11>. So E|0000> = |0,1,1,0> = |0110>.
|1001>: qubits1,2: |00> -> becomes |1,1,1,1>? Actually, careful: |1001>: qubit0=1, qubit1=0, qubit2=0, qubit3=1. Under X on qubit1 and X on qubit2, we get: qubit1:0->1, qubit2:0->1, so state becomes: |1,1,1,1> = |1111>.
|0110>: qubits1,2: |11> -> X⊗X|11> = |00>. So becomes |0,0,0,0> = |0000>.
|1111>: qubits1,2: |11> -> becomes |1,0,0,1> = |1001>.
So E|ψ> = 1/2 (|0110> + |1111> + |0000> + |1001>) = |ψ>. So indeed, <ψ|E|ψ> = 1. But then our computation earlier gave: <ψ|E|ψ> = 1/2(<00|E|00>+<11|E|11>) = 1/2(0+0)=0. That suggests that our method of computing by only diagonal elements is not correct because we assumed that cross terms between different basis states vanish? But wait, why did we assume that? We computed:
<ψ|E|ψ> = 1/4 [ <0000|E|0000> + <1001|E|1001> + <0110|E|0110> + <1111|E|1111> ] because we said cross terms like <0000|E|1001> are zero. But are they zero? Check: <0000|E|1001>. |0000> and |1001> differ in qubit0. But E acts only on qubits 1 and 2. So <0000|E|1001> = <0|0>? Actually, careful:
<0000|E|1001> = <0|1> on qubit0? Actually, write: |0000> = |0>0 |00>{12} |0>3.
|1001> = |1>_0 |00>{12} |1>_3.
Then <0000|E|1001> = <0|1> * <00|E|00> * <0|1> = 0. So indeed, cross terms between states with different qubit0 and qubit3 are zero. But what about <0000|E|0110>?
|0000> and |0110>: qubit0: 0 vs 0? Actually, |0000>: qubit0=0, qubit3=0; |0110>: qubit0=0, qubit3=0. So they have the same qubit0 and qubit3? Actually, |0000> and |0110> both have qubit0=0 and qubit3=0. So then <0000|E|0110> is not necessarily zero. Because:
<0000|E|0110> = <0|0> * <00|E|11> * <0|0> = <00|E|11>. And for E = X⊗X, <00|X⊗X|11> = <0|X|1><0|X|1> = (1)*(1)=1. So we missed cross terms between states that have the same qubit0 and qubit3 but different qubits 1 and 2. So our earlier computation that gave only diagonal terms was incorrect because we assumed that the only nonzero terms are when the state indices are the same. But actually, if qubit0 and qubit3 are the same, then states like |0000> and |0110> are both in the same “sector” (qubit0=0, qubit3=0). So we need to group by the values of qubit0 and qubit3. Let’s do it properly:
We want <ψ|E|ψ> for E acting on qubits 1 and 2.
Write |ψ> = 1/2 (|0000> + |1001> + |0110> + |1111>).
Group by qubits 0 and 3:
Group 1: qubit0=0, qubit3=0: states: |0000> and |0110>.
Group 2: qubit0=1, qubit3=1: states: |1001> and |1111>.
And groups with qubit0=0, qubit3=1 and qubit0=1, qubit3=0 do not appear.
So then <ψ|E|ψ> = 1/4 [ (from group1: <0000|E|0000> + <0000|E|0110> + <0110|E|0000> + <0110|E|0110> ) + (group2: similar) ].
So for E = X⊗X, we computed:
<0000|E|0000> = <00|X⊗X|00> = 0.
<0000|E|0110> = <00|X⊗X|11> = 1.
<0110|E|0000> = <11|X⊗X|00> = 1.
<0110|E|0110> = <11|X⊗X|11> = 0.
So group1 contributes 0+1+1+0 = 2.
Group2:
<1001|E|1001> = <00|X⊗X|00> = 0.
<1001|E|1111> = <00|X⊗X|11> = 1.
<1111|E|1001> = <11|X⊗X|00> = 1.
<1111|E|1111> = <11|X⊗X|11> = 0.
So group2 contributes 2.
Total = 1/4*(2+2)=1. So indeed, <ψ|E|ψ> = 1 for E = X⊗X.
So we need to recompute the overlaps for Paulis on qubits 1 and 2 carefully. And similarly for qubits 0 and 3.
Given that |ψ> is a product of two Bell states: |ψ> = |Φ^+>{03} ⊗ |Φ^+>{12}, where |Φ^+> = (|00>+|11>)/√2.
Then for an operator E that acts on qubits 1 and 2 only, we have:
<ψ|E|ψ> = <Φ^+|{12} | E |Φ^+|{12}> because the part on 0,3 gives 1.
And we know that for a Bell state, the expectation value of a two-qubit Pauli operator is either 0 or ±1. Specifically, for |Φ^+> = (|00>+|11>)/√2,
What are <Φ^+|P⊗Q|Φ^+>?
We can compute:
<Φ^+|P⊗Q|Φ^+> = 1/2 ( <00|P⊗Q|00> + <00|P⊗Q|11> + <11|P⊗Q|00> + <11|P⊗Q|11> ).
Now, if P and Q are Paulis. They are either I, X, Y, Z.
Let’s compute systematically for all combinations? But maybe we only need the squared magnitude. And we are summing over all non-identity Paulis on two qubits. So we need to compute for each Pauli operator on two qubits (15 of them), the value of |<Φ^+|E|Φ^+>|^2.
Since |Φ^+> is a Bell state, it is known that the only Paulis that leave it invariant (up to a phase) are those that are in the stabilizer of the Bell state. The Bell state |Φ^+> is stabilized by X⊗X and Z⊗Z? Actually, check: X⊗X|Φ^+> = |Φ^+>, Z⊗Z|Φ^+> = |Φ^+>. Also, -Y⊗Y|Φ^+> =? Actually, Y⊗Y|Φ^+> = ? Let’s compute: Y|0> = i|1>, Y|1> = -i|0>. So Y⊗Y|00> = (i)(i)|11> = -|11>, and Y⊗Y|11> = (-i)(-i)|00> = -|00>. So Y⊗Y|Φ^+> = -|Φ^+>. So actually, Y⊗Y gives a phase of -1. But then |<Φ^+|Y⊗Y|Φ^+>|^2 = 1. So also Y⊗Y has magnitude 1.
What about other Paulis? For example, X⊗I:
<Φ^+|X⊗I|Φ^+> = 1/2 ( <00|X⊗I|00> + … ) = 0 because it will flip one qubit and then orthogonal.
So generally, for a two-qubit Pauli operator on a Bell state, the expectation value is either 0 or ±1. And it is ±1 if and only if the Pauli is of the form A⊗A (up to a sign?) Actually, check: What about I⊗X? That gives 0. So indeed, the Paulis that have nonzero expectation on |Φ^+> are those that are symmetric: X⊗X, Y⊗Y, Z⊗Z, and also I⊗I but that’s identity. Also, what about -X⊗X? That is not in the set because we only take the Paulis themselves (X, Y, Z) and not their negatives. So the set of two-qubit Paulis on qubits 1 and 2 that are non-identity and have expectation value ±1 are: X⊗X, Y⊗Y, Z⊗Z. But wait, check: What about X⊗Y?
X⊗Y|00> = |1> ⊗ (i|1>) = i|11>,
X⊗Y|11> = |0> ⊗ (-i|0>) = -i|00>,
So <Φ^+|X⊗Y|Φ^+> = 1/2 (0 + <00|? Actually, compute properly:
<Φ^+|X⊗Y|Φ^+> = 1/2 ( <00|X⊗Y|00> + <00|X⊗Y|11> + <11|X⊗Y|00> + <11|X⊗Y|11> )
<00|X⊗Y|00> = 0.
<00|X⊗Y|11> = <0|X|1><0|Y|1> = (1)( -i ) = -i? But careful: <0|X|1> = 1, <0|Y|1> = -i? Actually, Y|1> = -i|0>, so <0|Y|1> = -i. So that term is -i.
<11|X⊗Y|00> = <1|X|0><1|Y|0> = (1)(i) = i? Because Y|0>= i|1>, so <1|Y|0>= i.
<11|X⊗Y|11> = 0.
So total = 1/2 (0 + (-i) + (i) + 0) = 0.
So indeed, only symmetric ones (X⊗X, Y⊗Y, Z⊗Z) give nonzero. But wait: What about I⊗Z? That is not symmetric. So yes.
So for errors on qubits 1 and 2, the Paulis that do not change the state (i.e., give expectation 1 in magnitude) are: E such that E = X⊗X, Y⊗Y, Z⊗Z. But are all these actually leaving the Bell state invariant?
We already computed: X⊗X gives +1.
Z⊗Z gives +1.
Y⊗Y gives -1, so |<Φ^+|Y⊗Y|Φ^+>|^2 = 1.
So there are 3 Paulis on qubits 1 and 2 that yield |<ψ|E|ψ>|^2 = 1.
But wait: Check: Could there be others? What about -I⊗? No.
So then, for errors on qubits 1 and 2, the sum over non-identity Paulis: ∑_{E on {1,2} non-identity} |<ψ|E|ψ>|^2 = number of Paulis that are of the form A⊗A with A in {X,Y,Z}? That gives 3. But wait: What about Paulis like -X⊗X? Those are not in the set because the set is defined as the 15 Paulis: {I,X,Y,Z}⊗{I,X,Y,Z} minus I⊗I. So indeed, there are exactly 3: X⊗X, Y⊗Y, Z⊗Z.
But wait: Check: Is Y⊗Y actually in that set? Yes, Y is one of the Paulis.
So then, for the first error channel, the contribution is: (p/15)(1-p) * (sum over E: |<ψ|E|ψ>|^2) = (p/15)(1-p) * 3 = (3p/15)(1-p) = (p/5)(1-p).
Now, similarly, for errors on qubits 0 and 3, by the same argument, because the state on qubits 0 and 3 is also a Bell state, the Paulis that leave it invariant are those that are symmetric: X⊗X, Y⊗Y, Z⊗Z. So sum over F on {0,3} non-identity: ∑_{F} |<ψ|F|ψ>|^2 = 3.
So that contribution is also (p/15)(1-p)*3 = (p/5)(1-p).
Now, what about errors from both steps? That is F E, where E acts on {1,2} and F acts on {0,3}. Then <ψ|F E|ψ> = <Φ^+|{03}|F|Φ^+|{03}> * <Φ^+|{12}|E|Φ^+|{12}>. So |<ψ|F E|ψ>|^2 = |<Φ^+|{03}|F|Φ^+|{03}>|^2 * |<Φ^+|{12}|E|Φ^+|{12}>|^2.
So if both F and E are among the ones that give magnitude 1, then the product is 1. And if either is not, then it’s 0. So the number of pairs (E, F) such that both are in {X⊗X, Y⊗Y, Z⊗Z} is 3*3 = 9. But wait: Are there any cross terms where, say, F gives a phase and E gives a phase such that the product phase is 1? But we are taking the square modulus, so phases don’t matter. So indeed, if both are in that set, then |<ψ|F E|ψ>|^2 = 1. So the sum over E (non-identity on {1,2}) and F (non-identity on {0,3}) of |<ψ|F E|ψ>|^2 is 9.
So then the contribution from both errors is: (p/15)^2 * 9 = 9p^2/225 = p^2/25.
And then the no-error term gives: (1-p)^2.
Also, there are terms from only first error and only second error we already computed: each gives 3(p/15)(1-p) = (p/5)(1-p). So total from one error only: 2(p/5)(1-p) = (2p/5)(1-p).
So then the fidelity F = (1-p)^2 + (2p/5)(1-p) + (p^2/25).
Simplify: (1-p)^2 = 1 - 2p + p^2.
So F = 1 - 2p + p^2 + (2p/5 - 2p^2/5) + p^2/25 = 1 - 2p + p^2 + 0.4p - 0.4p^2 + 0.04p^2 = 1 - (2p - 0.4p) + p^2(1 - 0.4 + 0.04) = 1 - 1.6p + p^2(0.64) = 1 - (8/5)p + (16/25)p^2? Because 1.6 = 8/5, and 0.64 = 16/25.
So F = 1 - (8/5)p + (16/25)p^2.
Or in fraction: = 1 - (8/5)p + (16/25)p^2 = (25/25) - (40/25)p + (16/25)p^2 = (25 - 40p + 16p^2)/25.
But wait, is that the physical state fidelity? That is the probability that the final state is exactly |ψ_ideal>. But careful: Could there be errors that are not exactly these Paulis but still yield a state that has overlap with |ψ_ideal>? Actually, fidelity is <ψ_ideal|ρ|ψ_ideal>. And ρ is a mixture of states that are of the form (some Pauli error applied to |ψ_ideal>). And if that Pauli error is not identity, then the state is orthogonal to |ψ_ideal>? Not necessarily: If the Pauli error commutes with the projector onto |ψ_ideal>, then it might have overlap. And we computed that overlap as <ψ_ideal|P|ψ_ideal>. And that is either 0 or 1 in magnitude? Actually, wait: For a Pauli operator P, since |ψ_ideal> is a stabilizer state of the code? Actually, |ψ_ideal> is not a code state? It is a logical state. But it is a specific state in the code space. And the code space is stabilized by XXXX and ZZZZ. So any Pauli operator that is a stabilizer will act as identity on the code space. But careful: The stabilizers are XXXX and ZZZZ. But our errors are on specific pairs. For example, an error on qubits 1,2 that is X⊗X. That is not necessarily a stabilizer because the stabilizer is XXXX, which is X on all qubits. But X⊗X on qubits 1,2 is a part of that? Actually, if we multiply XXXX by something? For instance, XXXX = (X⊗X) ⊗ (X⊗X). So indeed, X⊗X on qubits 1,2 is not exactly the stabilizer, but it is like half of it. But wait, check: The stabilizer is XXXX. That means that for any state in the code space, XXXX|ψ> = |ψ>. But that does not imply that X⊗X on qubits 1,2 acts as identity on the code space. Because if we take |ψ> = |0000>+|1111> (which is in the code space), then X⊗X on qubits 1,2 gives: on |0000>, becomes |0110> which is not necessarily the same state. So indeed, the only errors that leave |ψ_ideal> invariant are those that act as identity on |ψ_ideal>. And we determined that by using the fact that |ψ_ideal> is a product of two Bell states. And for a Bell state, the operators that leave it invariant are exactly those that are of the form A⊗A (with A being Pauli) because then A⊗A(|00>+|11>) = (A|0>⊗A|0> + A|1>⊗A|1>). For this to be proportional to |00>+|11>, we need A|0> and A|1> to be such that A|0> is either |0> or |1>? Actually, let’s derive: For a Bell state |Φ^+> = (|00>+|11>)/√2, consider an operator U⊗V. We want U⊗V|Φ^+> = c|Φ^+>. This implies that U|0>⊗V|0> + U|1>⊗V|1> is proportional to |00>+|11>. This forces that U|0> and V|0> are related, and U|1> and V|1> are related. In fact, it is known that the only Pauli operators that preserve the Bell state are those with U=V up to a sign? Actually, check: If U=X and V=X, then it works. If U=X and V=Y, then X|0>=|1>, Y|0>=-i|1> so that gives -i|11>, and X|1>=|0>, Y|1>=i|0> gives i|00>, so total = i(|00>-|11>), which is not proportional to |00>+|11> generally. So indeed, the condition is that U and V must be the same Pauli (up to a global phase) for the Bell state to be an eigenvector. And then the eigenvalue is? For U=V=X, eigenvalue = 1. For U=V=Y, eigenvalue = -1. For U=V=Z, eigenvalue = 1. So indeed, the Paulis on two qubits that leave the Bell state invariant are exactly X⊗X, Y⊗Y, Z⊗Z. So that is correct.
Therefore, the fidelity is the probability that the errors are such that on each CNOT, the error is either no error or one of these three Paulis that act as identity on the Bell state on that pair. But careful: The errors are applied after each CNOT. But we argued that these errors propagate to become Pauli errors on the final state. And that final state is |ψ_ideal> if and only if the combined error is one that acts as identity on |ψ_ideal>. And since |ψ_ideal> is a product of two Bell states, the condition is that on the pair (0,3), the error must be either I or one of {X⊗X, Y⊗Y, Z⊗Z} and on the pair (1,2), the error must be either I or one of {X⊗X, Y⊗Y, Z⊗Z}. But wait: Is that independent? Yes, because they act on different pairs. So the probability that the final state is exactly |ψ_ideal> is:
Probability from first CNOT that the error is in {I, X⊗X, Y⊗Y, Z⊗Z} = (1-p) + 3*(p/15) = 1-p + p/5 = 1 - (4/5)p.
Probability from second CNOT similarly: 1 - (4/5)p.
And since they are independent, overall probability = (1 - (4/5)p)^2 = 1 - (8/5)p + (16/25)p^2.
So that is the fidelity. So indeed, F = 1 - (8/5)p + (16/25)p^2.
But wait: Could there be errors that are not exactly these but still give some overlap? For example, if an error gives a phase of -1, then the state is -|ψ_ideal>, so the fidelity would still be 1 because |<-ψ_ideal|ψ_ideal>|^2 = 1. So actually, we want the fidelity, which is <ψ_ideal|ρ|ψ_ideal>. And if the state is -|ψ_ideal>, then that term contributes 1. So we should include errors that give a phase of -1 as well. And we already did: For the Bell state, Y⊗Y gives -1, so that is included. So that’s correct.
So then the fidelity is exactly the probability that the error on each CNOT is such that the resulting Pauli on that pair is in the set {I, X⊗X, Y⊗Y, Z⊗Z}. And that probability is: For a single CNOT error channel, the probability of no error is (1-p) and the probability of each specific Pauli error is p/15. So the total probability for that CNOT to yield an error that is “good” (i.e., doesn’t change the state) is: (1-p) + 3*(p/15) = 1-p + p/5 = 1 - (4/5)p.
And since the two CNOTs are independent, the overall probability that the final state is |ψ_ideal> (up to a phase) is (1 - (4/5)p)^2.
So the fidelity F = (1 - 4p/5)^2 = 1 - 8p/5 + 16p^2/25.
Thus the physical state fidelity as a function of p is:
F = 1 - (8/5)p + (16/25)p^2.
That is the answer.
But wait: The problem asks: “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?”
So answer: F = 1 - (8/5)p + (16/25)p^2.
I’ll double-check:
For p=0, F=1.
For small p, F ≈ 1 - 1.6p.
That seems plausible.
So final answer for subproblem 1.
I’ll now output in Markdown format.