A qubit pair has the initial state ∣ ψ ⟩ = α ∣ 0 0 ⟩ + β ∣ 0 1 ⟩ + γ ∣ 1 0 ⟩ + δ ∣ 1 1 ⟩ ≡ ⎝ ⎜ ⎜ ⎛ α β γ δ ⎠ ⎟ ⎟ ⎞ ∈ C 4 Three controlled NOT gates are applied on this initial state: ∣ ψ ′ ⟩ = CNOT 1 2 ⋅ CNOT 2 1 ⋅ CNOT 1 2 ∣ ψ ⟩ What is the result of the state vector of the final state ∣ ψ ′ ⟩ ?
Details: The gates CNOT 1 2 and CNOT 2 1 differ in that control and target qubits are reversed. The application of these gates to the basis states results ∣ ψ ⟩ ∣ 0 0 ⟩ ∣ 0 1 ⟩ ∣ 1 0 ⟩ ∣ 1 1 ⟩ CNOT 1 2 ∣ ψ ⟩ ∣ 0 0 ⟩ ∣ 0 1 ⟩ ∣ 1 1 ⟩ ∣ 1 0 ⟩ CNOT 2 1 ∣ ψ ⟩ ∣ 0 0 ⟩ ∣ 1 1 ⟩ ∣ 1 0 ⟩ ∣ 0 1 ⟩
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
From the table we can read the matrix representation of the operators. The columns of the matrix correspond exactly to the vectors
CNOT
∣
i
j
⟩
:
CNOT
1
2
CNOT
2
1
=
(
CNOT
1
2
∣
0
0
⟩
,
CNOT
1
2
∣
0
1
⟩
,
CNOT
1
2
∣
1
0
⟩
,
CNOT
1
2
∣
1
1
⟩
)
=
⎝
⎜
⎜
⎛
1
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
⎠
⎟
⎟
⎞
=
(
CNOT
2
1
∣
0
0
⟩
,
CNOT
2
1
∣
0
1
⟩
,
CNOT
2
1
∣
1
0
⟩
,
CNOT
2
1
∣
1
1
⟩
)
=
⎝
⎜
⎜
⎛
1
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
⎠
⎟
⎟
⎞
The overall operator of the circuit is given by matrix multiplication
U
=
CNOT
1
2
⋅
CNOT
2
1
⋅
CNOT
1
2
=
⎝
⎜
⎜
⎛
1
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
⎠
⎟
⎟
⎞
⋅
⎝
⎜
⎜
⎛
1
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
⎠
⎟
⎟
⎞
⋅
⎝
⎜
⎜
⎛
1
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
⎠
⎟
⎟
⎞
=
⎝
⎜
⎜
⎛
1
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
⎠
⎟
⎟
⎞
⋅
⎝
⎜
⎜
⎛
1
0
0
0
0
0
0
1
0
1
0
0
0
0
1
0
⎠
⎟
⎟
⎞
=
⎝
⎜
⎜
⎛
1
0
0
0
0
0
1
0
0
1
0
0
0
0
0
1
⎠
⎟
⎟
⎞
=
SWAP
The result is the SWAP gate which, when applied to a separable state, swaps the individual states:
SWAP
∣
ψ
1
⟩
⊗
∣
ψ
2
⟩
=
∣
ψ
2
⟩
⊗
∣
ψ
1
⟩
For an general state vector we get the result
SWAP
∣
ψ
⟩
=
⎝
⎜
⎜
⎛
1
0
0
0
0
0
1
0
0
1
0
0
0
0
0
1
⎠
⎟
⎟
⎞
⎝
⎜
⎜
⎛
α
β
γ
δ
⎠
⎟
⎟
⎞
=
⎝
⎜
⎜
⎛
α
γ
β
δ
⎠
⎟
⎟
⎞
Problem Loading...
Note Loading...
Set Loading...