Qubits, superposition, and entanglement -- run against this project's own from-scratch statevector simulator (quantum/statevector.py), not a canned illustration.
0. What's a qubit, and what's a gate?
A qubit's state is a length-2 complex vector with . n qubits together are a single length- vector, not n separate length-2 vectors -- that exponential blowup is why simulating a real quantum computer classically gets hard fast, and it's exactly what the controls below let you watch happen directly. A gate is just a unitary matrix applied to that vector.
1. Apply a gate and watch the full state
Creates equal superposition of |0⟩ and |1⟩
2. Entanglement: the Bell state
H on qubit 0, then a controlled-X (control=0, target=1): the two qubits become correlated so that measuring one instantly determines the other, even though neither has a definite value on its own.
Go deeper: Quantum Basics