Mathwords logoMathwords

Qubit — Definition, Formula & Example

A qubit is the basic unit of quantum information, the quantum counterpart of a bit. Before it is measured, a qubit can be in a superposition, a weighted combination of 0 and 1. Measuring it always returns a single 0 or 1.

A qubit is a two-level quantum system whose pure state is a unit vector in C2\mathbb{C}^2, written ∣ψ⟩=α∣0⟩+β∣1⟩|\psi\rangle = \alpha|0\rangle + \beta|1\rangle with complex amplitudes α,β\alpha, \beta and orthonormal computational basis {∣0⟩,∣1⟩}\{|0\rangle, |1\rangle\}. Vectors that differ only by a global phase factor eiθe^{i\theta} describe the same physical state. As a result, pure qubit states correspond one-to-one with points on the Bloch sphere. A system of nn qubits lives in C2n\mathbb{C}^{2^n}, so describing its state can take up to 2n2^n amplitudes.

Key Formula

∣ψ⟩=α∣0⟩+β∣1⟩,∣α∣2+∣β∣2=1|\psi\rangle = \alpha|0\rangle + \beta|1\rangle, \qquad |\alpha|^2 + |\beta|^2 = 1
Where:
  • ∣ψ⟩|\psi\rangle = The state of the qubit (read "ket psi")
  • α\alpha = Complex amplitude of the basis state 0; measuring gives 0 with probability |α|²
  • β\beta = Complex amplitude of the basis state 1; measuring gives 1 with probability |β|²
  • ∣0⟩,∣1⟩|0\rangle, |1\rangle = The two computational basis states, analogous to the classical bit values 0 and 1

Worked Example

Problem: A qubit is prepared in the state ∣ψ⟩=35∣0⟩+45∣1⟩|\psi\rangle = \frac{3}{5}|0\rangle + \frac{4}{5}|1\rangle. Show that this is a valid qubit state and find the probability of each measurement outcome. If you prepare and measure 100 identical copies, about how many results should be 0?
Step 1: Check normalization. The squared magnitudes of the amplitudes must sum to 1.
(35)2+(45)2=925+1625=1\left(\tfrac{3}{5}\right)^2 + \left(\tfrac{4}{5}\right)^2 = \tfrac{9}{25} + \tfrac{16}{25} = 1
Step 2: Apply the Born rule. Each outcome's probability is the squared magnitude of its amplitude.
P(0)=∣35∣2=925=0.36,P(1)=∣45∣2=1625=0.64P(0) = \left|\tfrac{3}{5}\right|^2 = \tfrac{9}{25} = 0.36, \qquad P(1) = \left|\tfrac{4}{5}\right|^2 = \tfrac{16}{25} = 0.64
Step 3: Each copy collapses to a single 0 or 1 when measured. Over 100 copies, the expected number of 0s is the number of copies times P(0).
100×0.36=36100 \times 0.36 = 36
Answer: The state is valid because 925+1625=1\frac{9}{25} + \frac{16}{25} = 1. Measurement gives 0 with probability 0.36 and 1 with probability 0.64, so about 36 of the 100 results should be 0.

Why It Matters

Qubits are the building blocks of quantum algorithms such as Shor's algorithm. Shor's algorithm factors integers in polynomial time on a quantum computer, which would break RSA encryption. In complexity theory, qubits define the class BQP. Most researchers believe BQP does not contain the NP-complete problems, so quantum computers are not expected to solve them efficiently.

Common Mistakes

Mistake: Thinking a qubit stores 0 and 1 at the same time and can therefore hold unlimited information.
Correction: A superposition is described by amplitudes, but measuring it gives only one classical bit. Holevo's theorem says nn qubits can carry at most nn classical bits of information (without prior shared entanglement). Quantum speedups come from interference between amplitudes, not from reading out every value at once.

Related Terms

  • Bit — Classical unit that a qubit generalizes to superpositions
  • Probability — Squared amplitudes give the measurement outcome probabilities
  • NP-Complete Problem — Problems quantum computers are not known to solve efficiently
  • NP-Hard Problem — Hardness class compared against quantum class BQP