Quantum Lab is an interactive 3D playground for exploring the fundamental ideas behind quantum computing — no physics degree required. Four self-contained modules let you see, manipulate, and measure qubits in real time.
What is Quantum Lab?
Classical computers store information as bits — tiny switches that are either off (0) or on (1). Quantum computers use qubits, which can be in a blend of both states at once. Quantum Lab lets you see, manipulate, and measure qubits in real time directly in your browser.
Every module is self-contained. You don't need to complete them in order — dip in wherever your curiosity takes you.
Getting Started
Quantum Lab runs entirely in your browser — nothing to install. Here's the fastest path from zero to your first quantum state.
On mobile? Tap the hamburger icon (top-left) to reveal the sidebar. The 3D scene is fully touch-enabled — swipe to rotate, pinch to zoom.
Core Concepts
A qubit (quantum bit) is the basic unit of quantum information. Unlike a classical bit that is strictly 0 or 1, a qubit exists as a combination of both until it's measured.
Mathematically, we write a qubit state as a superposition:
Here α and β are complex amplitudes. Their squared magnitudes — |α|² and |β|² — give the probability of each outcome and always sum to 1.
Once you measure a qubit, it "collapses" to either |0⟩ or |1⟩ — the superposition disappears. This is why quantum algorithms must be carefully designed to extract information without measuring too early.
Any qubit state can be plotted as a single point on the surface of a unit sphere — the Bloch sphere. The north pole is |0⟩, the south pole is |1⟩, and every other point is a superposition.
Two angles fully describe the state: θ (polar) and φ (azimuthal). This geometry is exactly what the Bloch Sphere module visualizes in 3D.
Core Concepts
Superposition is often described as "being in two states simultaneously," but more precisely: a qubit in superposition has a definite quantum state — one that doesn't correspond to a single classical outcome until measured.
Think of it like a coin spinning in the air. It's not heads and tails — it's in a well-defined spin state that will resolve to one side when it lands.
The Hadamard gate is the most common way to create superposition. Applied to |0⟩, it produces |+⟩ — a 50/50 chance of measuring either outcome.
Open the Gates module and apply the H gate. Watch the state vector rotate from the north pole to the equator — that's superposition made visible.
Core Concepts
When two qubits become entangled, their states are no longer independent. Measuring one instantly determines the outcome of measuring the other — no matter how far apart they are. Einstein famously called this "spooky action at a distance."
The maximally entangled two-qubit states are called Bell states. The most common, |Φ⁺⟩, reads:
If you measure qubit A and get |0⟩, qubit B will always be |0⟩. The outcomes are correlated, but neither is predetermined — both happen with equal probability.
Entanglement cannot be used to send information faster than light. The correlation is only visible when you compare results through a classical channel.
Concurrence is a number from 0 to 1 that quantifies how entangled two qubits are. 0 = completely independent; 1 = maximally entangled. The Entanglement module displays this live in the dashboard.
Core Concepts
Real qubits don't stay in superposition forever. They interact with their environment — stray fields, thermal vibrations — and gradually lose their quantum properties. This is called decoherence.
T₁ (relaxation time) measures how long a qubit holds its energy before decaying from |1⟩ to |0⟩. T₂ (dephasing time) measures how long the phase of a superposition stays coherent. T₂ is always ≤ 2·T₁.
State-of-the-art superconducting qubits achieve T₁ and T₂ times on the order of microseconds to milliseconds. A full quantum computation must complete before decoherence corrupts the result.
The Decoherence module lets you tune both T₁ and T₂ and watch coherence drain away in real time. The state vector spirals inward toward the center of the sphere as the qubit becomes a "mixed state."
Module Guide
Visualize a single qubit as a point on a unit sphere. Every pure qubit state maps to exactly one point on the surface — the north pole is |0⟩, the south pole is |1⟩, and the equator holds all equal-weight superpositions. You can also drag the arrow tip directly on the sphere to set any custom state.
|0⟩, |1⟩, |+⟩, |−⟩, |i⟩, |−i⟩. Hit Measure to collapse the superposition — the vector snaps to a pole with a particle burst effect. The dashboard shows the live state equation, probability bars for |0⟩ and |1⟩, and the polar angles θ and φ in both radians and degrees.Click |+⟩ to enter an equal superposition, then hit Measure several times. Each outcome — |0⟩ or |1⟩ — is random with 50% probability. The state resets to |+⟩ each time so you can repeat the experiment.
Module Guide
Quantum gates are reversible linear transformations on qubit states — they rotate the Bloch vector. Unlike classical logic gates, every quantum gate can always be undone. This module lets you build and replay circuits of up to 8 gates on a single qubit starting from |0⟩.
Module Guide
This module renders two Bloch spheres side by side — Qubit A (left, green) and Qubit B (right, blue). A stream of animated particles connects the two spheres to visualise their quantum link. When the qubits are entangled, the individual Bloch vectors become undefined — only the joint two-qubit state is well-defined.
0.0 = fully independent qubits. 1.0 = maximally entangled. All four Bell states give exactly 1.0. After measuring either qubit, concurrence drops to 0 — the pair is no longer entangled.
Module Guide
Real qubits don't hold their quantum state forever. Environmental noise causes two distinct types of decay. This module lets you tune both timescales and watch fidelity drain away in real time, with a live sparkline chart tracking the history.
Set Phase (T₂) with a low T₂ value: the Bloch vector shrinks inward without changing its Z-component — phase coherence is lost but energy is preserved. Switch to Amplitude (T₁): the vector drifts toward the north pole (|0⟩) as the qubit loses energy to its environment.
Reference
Quick definitions for the terms you'll encounter throughout the lab.
FAQ