Quantum Computing, Quantum Programming, Quantum Physics, Mathematics.
the target qubit. Since the control qubit is 0 the CNOT gate does not change this state. But if we consider Since the control qubit is 1 it will change the target qubit to 1 so we get: We can put this all together for a general two-qubit system. So if I have: Then a CNOT gate will flip the target