A qubit is a two-level quantum system whose state is a unit vector in . Everything else in quantum computing (gates, measurement, entanglement) is built on that one definition, so I keep this page as the place to look up conventions: how amplitudes map to angles, which phases matter, and how Qiskit orders bits. The Bloch sphere is the picture that makes single-qubit gates easy to reason about, and it stops working in exactly the place where multi-qubit physics starts.

A qubit is an arrow on a ball: up is 0, down is 1, and every other direction is a mix of both. Rendered for this page.

Mental Model

  • A qubit state is a pair of complex amplitudes with . Squared magnitudes are measurement probabilities, phases are what interference acts on.
  • Global phase has no physical effect. Relative phase between amplitudes does, and it is the angle on the Bloch sphere.
  • Every pure single-qubit state is a point on a sphere. Every single-qubit gate is a rotation of that sphere.
  • qubits need amplitudes, and most multi-qubit states are not a product of single-qubit states, so no list of Bloch spheres can describe them.
  • Qiskit is little-endian: qubit 0 is the rightmost bit in a printed bitstring.

1. State Vectors and Amplitudes

The computational basis states are

A general state is with and . Measuring in the computational basis returns 0 with probability and 1 with probability (see Measurement and the Born Rule).

Four real numbers describe . Normalization removes one and global phase removes another, which leaves two real parameters. That is the two angles of the Bloch sphere.

2. Global Phase and Relative Phase

Multiplying the whole state by changes nothing observable: every probability, and every later interference pattern between the branches of this one state, is unchanged. So and are the same physical state.

Relative phase is different. The states

give identical statistics when measured in the basis (50/50), yet they are orthogonal. A Hadamard maps them to and , which makes the difference visible.

Common mistake

Phase becomes physical when it is controlled. A global phase on a gate is invisible, but the same phase applied only when a control qubit is 1 turns into a relative phase on the control. This is phase kickback, and it is the core of phase estimation (see QFT and Phase Estimation).

3. The Bloch Sphere

Drop the global phase by making real and non-negative. Then

The half angle is there so that gives exactly. The matching point on the unit sphere is the Bloch vector

The components are the expectation values of the three Pauli matrices. Orthogonal states sit at antipodal points, and controls the measurement bias: .

The Six Cardinal States

StateBloch vector Where
north pole
south pole

I confirmed these by computing for each vector with numpy.

Worked example

Place on the sphere.

From we get , and the relative phase gives . Then . Numerically computing from the amplitudes gives the same vector.

The state is a little below the equator, so it reads 0 with probability and 1 with probability . The phase of shows up only when you rotate it into the or basis.

A second one: gives , a state in the - plane, 30 degrees above the equator toward .

4. Gates as Rotations

Every single-qubit unitary is a rotation of the sphere (plus an irrelevant global phase). , , rotate by around their axes, swaps the and axes, and rotates by around axis . The full catalogue, with matrices and identities, is on Quantum Gates.

Intuition

Think of the sphere as a compass for a single qubit. The axis answers “0 or 1?”, the axis answers ” or ?”, the axis answers ” or ?”. A state is the three answers at once, and they cannot all be sharp: the vector has length 1, so being sure about forces and to zero.

5. Several Qubits

Two qubits live in . A product state is a Kronecker product, for example

A general two-qubit state has four amplitudes, , and it is a product state only if the matrix has rank 1. A Bell state does not, which is the subject of Entanglement and Bell States.

For qubits the state vector has complex amplitudes. A product of single-qubit states needs only real numbers (two angles each), so the gap between and is the room that entanglement occupies. It is also why classical state-vector simulation tops out at roughly 30 to 50 qubits on real machines: each added qubit doubles memory.

Qiskit’s Bit Order

Qiskit labels basis states , with qubit 0 on the right, and the amplitude index is . Applying to qubit 0 of a two-qubit register gives the vector , printed as the label '01'. Tensor products in Qiskit therefore run in reverse: the circuit for puts the later qubit first in the Kronecker product.

from qiskit import QuantumCircuit
from qiskit.quantum_info import Statevector
 
qc = QuantumCircuit(2)
qc.x(0)                      # flip qubit 0 only
sv = Statevector(qc)
print(sv.data)               # [0, 1, 0, 0]
print(sv.probabilities_dict())  # {'01': 1.0}

Running this prints exactly those values. Textbooks usually write the first qubit on the left, so a circuit diagram that matches a textbook equation can print its bitstrings reversed. Measurement results follow the same rule: classical bit 0 is the rightmost character of the count keys.