Quantum CNOT GateQuantum CNOT Gate
Definition
(From the definition of a classical CNOT gate) A quantum CNOT gate for 2qubits ∣a,b⟩=∣a⟩⊗∣b⟩ is defined as follows.
CNOTq:(C2)⊗2∣a,b⟩→(C2)⊗2↦∣a,a⊕b⟩,∀a,b∈{0,1}
CNOTq(∣a⟩⊗∣b⟩)=∣a⟩⊗∣a⊕b⟩
Here, (C2)⊗2 is the tensor product of vector spaces, ∣a⟩⊗∣b⟩ is the product vector, and ⊕ is the exclusive or.
Description
In quantum circuits, the logical negation is a Pauli X gate, hence it is also called the Controlled Pauli X gate.
The specific input and output of CNOTq are as follows.
CNOTq(∣00⟩)=∣0,0⊕0⟩=∣00⟩CNOTq(∣01⟩)=∣0,0⊕1⟩=∣01⟩CNOTq(∣10⟩)=∣1,1⊕0⟩=∣11⟩CNOTq(∣11⟩)=∣1,1⊕1⟩=∣10⟩
The matrix representation is as follows.
CNOTq=1000010000010010