Controlled NOT gate
XOR gate.[src] s) in a computation.[src] In computer science, the controlled NOT gate (also C-NOT or CNOT), controlled-X gate, controlled-bit-flip gate, Feynman gate or controlled Pauli-X is a quantum logic gate that is an essential component in the construction of a gate-based quantum computer.[src] It can be used to entangle and disentangle Bell states.[src] Any quantum circuit can be simulated to an arbitrary degree of accuracy using a combination of CNOT gates and single qubit rotations.[src] The gate is sometimes named after Richard Feynman who developed an early notation for quantum gate diagrams in 1986.[src] The CNOT can be expressed in the Pauli basis as: : \mbox{CNOT} = e^{i\frac{\pi}{4}(I_1-Z_1)(I_2-X_2)}= e^{-i\frac{\pi}{4}(I_1-Z_1)(I_2-X_2)}.[src] Being both unitary and Hermitian, CNOT has the property e^{i\theta U}=(\cos \theta)I+(i\sin \theta) U and U =e^{i\frac{\pi}{2}(I-U)}=e^{-i\frac{\pi}{2}(I-U)} , and is involutory.[src] The CNOT gate can be further decomposed as products of rotation operator gates and exactly one two qubit interaction gate, for example : \mbox{CNOT} =e^{-i\frac{\pi}{4}}R_{y_1}(-\pi/2)R_{x_1}(-\pi/2)R_{x_2}(-\pi/2)R_{xx}(\pi/2)R_{y_1}(\pi/2).[src] In general, any single qubit unitary gate can be expressed as U = e^{iH} , where H is a Hermitian matrix, and then the controlled U is CU = e^{i\frac{1}{2}(I_1-Z_1)H_2} .[src] The CNOT gate is also used in classical reversible computing.[src]
XOR gate.]] s) in a computation.]] In computer science, the controlled NOT gate (also C-NOT or CNOT), controlled-X gate, controlled-bit-flip gate, Feynman gate or controlled Pauli-X is a quantum logic gate that is an essential component in the construction of a gate-based quantum computer.[src] It can be used to entangle and disentangle Bell states.[src] Any quantum circuit can be simulated to an arbitrary degree of accuracy using a combination of CNOT gates and single qubit rotations.[src] The gate is sometimes named after Richard Feynman who developed an early notation for quantum gate diagrams in 1986.[src] The CNOT can be expressed in the Pauli basis as: \mbox{CNOT} = e^{i\frac{\pi}{4}(I_1-Z_1)(I_2-X_2)}= e^{-i\frac{\pi}{4}(I_1-Z_1)(I_2-X_2)}.[src] Being both unitary and Hermitian, CNOT has the property e^{i\theta U}=(\cos \theta)I+(i\sin \theta) U and U =e^{i\frac{\pi}{2}(I-U)}=e^{-i\frac{\pi}{2}(I-U)} , and is involutory.[src] The CNOT gate can be further decomposed as products of rotation operator gates and exactly one two qubit interaction gate, for example \mbox{CNOT} =e^{-i\frac{\pi}{4}}R_{y_1}(-\pi/2)R_{x_1}(-\pi/2)R_{x_2}(-\pi/2)R_{xx}(\pi/2)R_{y_1}(\pi/2).[src] In general, any single qubit unitary gate can be expressed as U = e^{iH} , where H is a Hermitian matrix, and then the controlled U is CU = e^{i\frac{1}{2}(I_1-Z_1)H_2} .[src] The CNOT gate is also used in classical reversible computing.[src] ==Operation== The CNOT gate operates on a quantum register consisting of 2 qubits.[src] The CNOT gate flips the second qubit (the target qubit) if and only if the first qubit (the control qubit) is |1\rangle .[src] If \ A quantum circuit that performs a Hadamard transform followed by C NOT then another Hadamard transform, can be described as performing the CNOT gate in the Hadamard basis (i.e.[src] a change of basis): The single-qubit Hadamard transform, H 1 , is Hermitian and its own inverse.[src] The tensor product of two Hadamard transforms operating (independently) on two qubits is labelled H 2 .[src] We can therefore write the matrices as: When multiplied out, this yields a matrix that swaps the |01\rangle and |11\rangle terms over, while leaving the |00\rangle and |10\rangle terms alone.[src] This is equivalent to a CNOT gate where qubit 2 is the control qubit and qubit 1 is the target qubit: \frac{1}{2} \begin{bmatrix}\begin{array}{rrrr} 1 & 1 & 1 & 1\\ 1 & -1 & 1 & -1\\ 1 & 1 & -1 & -1\\ 1 & -1 & -1 & 1 \end{array}\end{bmatrix} .[src] \begin{bmatrix} 1 & 0 & 0 & 0\\ 0 & 1 & 0 & 0\\ 0 & 0 & 0 & 1\\ 0 & 0 & 1 & 0 \end{bmatrix} .[src] \frac{1}{2} \begin{bmatrix}\begin{array}{rrrr} 1 & 1 & 1 & 1\\ 1 & -1 & 1 & -1\\ 1 & 1 & -1 & -1\\ 1 & -1 & -1 & 1 \end{array}\end{bmatrix} = \begin{bmatrix} 1 & 0 & 0 & 0\\ 0 & 0 & 0 & 1\\ 0 & 0 & 1 & 0\\ 0 & 1 & 0 & 0 \end{bmatrix} ==Constructing a Bell state== A common application of the C NOT gate is to maximally entangle two qubits into the |\Phi^+\rangle Bell state; this forms part of the setup of the superdense coding, quantum teleportation, and entangled quantum cryptography algorithms.[src] To construct |\Phi^+\rangle , the inputs A (control) and B (target) to the C NOT gate are \frac{1}{\sqrt{2}}(|0\rangle + |1\rangle)_A and |0\rangle_B .[src] After applying C NOT , the resulting Bell state \frac{1}{\sqrt{2}}(|00\rangle + |11\rangle) has the property that the individual qubits can be measured using any basis and will always present a 50/50 chance of resolving to each state.[src] In effect, the individual qubits are in an undefined state.[src] The correlation between the two qubits is the complete description of the state of the two qubits; if we both choose the same basis to measure both qubits and compare notes, the measurements will perfectly correlate.[src] When viewed in the computational basis, it appears that qubit A is affecting qubit B.[src] Changing our viewpoint to the Hadamard basis demonstrates that, in a symmetrical way, qubit B is affecting qubit A.[src] The input state can alternately be viewed as |+\rangle_A and \frac{1}{\sqrt{2}}(|+\rangle + |-\rangle)_B .[src] In the Hadamard view, the control and target qubits have conceptually swapped and qubit A is inverted when qubit B is |-\rangle_B .[src] The output state after applying the C NOT gate is \tfrac{1}{\sqrt{2}}(|++\rangle + |--\rangle), which can be shown as follows: = \frac{1}{\sqrt{2}}(|+\rangle_A|+\rangle_B + |-\rangle_A|-\rangle_B) = \frac{1}{2\sqrt{2}}((|0\rangle_A + |1\rangle_A)(|0\rangle_B + |1\rangle_B) + (|0\rangle_A - |1\rangle_A)(|0\rangle_B - |1\rangle_B)) = \frac{1}{2\sqrt{2}}((|00\rangle + |01\rangle + |10\rangle + |11\rangle) + (|00\rangle - |01\rangle - |10\rangle + |11\rangle)) = \frac{1}{\sqrt{2}}(|00\rangle + |11\rangle).[src] ==C-ROT gate== The C-ROT gate (controlled Rabi rotation) is equivalent to a C-NOT gate except for a \pi /2 rotation of the nuclear spin around the z axis.[src] ==See also== Toffoli gate (controlled-controlled-NOT gate) ==References== ==External links== Michael Westmoreland: "Isolation and information flow in quantum dynamics" - discussion around the C not gate[src]
40 sentences · 40 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Controlled NOT gate." encyclopegia.org, 2026, https://encyclopegia.org/wiki/controlled-not-gate. Accessed 03 December 2026.
Chicago
"Controlled NOT gate." encyclopegia.org. Accessed December 3, 2026. https://encyclopegia.org/wiki/controlled-not-gate.
APA
encyclopegia.org. (2026). Controlled NOT gate. Retrieved December 3, 2026, from https://encyclopegia.org/wiki/controlled-not-gate
Accessed December 3, 2026 · CC BY-SA 4.0 · citation page · JSON