CNOT
The controlled-NOT gate, commonly called CNOT or CX, is a two-qubit quantum gate that performs an X (bit-flip) on the target qubit when the control qubit is in state 1, and leaves the target unchanged when the control is 0. In the standard computational basis ordered as |00>, |01>, |10>, |11>, the action is: |00> → |00>, |01> → |01>, |10> → |11>, |11> → |10>. Thus, it can entangle qubits and is essential for many quantum circuits.
Matrix form and properties: The CNOT gate is unitary and its own inverse (CNOT squared equals the
Note that different conventions for qubit ordering can yield a functionally equivalent matrix with rows and
Applications: CNOT, together with arbitrary single-qubit gates, forms a universal gate set for quantum computation. It