Exchange GateExchange Gate
Definition
2Qubit ∣a,b⟩=∣a⟩⊗∣b⟩ The exchange gate ex is defined as follows.
ex:(C2)⊗2∣a,b⟩→(C2)⊗2↦∣b,a⟩,∀a,b∈{0,1}
ex(∣a⟩⊗∣b⟩)=∣b⟩⊗∣a⟩
Explanation
The exchange gate swaps the states of two qubits. The specific input and output are as follows.
ex(∣00⟩)=∣00⟩ex(∣01⟩)=∣10⟩ex(∣10⟩)=∣01⟩ex(∣11⟩)=∣11⟩
Matrix representation is as follows.
ex=1000001001000001