The Bloch Sphere

The Quantum Turtle · Quantum Play Lab

The Bloch Sphere

Explore quantum states in 3D. Turn the sphere, press a gate, and watch the qubit change.

QUANTUM PLAY LAB · BLOCH SPHERE

|0⟩|1⟩ xy
Drag to turn the sphere

Choose a qubit state

Use two sliders to point the arrow anywhere on the sphere. Chance of 1 sets how often you may measure 1. Relative Phase turns the arrow around the sphere.

Try a state:

MEASURED RESULT

01

CHANCE OF 0 OR 1

0 · 100%
1 · 0%

Ready! Press X to flip the qubit.

The qubit starts at |0⟩.

Your qubit's state |ψ⟩ = (1.00 + 0.00i)|0⟩ + (0.00 + 0.00i)|1⟩ Real and imaginary values stay visible, even when zero. θ = 0°.

Try this first

  1. Choose |0⟩. The arrow points up.
  2. Press H. The arrow moves to the middle. Now 0 and 1 each have a 50% chance.
  3. Press Z. The arrow turns, but the chances stay at 50/50.
  4. Press H again, then Measure. You will get 1.

Prefer the two-circle view? Try My First Qubit →

What the board shows

This board shows one qubit as an arrow inside a sphere. The arrow tells you its state. X, Y, and Z turn the arrow around different axes. H turns it around a slanted axis. Each gate follows the correct path. Drag the sphere to see the arrow from a new angle. This changes your view, not the qubit. Chance of 1 (θ) moves the arrow between the top and bottom. Relative Phase (φ) turns it around the middle. At the top or bottom, changing the phase does not change the state.

Measure a qubit to get 0 or 1. The result depends on its chances. After you measure, the qubit stays at that result until you change it with a gate or slider.

This is a model of one qubit. It runs in your browser, not on a quantum computer.