Definition
Controlled Quantum Gate
A controlled quantum gate is a quantum gate with a control qubit and a target system. It leaves the target unchanged when the control is , and applies a chosen operation to the target when the control is :
The juxtaposition of kets denotes a tensor product:
Here is the state of the control qubit, and is the state of the target system.
Example
Controlled-NOT gate
The controlled-NOT gate, or CNOT, is the controlled version of the Pauli-X gate.
It has two qubits:
- the first qubit is the control;
- the second qubit is the target.
The control qubit is not changed. It only decides whether the target qubit is flipped.
If the control is , CNOT does nothing to the target:
If the control is , CNOT applies to the target, so the target flips:
Equivalently, for bits ,
where is addition modulo .
If , then , so the target does not change. If , then flips .