Bits vs. Qubits
- Classical Bit: 0 or 1. Like a light switch.
- Quantum Qubit: A linear combination of 0 and 1. Like a spinning coin.
The Probabilistic Nature
In classical programming, if (x == 1) is certain. In quantum programming, we work with amplitudes. When we measure a qubit, it 'collapses' into a definite state (0 or 1), but before that, it exists in a spectrum of possibilities.