Qubit

A quantum computer, simulated exactly. Place gates, watch the state vector change, run a thousand shots — all on this phone.

Try one

2 qubits
Gates
−π

How it works

State vector

An n-qubit state is 2ⁿ complex numbers. A gate does not multiply a 2ⁿ×2ⁿ matrix — it walks pairs of amplitudes that differ in one bit. Sixteen qubits is 65 536 amplitudes; this phone does a gate in a millisecond. Twenty is a million; thirty would not fit in memory. That gap is the whole point of building the real thing.

Checked

Every preset matches the textbook to the last digit: Grover at sin²(5·asin(1/√8)) = 0.9453, teleportation preserving sin²(0.5), Fourier phases going exactly once around. Twelve random circuits of up to six qubits match a NumPy reference — built the slow way, by Kronecker products — to 10⁻¹⁵.

What this is not

A simulation, not a quantum computer. Amplitudes here are exact and there is no noise; a real device gives you only the histogram, and a noisy one. The simulation is what you use to know what the real machine should have said.

No server, no request after the page is open. The state vector lives in your browser and dies with the tab.