Learn the Bloch sphere

Short guides to one qubit and the Bloch sphere, for anyone meeting quantum computing for the first time. Each explains an idea in plain words first, then shows the math, then lets you try it on the live sphere.

  1. What is a qubit?

    A qubit in plain words: how it differs from a bit, what amplitudes, superposition and phase mean, and why its state is an arrow on a sphere.

  2. The Bloch sphere

    How the Bloch sphere pictures a qubit: θ and φ, the Bloch vector (x, y, z), why |0⟩ and |1⟩ are opposite, and what global phase is.

  3. The six key states

    The six states where the axes meet the Bloch sphere: their kets, coordinates and odds, and the Z, X and Y bases they make.

  4. Measuring a qubit

    Why measuring a qubit gives 0 or 1 at random, how to read the odds from the arrow's height, and what happens to the state afterward.

  5. Gates

    Every one-qubit gate turns the Bloch sphere about an axis by an angle. Matrices, the right-hand rule, global phase, and why order matters.

    1. Pauli-X
    2. Pauli-Y
    3. Pauli-Z
    4. Hadamard
    5. S and T
    6. Rotation gates
  6. Interference

    How a phase no measurement can see becomes odds you can: H, a turn about z, then H. Amplitudes add up or cancel out, and P(0) = cos²(φ/2).

  7. The Gate Lab

    Combine gates in the Gate Lab and see the single rotation they add up to: H·T·H, H·Z·H = X, square roots, inverses and more.

Words you'll meet

Qubit
The quantum version of a bit. Measuring it gives 0 or 1, but before that its state can be a superposition of |0⟩ and |1⟩. More in What is a qubit?.
State |ψ⟩
Everything there is to know about the qubit, written as a ket: α|0⟩ + β|1⟩. On the sphere, it's the arrow. More in What is a qubit?.
Amplitudes α and β
The two numbers in α|0⟩ + β|1⟩. Each is a complex number: its size squared is a probability, and its angle is its phase. More in What is a qubit?.
State vector
The state as a column of its two amplitudes, α on top and β below: the form a gate's matrix multiplies. More in Gates.
Circle notation
One circle per basis state, |0⟩ and |1⟩. The filled area is the probability, and the direction of the line shows the amplitude's phase. More in What is a qubit?.
Probabilities P(0) and P(1)
The chances that measuring gives 0 or 1: P(0) = |α|² and P(1) = |β|². On the sphere, the higher the arrow, the likelier 0. More in Measuring a qubit.
θ (theta)
How far the arrow tilts down from |0⟩ at the top: 0° is |0⟩, 90° is the equator (50/50), 180° is |1⟩. More in The Bloch sphere.
φ (phi)
The relative phase: the angle around the equator, from |+⟩ toward |+i⟩. It has no meaning at the poles, where θ is 0° or 180°. More in The Bloch sphere.
Bloch vector (x, y, z)
Where the arrow points: x toward |+⟩, y toward |+i⟩ and z toward |0⟩. For a single qubit it always has length 1. More in The Bloch sphere.
Gate matrix
A gate as a 2×2 grid of numbers. Multiplying the state vector by it gives the new state; column j is where |j⟩ goes. More in Gates.
Rotation
Every one-qubit gate turns the whole sphere about an axis by an angle, counterclockwise as seen from the axis's tip. More in Gates.
Global phase
A factor such as −1 or i in front of the whole state. No measurement can detect it, so the sphere doesn't show it. More in The Bloch sphere.

Keep learning

These guides stick to one qubit. A good next step is the free online book Introduction to Quantum Information Science by Artur Ekert, Tim Hosgood, Alastair Kay and Chiara Macchiavello. It covers qubits, gates and measurement in more depth, then goes on to what this site leaves out: entanglement, mixed states, quantum algorithms, cryptography and error correction.

It's more mathematical than these guides: it expects you to be comfortable with complex numbers, vectors and matrices. It uses the same notation as this site, so the kets, the Bloch sphere and the gates you've met here carry over.