What is the controlled-X gate?

Quantum Computing Questions



80 Short 80 Medium 76 Long Answer Questions Question Index

What is the controlled-X gate?

The controlled-X gate, also known as the CNOT gate, is a fundamental gate in quantum computing. It is a two-qubit gate that performs an X (or NOT) operation on the target qubit if and only if the control qubit is in the state |1⟩. If the control qubit is in the state |0⟩, the target qubit remains unchanged. The controlled-X gate is commonly used in quantum algorithms and quantum error correction codes.