GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

Controlled NOT gate

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. It can be used to entangle and disentangle Bell states. Any quantum circuit can be simulated to an arbitrary degree of accuracy using a combination of CNOT gates and single qubit rotations. The gate is sometimes named after Richard Feynman who developed an early notation for quantum gate diagrams in 1986. 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) =... Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.

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. It can be used to entangle and disentangle Bell states. Any quantum circuit can be simulated to an arbitrary degree of accuracy using a combination of CNOT gates and single qubit rotations. The gate is sometimes named after Richard Feynman who developed an early notation for quantum gate diagrams in 1986. 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)}. 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. 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). 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} . The CNOT gate is also used in classical reversible computing. ==Operation== The CNOT gate operates on a quantum register consisting of 2 qubits. The CNOT gate flips the second qubit (the target qubit) if and only if the first qubit (the control qubit) is |1\rangle . 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. a change of basis): The single-qubit Hadamard transform, H 1 , is Hermitian and its own inverse. The tensor product of two Hadamard transforms operating (independently) on two qubits is labelled H 2 . 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. 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} . \begin{bmatrix} 1 & 0 & 0 & 0\\ 0 & 1 & 0 & 0\\ 0 & 0 & 0 & 1\\ 0 & 0 & 1 & 0 \end{bmatrix} . \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. 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 . 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. In effect, the individual qubits are in an undefined state. 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. When viewed in the computational basis, it appears that qubit A is affecting qubit B. Changing our viewpoint to the Hadamard basis demonstrates that, in a symmetrical way, qubit B is affecting qubit A. The input state can alternately be viewed as |+\rangle_A and \frac{1}{\sqrt{2}}(|+\rangle + |-\rangle)_B . In the Hadamard view, the control and target qubits have conceptually swapped and qubit A is inverted when qubit B is |-\rangle_B . 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). ==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. ==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

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Controlled NOT gate". 1780615271. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1357848270

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·