Quantiks

Quantum Lab

Build a circuit. See the exact state.

Choose qubits and gates, then compare the exact probabilities with simulated measurement shots. Start from an example or build your own.

Interactive circuit simulator

Circuit
Add a gate

Circuit diagram

Exact measurement probabilities

Computed from the full state vector (no sampling). Basis labels are written |qn−1…q0⟩, with q0 on the right.

Simulated measurements

A real device returns samples, not probabilities. Draw shots from the exact distribution with a reproducible seed.

State vector (amplitudes)

Amplitudes and probabilities per basis state
BasisAmplitudeProbability

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.

What it is not

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.