Qubit Lab
Quantum computing, one qubit at a time.
A quantum computer simulated in your browser, built up from one arrow on a sphere: drag a qubit, rotate it with gates, entangle two, build circuits of up to six qubits and run them, then watch Grover, the quantum Fourier transform and Shor's algorithm work amplitude by amplitude, teleport a state, agree on a secret key and see what noise does to all of it. Beside each experiment, the Qiskit that does the same thing, lit line by line as it runs.
- Web
- Free
- Private
- 8 areas, from one qubit to the machines
- 26 live experiments, each with the code it runs
- 30 challenges that light up as you go
- 0 bytes sent to a server
Eight steps from |0⟩ to Shor, and a real simulator under every one of them.
Every amplitude on the page is computed in your browser by a state-vector simulator, the same linear algebra a quantum computer's simulator runs. The Bloch sphere turns under your finger, phases show as colours, and beside most experiments the Qiskit that does the same thing lights up line by line with the live numbers. A tag on every screen says whether it is an exact simulation or an illustration; dotted words explain themselves, and each area ends with challenges and the next step.
The qubit
Drag an arrow on the Bloch sphere and read its two amplitudes and their phases; see why a global phase changes nothing; measure it in any basis and watch it snap to a pole with the Born rule's odds, shot after shot.
Gates
X, Y, Z, H, S, T and the rotations as turns of the sphere, with the matrix times the vector worked out beside them; a phase you cannot measure that decides what H reads next; and the identities that make two gates one.
Two qubits
Four amplitudes from two arrows, the CNOT that turns a product into a Bell pair whose arrows shrink to nothing, and a CHSH test you run yourself: a hidden-variable model stuck at 2 against quantum mechanics reaching 2√2.
Circuits
Drop gates on up to six wires, run the circuit step by step with every amplitude and every Bloch sphere updating, fire thousands of shots into a histogram, and read the same circuit as Qiskit and OpenQASM. Then see why keeping every amplitude is the thing a real machine never has to do.
Algorithms
Deutsch-Jozsa deciding with one question, Grover amplifying the marked item about √N times, the quantum Fourier transform finding a period, and Shor factoring 15 from that period, every amplitude of every step drawn.
Protocols
Teleport a qubit with an entangled pair and two classical bits, send two bits with one qubit, and run BB84 with and without an eavesdropper to see the errors she leaves behind.
Noise
Mixed states inside the ball, relaxation and dephasing pulling the arrow in with their own clocks T1 and T2, and the three-qubit code catching a flipped qubit without looking at the state.
The map
The myths about quantum computers set straight, the machines being built today, your challenges in one board, and where to go on from this page.
Nothing leaves your browser.
Every circuit is simulated on your machine. Your challenges are kept in this browser only, and you can clear them.
- Every circuit is simulated in the browser
- Your progress stays in this browser, and you can clear it
- No account, no camera, no microphone
Requirements
- Runs in
- Any modern browser, on a computer or a phone
- Areas
- The qubit, Gates, Two qubits, Circuits, Algorithms, Protocols, Noise, The map
- Code
- Python with Qiskit, and OpenQASM, shown beside the experiments
- Controls
- Mouse or touch: drag the sphere, drop gates, click to measure
- Account
- Not needed
- Price
- Free
Questions
Do I need to know quantum mechanics or Python?
No. Each experiment starts with something to drag, click or watch, and the ideas come after. The code is there for those who want it, and dotted words explain themselves when you point at them or tap them.
Is this a real quantum computer?
No, it is a simulator: your browser keeps every amplitude of the state and multiplies it by each gate's matrix, exactly. That is also why it stops at a handful of qubits, and one of the experiments shows why a real machine does not have that limit.
Is the code runnable?
The Python beside each experiment is real Qiskit that builds the same circuit, and the OpenQASM is the same circuit in plain text. The page itself runs the same maths in JavaScript.
Are the results random for real?
Measurements are sampled with the probabilities the simulation gives, so each shot is a new draw. The exact probabilities are always shown next to the counts.
Can I share what I am looking at?
Yes. The address follows the experiment and the settings you changed, so a link opens the same tab with the same knobs.
Is anything sent anywhere?
No. Everything runs in your browser, and your progress lives in this browser's storage.