HomeQuantum PhysicsRandom Circuit Sampling Lab

Random Circuit Sampling Lab (2D)

Build a real random quantum circuit qubit-by-qubit and watch its exact 2^N-dimensional statevector evolve: random single-qubit rotations plus CZ entangling gates scramble the output distribution into the Porter-Thomas exponential 'speckle' pattern, verified live against many independent circuit instances.

Quantum Physics2DAdvanced60 FPS📱 Mobile-adapted⇄ 3D version
2d-quantum-supremacy ↗ Open standalone

A from-scratch, 2D-canvas companion to the 3D Random Circuit Sampling Lab: the same real random-circuit-sampling protocol — random single-qubit rotations plus CZ entangling gates applied layer by layer to an exact complex statevector of dimension 2N — is simulated exactly for N = 2 to 8 qubits, small enough to track every one of the D basis-state amplitudes directly. Beyond watching a single circuit's output distribution scramble live, this version runs a statistical batch of many independent random circuit instances, pools every resulting probability, and overlays the pooled histogram against the theoretical Porter–Thomas exponential curve P(x) = e−x — a direct numerical check that random quantum circuits really do produce the chaotic "speckle" statistics that real quantum-supremacy experiments are benchmarked against.

⚙ Under the hood

Simulate a Sycamore-style random quantum circuit on a full complex statevector: apply random single-qubit rotations and entangling gates across a qubit grid, watch the output distribution scramble into the Porter-Thomas 'speckle' pattern, and track cross-entropy benchmarking (XEB) fidelity as gate noise accumulates.

quantum computingrandom circuit samplingquantum supremacycross-entropy benchmarkingqubitsstatevector simulation

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)