|q⟩ Bad Qubits

beginner · Programming · Bits, Logic & Classical Computation

Boolean Logic: AND, OR, NOT

Classical computation is built from three elementary Boolean operations on bits:

Every classical circuit — adders, processors, the device you are reading this on — is some combination of these. In code you will see them as !, &&, and ||. We treat 1 as true and 0 as false.

Try it

Evaluate 0(11)0 \lor (1 \land 1) and return the result (0 or 1).

Run your code to see the quantum state.

Sign in on the full site to ask questions and join the discussion.