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 , written with complex amplitudes and orthonormal computational basis . Vectors that differ only by a global phase factor describe the same physical state. As a result, pure qubit states correspond one-to-one with points on the Bloch sphere. A system of qubits lives in , so describing its state can take up to amplitudes.
Key Formula
Where:
- = The state of the qubit (read "ket psi")
- = Complex amplitude of the basis state 0; measuring gives 0 with probability |α|²
- = Complex amplitude of the basis state 1; measuring gives 1 with probability |β|²
- = The two computational basis states, analogous to the classical bit values 0 and 1
Worked Example
Problem: A qubit is prepared in the state . 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.
Step 2: Apply the Born rule. Each outcome's probability is the squared magnitude of its amplitude.
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).
Answer: The state is valid because . 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 qubits can carry at most classical bits of information (without prior shared entanglement). Quantum speedups come from interference between amplitudes, not from reading out every value at once.
