Assignment 2 Solution
Assignment 2 Solution
Q1: Fidelity
Then, since ρ = σ:
√ √
q p
F (ρ, σ) = Tr ρρ ρ = Tr ρ2 = Tr ρ = 1
√
Thus: F (ρ, σ) = Tr 0=0
(ii) To show that the fidelity between two quantum states ρ and σ is symmetric, we
use the definition:
√ √
q
F (ρ, σ) = Tr ρσ ρ
1
This follows from the property of the trace norm that: ∥AB∥1 = ∥BA∥1
Thus, we have:
q √
√ √ √
q
F (ρ, σ) = ∥ σ ρ∥1 = ∥ ρ σ∥1 = F (σ, ρ)
(iii) For a pair of qubit state ρ, σ withp√corresponding Bloch vectors ⃗r, ⃗s the fidelity
2 √ 2
square is given by F (ρ, σ) = (T r ρσ ρ)
√ √
Here, ρσ ρ = M > 0 and, eigenvalues of M be λ1 and λ2
T r(M ) = T r(ρσ) = λ1 + λ2
det(M ) = det(ρ) det(σ) = λ1 λ2
q
√ √ √ p p p p
∴ F 2 (ρ, σ) = (T r ρσ ρ)2 = (T r M )2 = ( λ1 + λ2 )2 = λ1 + λ2 + 2 λ1 λ2
p p
= T r(M ) + 2 det(M ) = T r(ρσ) + 2 det(ρ)det(σ)
I + ⃗r · ⃗σ I + ⃗s · ⃗σ
Now, ρ = and σ =
2 2
1
ρσ = (I + (⃗r + ⃗s) · ⃗σ + (⃗r · ⃗σ )(⃗s · ⃗σ ))
4
1 1
∴ T r(ρσ) = (2 + 0 + ⃗r · ⃗s) = (1 + ⃗r · ⃗s)
4 2
1 − |⃗r|2 1 − |⃗s|2
det(ρ) = and det(σ) =
4 4
p 1p
∴ 2 det(ρ)det(σ) = (1 − |⃗r|2 )(1 − |⃗s|2 )
2
1 p
F 2 (ρ, σ) = (1 + ⃗r · ⃗s + (1 − |⃗r|2 )(1 − |⃗s|2 )) ✓
2
(i) The state of the qubit after being sent through the channel without using the
error-correcting code is given by: ρ = (1 − p)|ψ⟩⟨ψ| + pX|ψ⟩⟨ψ|X.
p p
The fidelity is given by: F = ⟨ψ|ρ|ψ⟩ = (1 − p) + p⟨ψ|X|ψ⟩⟨ψ|X|ψ⟩.
The second term under the square root is non-negative and equals zero when
√
|ψ⟩ = |0⟩, so the minimum fidelity is: F = 1 − p.
Suppose the three-qubit error-correcting code is used to protect the state |ψ⟩ =
a|0L ⟩ + b|1L ⟩. The quantum state after both noise and error correction is:
2
The omitted terms represent contributions from bit flips on two or three qubits.
All omitted terms are positive operators, so the fidelity we calculate will be a lower
bound on the true fidelity. We see that:
p p
F = ⟨ψ|ρ|ψ⟩ ≥ (1 − p)3 + 3p(1 − p)2 .
so the fidelity of storage for the quantum state is improved provided p < 1/2,
which is the same conclusion we came to earlier based on a much cruder analysis.
(ii) The state of the qubit after being sent through the channel without using the
error-correcting code is given by: ρ = (1 − p)|ψ⟩⟨ψ| + pI/2.
p p p
The fidelity is given by: F = ⟨ψ|ρ|ψ⟩ = (1 − p) + p/2 = 1 − p/2.
Suppose the three-qubit error-correcting code is used to protect the state |ψ⟩ =
a|0L ⟩ + b|1L ⟩. The quantum state after both noise and error correction is:
The omitted terms represent contributions from bit flips on two or three qubits.
All omitted terms are positive operators, so the fidelity we calculate will be a lower
bound on the true fidelity. We see that:
p p
F = ⟨ψ|ρ|ψ⟩ ≥ (1 − p)9 + 9p(1 − p)8 .
so the fidelity of storage for the quantum state is improved provided p < 1/2,
which is the same conclusion we came to earlier based on a much cruder analysis.
To derive these operators, we consider how the amplitude damping channel affects
the two-qubit state. The channel causes transitions from |1⟩ to |0⟩ with probability p,
but does not affect |0⟩. Thus, for a two-qubit system, we can simplify the action of the
channel as follows:
3
- Ẽ0 represents no damping occurring on either qubit, which is equivalent to the
√
identity operator I scaled by 1 − γ, where γ is related to the damping probability p.
- Ẽ1 and Ẽ2 represent damping occurring on the first and second qubits, respectively,
causing transitions from |01⟩ and |10⟩ to |00⟩.
The action of these operators on |ψ⟩ results in:
p √ √
Ẽ0 |ψ⟩ = 1 − γ|ψ⟩, Ẽ1 |ψ⟩ = γa|00⟩, Ẽ2 |ψ⟩ = γb|00⟩.
Both Ẽ1 |ψ⟩ and Ẽ2 |ψ⟩ result in states that are orthogonal to the original states |01⟩
and |10⟩ since |00⟩ is orthogonal to both |01⟩ and |10⟩. Therefore, any error caused by
amplitude damping can be detected by measuring whether the state has collapsed to
|00⟩, which is outside the original codespace.
This demonstrates that the span of {|01⟩, |10⟩} forms an error detection code for
amplitude-damping noise.
(i) for, m-dim QEC code C with codewords {|iL ⟩}m−1 i=0 , then QEC conditions are sat-
isfied
iff ⟨iL |Ea† Eb |jL ⟩ = cab δij ∀ i,j ∈ [o, m − 1] (1)
Proof: X
PC = |kL ⟩⟨kL | ,where |kL ⟩ ∈ C
k
PC Ea† Eb PC = cab PC
X X
|kL ⟩⟨kL |Ea† Eb |lL ⟩⟨lL | = cab |mL ⟩⟨mL |
k,l m
! !
X X
⟨iL | |kL ⟩⟨kL |Ea† Eb |lL ⟩⟨lL | |jL ⟩ = ⟨iL | cab |mL ⟩⟨mL | |jL ⟩
k,l m
X X
⟨iL |kL ⟩⟨kL |Ea† Eb |lL ⟩⟨lL |jL ⟩ = cab ⟨iL |mL ⟩⟨mL |jL ⟩ = cab ⟨iL |jL ⟩
k,l m
Here, action of Ea on |iL ⟩ leads to a subspace say, C1 and action of Eb on |jL ⟩ leads
to a subspace say, C2 , (s.t) C1 and C2 are non-overlapping subspaces.
(ii) Ea is correctable by code C if the action of the error leads to a state in a subspace
orthogonal to the codespace. {Ea }N a=1 are detectable by code C with codewords
{|iL ⟩} if they satisfy
4
Proof: Using eq (1), let Eb = I, i.e., the action of Eb on |iL ⟩ identity, remains
in codespace. The action of Ea on |jL ⟩ leads to a subspace orthogonal to the
codespace.
∴ eq(1) → ⟨iL |Ea |jL ⟩ = αa δij ∀ i, j ∈ [0, m − 1]
(iii) Using eq. (1) we say that QEC code can correct t errors if the set of ε ∼ {Ea }N
a=1
of weight upto t, provided that d ≥ 2t + 1
∴ QEC code with distance d = 2t + 1 can correct for errors on at most t qubits.
d =min(weight of Ea ) s.t ⟨iL |Ea |jL ⟩ ≠ αa δij
Using eq(2), ⟨iL |Ea |jL ⟩ = αa δij ∀ Ea of weight upto t
The action of Ea on |iL ⟩: Ea |iL ⟩ = αa |iL ⟩ + |ϕ⊥
ai ⟩
the first term is the same codeword on codespace, and the second term is an
unnormalized orthogonal vector to codespace.
Therefore, the action on a |ϕ⟩ in the codespace of an error Ea with support on ε
!
X X
|ψ⟩ ⊗ |0⟩A → Ea |ψ⟩ ⊗ |ea ⟩A = |ψ⟩ ⊗ Ca |ea ⟩A + |orthog⟩
Ea ∈ε Ea ∈ε
where, |0⟩A is ancilla and {|ea ⟩A } basis states of ancilla after error. |orthog⟩ denotes
a vector orthogonal to the codespace.
Now, we can perform an orthogonal measurement on the ancilla, with two out-
comes: the state is projected onto either the code subspace or the |orthog⟩ sub-
spaces. if the first outcome is obtained, the undamaged state |ψ⟩ is recovered
(correctable and detectable). If the second outcome is found, an error has been
detected.
We conclude that our QECC that can correct t errors can detect 2t errors since
correctable is detectable too.
5
The logical operators for this code are: X̄ = XXXXX, Z̄ = ZZZZZ.
The distance of this code is d = 3, meaning it can correct any single-qubit error
(t = ⌊(d − 1)/2⌋ = 1).
Conclusion: The [5, 1, 3] stabilizer code satisfies the QEC conditions for single-
qubit errors because: - The stabilizers either commute or anticommute with all
single-qubit Pauli errors. - Each single-qubit error produces a unique syndrome
that allows for its detection and correction.
Thus, the code can correct arbitrary single-qubit errors as required.
(i) The single-qubit error operators commutes with S2 , S3 , and S4 , but anticommutes
with S1 . Thus, the syndrome measurement can detect this error. We consider how
each single-qubit error affects the stabilizers.
(ii)