Controlled Not Gate

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.

Controlled Not Gate
The classical analog of the CNOT gate is a reversible XOR gate.
Controlled Not Gate
How the CNOT gate can be used (with Hadamard gates) in a computation.

The CNOT can be expressed in the Pauli basis as:

Being both unitary and Hermitian, CNOT has the property and , 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

In general, any single qubit unitary gate can be expressed as , where H is a Hermitian matrix, and then the controlled U is .

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 Controlled Not Gate .

Before After
Control Target Control Target
Controlled Not Gate  Controlled Not Gate  Controlled Not Gate  Controlled Not Gate 
Controlled Not Gate  Controlled Not Gate  Controlled Not Gate  Controlled Not Gate 
Controlled Not Gate  Controlled Not Gate  Controlled Not Gate  Controlled Not Gate 
Controlled Not Gate  Controlled Not Gate  Controlled Not Gate  Controlled Not Gate 

If Controlled Not Gate  are the only allowed input values for both qubits, then the TARGET output of the CNOT gate corresponds to the result of a classical XOR gate. Fixing CONTROL as Controlled Not Gate , the TARGET output of the CNOT gate yields the result of a classical NOT gate.

More generally, the inputs are allowed to be a linear superposition of Controlled Not Gate . The CNOT gate transforms the quantum state:

Controlled Not Gate 

into:

Controlled Not Gate 

The action of the CNOT gate can be represented by the matrix (permutation matrix form):

    Controlled Not Gate 

The first experimental realization of a CNOT gate was accomplished in 1995. Here, a single Beryllium ion in a trap was used. The two qubits were encoded into an optical state and into the vibrational state of the ion within the trap. At the time of the experiment, the reliability of the CNOT-operation was measured to be on the order of 90%.

In addition to a regular controlled NOT gate, one could construct a function-controlled NOT gate, which accepts an arbitrary number n+1 of qubits as input, where n+1 is greater than or equal to 2 (a quantum register). This gate flips the last qubit of the register if and only if a built-in function, with the first n qubits as input, returns a 1. The function-controlled NOT gate is an essential element of the Deutsch–Jozsa algorithm.

Behaviour in the Hadamard transformed basis

When viewed only in the computational basis Controlled Not Gate , the behaviour of the CNOT appears to be like the equivalent classical gate. However, the simplicity of labelling one qubit the control and the other the target does not reflect the complexity of what happens for most input values of both qubits.

Controlled Not Gate 
CNOT gate in Hadamard transformed basis.

Insight can be won by expressing the CNOT gate with respect to a Hadamard transformed basis Controlled Not Gate . The Hadamard transformed basis of a one-qubit register is given by

    Controlled Not Gate 

and the corresponding basis of a 2-qubit register is

    Controlled Not Gate ,

etc. Viewing CNOT in this basis, the state of the second qubit remains unchanged, and the state of the first qubit is flipped, according to the state of the second bit. (For details see below.) "Thus, in this basis the sense of which bit is the control bit and which the target bit has reversed. But we have not changed the transformation at all, only the way we are thinking about it."

The "computational" basis Controlled Not Gate  is the eigenbasis for the spin in the Z-direction, whereas the Hadamard basis Controlled Not Gate  is the eigenbasis for spin in the X-direction. Switching X and Z and qubits 1 and 2, then, recovers the original transformation." This expresses a fundamental symmetry of the CNOT gate.

The observation that both qubits are (equally) affected in a CNOT interaction is of importance when considering information flow in entangled quantum systems.

Details of the computation

We now proceed to give the details of the computation. Working through each of the Hadamard basis states, the first qubit flips between Controlled Not Gate  and Controlled Not Gate  when the second qubit is Controlled Not Gate :

Initial state in Hadamard basis Equivalent state in computational basis Apply operator State in computational basis after CNOT Equivalent state in Hadamard basis
Controlled Not Gate  Controlled Not Gate  CNOT Controlled Not Gate  Controlled Not Gate 
Controlled Not Gate  Controlled Not Gate  CNOT Controlled Not Gate  Controlled Not Gate 
Controlled Not Gate  Controlled Not Gate  CNOT Controlled Not Gate  Controlled Not Gate 
Controlled Not Gate  Controlled Not Gate  CNOT Controlled Not Gate  Controlled Not Gate 

A quantum circuit that performs a Hadamard transform followed by CNOT then another Hadamard transform, can be described as performing the CNOT gate in the Hadamard basis (i.e. a change of basis):

(H1 ⊗ H1)−1 . CNOT . (H1 ⊗ H1)

The single-qubit Hadamard transform, H1, is Hermitian and therefore its own inverse. The tensor product of two Hadamard transforms operating (independently) on two qubits is labelled H2. We can therefore write the matrices as:

H2 . CNOT . H2

When multiplied out, this yields a matrix that swaps the Controlled Not Gate  and Controlled Not Gate  terms over, while leaving the Controlled Not Gate  and Controlled Not Gate  terms alone. This is equivalent to a CNOT gate where qubit 2 is the control qubit and qubit 1 is the target qubit:

Controlled Not Gate 

Constructing a Bell State

A common application of the CNOT gate is to maximally entangle two qubits into the Controlled Not Gate  Bell state; this forms part of the setup of the superdense coding, quantum teleportation, and entangled quantum cryptography algorithms.

To construct Controlled Not Gate , the inputs A (control) and B (target) to the CNOT gate are:

Controlled Not Gate  and Controlled Not Gate 

After applying CNOT, the resulting Bell State Controlled Not Gate  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:

Controlled Not Gate  and Controlled Not Gate 

In the Hadamard view, the control and target qubits have conceptually swapped and qubit A is inverted when qubit B is Controlled Not Gate . The output state after applying the CNOT gate is Controlled Not Gate  which can be shown as follows:

Controlled Not Gate 

Controlled Not Gate 

Controlled Not Gate 

Controlled Not Gate .

C-ROT gate

The C-ROT gate (controlled Rabi rotation) is equivalent to a C-NOT gate except for a Controlled Not Gate  rotation of the nuclear spin around the z axis.

Implementations

Trapped ion quantum computers:

See also

Notes

References

This article uses material from the Wikipedia English article Controlled NOT gate, which is released under the Creative Commons Attribution-ShareAlike 3.0 license ("CC BY-SA 3.0"); additional terms may apply (view authors). Content is available under CC BY-SA 4.0 unless otherwise noted. Images, videos and audio are available under their respective licenses.
®Wikipedia is a registered trademark of the Wiki Foundation, Inc. Wiki English (DUHOCTRUNGQUOC.VN) is an independent company and has no affiliation with Wiki Foundation.

Tags:

Controlled Not Gate OperationControlled Not Gate Behaviour in the Hadamard transformed basisControlled Not Gate Constructing a Bell StateControlled Not Gate C-ROT gateControlled Not Gate ImplementationsControlled Not GateBell stateComputer scienceQuantum circuitQuantum computerQuantum entanglementQuantum logic gateQubitRichard Feynman

🔥 Trending searches on Wiki English:

GermanyNew York CityVoice of Vietnam28 Weeks LaterGlen Powell2024 Indian general election in TelanganaIona AllenTemperaturePakistanTimothée ChalametHumza YousafBob Cole (sportscaster)Anna Sawai2024 Indian general election in KarnatakaGallipoli campaignTyler BertuzziThe Eras TourManchester City F.C.Samuel AlitoTom HollandJon Bon JoviCarlo AncelottiList of NBA championsThe Amazing Race 36Indian National Developmental Inclusive AllianceJohnny McDaidCristiano RonaldoEnglandC (programming language)Billie EilishStar WarsNational Hockey LeagueCanadaAmanda BynesScott PorterTheo JamesGitHubBreaking BadBarry KeoghanThe Ministry of Ungentlemanly WarfareBenjamin NetanyahuKevin Porter Jr.Russian invasion of UkraineWolfgang Amadeus MozartWikiWayne RooneySkibidi ToiletThe Office (American TV series)BlackpinkRyan Smith (businessman)Prince (musician)George SorosJeremy SwaymanCoral CastleIvy LeagueXNXXNimrod (comics)Anthony Edwards (basketball)Ariana GrandeMichael JordanRwandaByteDanceLily GladstoneToomaj SalehiFrank SinatraSex and the CityBig Brother Canada season 12Fallout (American TV series)South KoreaPassoverMarilyn MonroeErling HaalandMarvin HarrisonMartin SheenSacha Baron CohenMuhammadUtsuro-bune🡆 More