|q⟩ Bad Qubits

beginner · Physics · The Wavefunction & Born Rule

Discrete vs Continuous States

Quantum mechanics describes states in a Hilbert space — a complete, complex inner-product space. That Hilbert space can be finite-dimensional or infinite-dimensional, and the contrast between the two cases is at the heart of the difference between a qubit and a particle with a wavefunction.

The qubit: a two-dimensional Hilbert space

A qubit lives in C2\mathbb{C}^2, the simplest non-trivial quantum system. Its most general pure state is the superposition

ψ=α0+β1,|\psi\rangle = \alpha\,|0\rangle + \beta\,|1\rangle,

where α,βC\alpha, \beta \in \mathbb{C} are the amplitudes and the normalisation condition demands

α2+β2=1.|\alpha|^2 + |\beta|^2 = 1.

The Born rule is immediate: a measurement in the computational basis yields outcome 00 with probability α2|\alpha|^2 and outcome 11 with probability β2|\beta|^2. Because the Hilbert space has dimension N=2N = 2, there are exactly two possible outcomes, and the state is fully specified by two complex numbers (with one real constraint from normalisation and one irrelevant global phase, leaving two real degrees of freedom). More generally, an nn-qubit register lives in C2n\mathbb{C}^{2^n}, with 2n2^n discrete basis states.

The particle on a line: an infinite-dimensional Hilbert space

A particle moving freely in one dimension has a position that can take any value in R\mathbb{R}. Its state is encoded not in a finite list of amplitudes but in a wavefunction ψ(x)\psi(x), a complex-valued function over a continuous variable. Think of ψ(x)\psi(x) as an uncountably infinite column of amplitudes — one complex number for every point xx.

The Hilbert space is L2(R)L^2(\mathbb{R}), the set of all square-integrable functions on the real line. Its inner product is

ϕψ=ϕ(x)ψ(x)dx,\langle \phi | \psi \rangle = \int_{-\infty}^{\infty} \phi^*(x)\,\psi(x)\, dx,

the continuous analogue of the discrete sum above. Normalisation reads

ψψ=ψ(x)2dx=1.\langle \psi | \psi \rangle = \int_{-\infty}^{\infty} |\psi(x)|^2\, dx = 1.

Because the dimension is infinite there is no finite list of numbers that represents the state exactly. You need the entire function. (A technical aside: although the position label xx ranges over an uncountable continuum, L2(R)L^2(\mathbb{R}) is separable — it has a countable orthonormal basis, for example the harmonic-oscillator eigenfunctions {hn(x)}n=0\{h_n(x)\}_{n=0}^{\infty}. So its Hilbert-space dimension is countably infinite, 0\aleph_0, the same as the discrete space 2\ell^2 of square-summable sequences. The continuum lives in the labels, not in the dimension.)

The Born rule in each language

The translation between the two cases is direct:

| Feature | Qubit (discrete) | Particle on a line (continuous) | |---------|-----------------|----------------------------------| | State space | CN\mathbb{C}^N | L2(R)L^2(\mathbb{R}) | | State vector | ψ=kαkk|\psi\rangle = \sum_{k} \alpha_k |k\rangle | ψ(x)\psi(x) | | Amplitude for outcome | αk\alpha_k | ψ(x)\psi(x) | | Probability rule | P(k)=αk2P(k) = |\alpha_k|^2 | P(axb)=abψ(x)2dxP(a \le x \le b) = \int_a^b |\psi(x)|^2\, dx | | Normalisation | kαk2=1\sum_k |\alpha_k|^2 = 1 | ψ(x)2dx=1\int_{-\infty}^{\infty} |\psi(x)|^2\, dx = 1 |

In the continuous case you cannot ask "what is the probability of finding the particle at exactly x=0x = 0?" The answer is always zero, because a single point has measure zero. The physically meaningful quantity is the probability density ψ(x)2|\psi(x)|^2, which has units of length1\text{length}^{-1} in one dimension. Probability lives in integrals, not in the value of ψ\psi at a point.

Why this matters for quantum computing

Most of the circuits you build in this course operate entirely in the finite-dimensional setting: nn qubits, 2n2^n basis states, complex amplitudes, discrete measurement outcomes. The infinite- dimensional wavefunction language is needed when you want to describe how a physical qubit — say, an electron spin — connects to the underlying quantum mechanics of a real particle.

Spin-12\tfrac{1}{2} is the cleanest bridge: the spin degree of freedom of an electron is a genuine two-level system with Hilbert space C2\mathbb{C}^2, so the qubit formalism is not an approximation for spin — it is exact. By contrast, the position and momentum of the same electron live in L2(R)L^2(\mathbb{R}), requiring the continuous formalism. In practice, a full description of the electron couples both Hilbert spaces via a tensor product, but for quantum-computing purposes the spin (qubit) part is almost always handled in isolation.

Sign in on the full site to ask questions and join the discussion.