Flips the target qubit if and only if the control qubit is .
CNOT connects two qubits: a control and a target. If the control is , the target gets flipped (an X gate is applied). If the control is , the target is left alone. This rule sounds classical, and on definite states it behaves classically. The quantum behavior emerges when the control is in superposition. Then CNOT does not pick one branch. Instead, it creates entanglement: a joint state of two qubits that cannot be described by specifying each qubit separately. Entanglement is the core resource that distinguishes quantum computing from classical computing.
CNOT is a two-qubit unitary (probability-preserving) operator. It applies X to the target qubit conditioned on the control qubit being . In the computational basis, the four input-output mappings are: stays stays becomes , and becomes . The target bit is flipped exactly when the control bit is 1. When the control is in superposition, CNOT creates entanglement. For example, applying H to qubit 0 and then CNOT maps to the Bell state . A Bell state is a maximally entangled two-qubit state. CNOT is universal for quantum computation when combined with single-qubit gates, meaning any quantum circuit can be built from CNOT plus single-qubit rotations.
The joint probability distribution over both qubits changes. Correlations appear between the measurement outcomes of the two qubits.
When the control is in superposition, entanglement is created. Each qubit alone looks random, but their outcomes are perfectly correlated.
Conditionally rotates the target qubit on the Bloch sphere. When the control is in superposition, both qubits move inside the Bloch sphere, indicating they are entangled and individually in a mixed state.
It is tempting to think CNOT works like a classical if-then: "if control is 1, flip target." That sounds right because it matches the truth table. What actually happens when the control is in superposition is that CNOT does not choose one branch. It processes both branches simultaneously and entangles the two qubits, creating correlations that have no classical analog.
CNOT is the bridge between single-qubit operations and the full power of quantum computing. Without entanglement, qubits would be independent, and a quantum computer would be no more powerful than parallel coin flips. CNOT is what makes multi-qubit quantum computation non-trivial.
You apply H to qubit 0 then CNOT(0,1) to |00⟩. What state results?