How it works
The simulator stores all 2n complex amplitudes and applies each gate as an exact unitary operation. Probabilities are the squared magnitudes of those amplitudes. Qubit 0 is the least-significant bit, the same convention Qiskit uses.
Quantum Lab
Choose qubits and gates, then compare the exact probabilities with simulated measurement shots. Start from an example or build your own.
Computed from the full state vector (no sampling). Basis labels are written |qn−1…q0⟩, with q0 on the right.
A real device returns samples, not probabilities. Draw shots from the exact distribution with a reproducible seed.
| Basis | Amplitude | Probability |
|---|
The simulator stores all 2n complex amplitudes and applies each gate as an exact unitary operation. Probabilities are the squared magnitudes of those amplitudes. Qubit 0 is the least-significant bit, the same convention Qiskit uses.
This is a noiseless classical simulation for learning and demonstration. Real devices add noise, limited connectivity and readout error. State-vector simulation also grows exponentially, which is why it stops at four qubits here.
The simulator is covered by automated tests: Bell and GHZ states, gate identities such as HH = I and T² = S, and normalisation over long random circuits.