Controlled NOT(CNOT) GateControlled NOT(CNOT) Gate
Definition
The following vector-valued Boolean function is called the CNOT gate.
CNOT:{0,1}2→{0,1}2
CNOT(a,b)=(a,a⊕b)
- It is also known as the Feynman gate.
Description
The specific calculations of the input and output of the CNOT gate are as follows.
CNOT(0,0)CNOT(0,1)CNOT(1,0)CNOT(1,1)=(0,0⊕0)=(0,0)=(0,0⊕1)=(0,1)=(1,1⊕0)=(1,1)=(1,1⊕1)=(1,0)
Looking at the table above, it is easy to see that CNOT is a reversible function and that composing CNOT twice results in an identity function.
Id=CNOT∘CNOT
If only the second value of the output is considered, it is similar to the XOR gate, hence it is also referred to as the reversible XOR gate..
부울 함수 | 기호 | 진리표 |
CNOT |  | 입력 | 출력 | a | b | a | a⊕b | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 |
|