Dave! I need help with my math homework!
What am I doing wrong? Can you please correct this for me with a detailed explanation?
(CNOT(2, 4, 3)) * (|ϕ₁⟩ ⊗ |ψ₂⟩ ⊗ |ξ₃⟩ ⊗ |η₄⟩)
= |ϕ₁⟩ ⊗ |ψ₂⟩ ⊗ (CNOT(2, 4))(|ξ₃⟩ ⊗ |η₄⟩)
= |ϕ₁⟩ ⊗ |ψ₂⟩ ⊗ (|ξ₃⟩ ⊗ |η₄⟩ if |c⟩ = 0, |ξ₃⟩ ⊗ X|η₄⟩ if |c⟩ = 1)
= |ϕ₁⟩ ⊗ |ψ₂⟩ ⊗ ((1 ⊗ I)(|ξ₃⟩ ⊗ |η₄⟩) if |c⟩ = 0, (X ⊗ I)(|ξ₃⟩ ⊗ |η₄⟩) if |c⟩ = 1)
= |ϕ₁⟩ ⊗ |ψ₂⟩ ⊗ (|ξ₃⟩ ⊗ |η₄⟩ if |c⟩ = 0, X|ξ₃⟩ ⊗ |η₄⟩ if |c⟩ = 1)
= |ϕ₁⟩ ⊗ |ψ₂⟩ ⊗ (|ξ₃⟩ ⊗ |η₄⟩ if |c⟩ = 0, X|ξ₃⟩ ⊗ X|η₄⟩ if |c⟩ = 1)
the CNOT gate operation is represented as:
|ϕ₁⟩ ⊗ |ψ₂⟩ ⊗ (|ξ₃⟩ ⊗ |η₄⟩ if |c⟩ = 0, X|ξ₃⟩ ⊗ X|η₄⟩ if |c⟩ = 1)
Normalization factor (N) = √(P(0) + P(1))
the probability amplitude of the second term. In this case:
P(0) = |α₁β₂γ₃δ₄|^2 (assuming |c⟩ = 0)
P(1) = |α₁β₂X(γ₃)X(δ₄)|^2 (assuming |c⟩ = 1)
Normalized state = (1/N) * (|ϕ₁⟩ ⊗ |ψ₂⟩ ⊗ (|ξ₃⟩ ⊗ |η₄⟩ if |c⟩ = 0, X|ξ₃⟩ ⊗ X|η₄⟩ if |c⟩ = 1)