Haar Measure & Weingarten Calculus, numerical solution.
Overlap of Haar-Random States and Measure Concentration
Background
Pick two pure states independently at random from a \(D\)-dimensional Hilbert space, each drawn uniformly in the sense of the Haar measure, and ask how aligned they are. The natural measure of alignment is the squared overlap \(\chi = |\langle\psi|\phi\rangle|^2\), which runs from zero for orthogonal states to one when the two coincide. Since the states are random, \(\chi\) is itself a random number, and the object worth studying is its distribution.
That distribution turns out to be simple, a \(\mathrm{Beta}(1, D-1)\) law with density that decays as \((1-\chi)^{D-2}\). Its mean is \(1/D\), so in a large space two independent states are typically almost orthogonal. The spread shrinks at the same \(1/D\) rate as the mean, so the overlap concentrates toward zero in absolute terms even though its relative fluctuation stays of order one. As the dimension grows the overlap piles up near zero.
This is the simplest face of concentration of measure, the phenomenon in which a smooth function of a high-dimensional random vector clusters tightly around its average. Concentration is what licenses typicality arguments, where a single random state is allowed to stand in for the ensemble because almost every state behaves the same way. The overlap distribution is a clean place to watch this happen with an exact formula in hand.
A common misreading treats the small mean as a claim about one specific pair of states rather than about the law they are drawn from. The notebook computes the mean and variance directly from the density and confirms that the typical overlap and its absolute spread both vanish as \(D\) increases.
Mathematical background
The overlap distribution follows from the geometry of the sphere alone. By unitary invariance fix \(|\psi\rangle = (1,0,\dots,0)\), so that \(\chi = |\langle\psi|\phi\rangle|^2 = |\phi_1|^2\) for a random \(|\phi\rangle\) on \(S^{2D-1}\). The squared moduli \(\{|\phi_i|^2\}\) are uniform on the simplex \(\sum_i |\phi_i|^2 = 1\), a flat Dirichlet distribution, and integrating out all but the first coordinate leaves
the \(\mathrm{Beta}(1, D-1)\) law. Its mean is \(\mathbb{E}[\chi] = 1/D\) and its variance is \(\mathrm{Var}(\chi) = (D-1)/[D^2(D+1)]\), so the standard deviation is of order \(1/D\), the same order as the mean. The typical overlap magnitude is \(|\langle\psi|\phi\rangle| \sim D^{-1/2}\), and an atypically large overlap is exponentially suppressed,
\[
\Pr\big(|\langle\psi|\phi\rangle|^2 > \epsilon\big) \le e^{-c D \epsilon},
\]
so two random states in a large Hilbert space are almost always nearly orthogonal. The overlap concentrates toward zero in absolute terms while its relative spread stays of order one, which is why it does not self-average in the relative sense.
Exercise
The squared overlap \(\chi = |\langle\psi|\phi\rangle|^2\) between two independent Haar-random pure states in \(D\) dimensions has density:
The standard deviation scales as \(1/D\), the same order as the mean itself, so the relative fluctuation \(\sigma/\mu \to 1\) stays of order one. The overlap concentrates in absolute terms, with mean and spread both shrinking as \(1/D\), so two random states become orthogonal as \(D\) grows. It does not, however, self-average in the relative sense.
Symbolic Verification (SymPy)
Code
import sympy as spD = sp.Symbol('D', positive=True, integer=True)# Haar overlap: E[|<psi|phi>|^2] = 1/D (first moment)E_overlap = sp.Rational(1, 1) / Dprint(f'E[|<psi|phi>|^2] = {E_overlap}')# Second moment: E[|<psi|phi>|^4] = 2/(D(D+1))E_overlap4 = sp.Rational(2, 1) / (D * (D +1))print(f'E[|<psi|phi>|^4] = {E_overlap4}')# VarianceVar = sp.simplify(E_overlap4 - E_overlap**2)print(f'Var[|<psi|phi>|^2] = {Var}')expected = (D -1) / (D**2* (D +1))assert sp.simplify(Var - expected) ==0print(f'Verified: (D-1)/[D^2(D+1)]')# For large D, overlaps ~ Exp(D): concentrated near 0print(f'\nTypical overlap for N qubits:')for n inrange(2, 12): d =2**nprint(f' N={n:2d}: E[overlap] = {1/d:.6f}')
The overlap density is \((D-1)(1-\chi)^{D-2}\) with mean \(1/D\), and as \(D\) grows it piles up near zero. Two independent random states are then almost orthogonal with overwhelming probability.
Connections
The overlap of two random states is the simplest place to watch concentration of measure at work. Its mean is one over the dimension and its fluctuations shrink as the dimension grows, which is the same mechanism, in a more elaborate setting, behind the Page formula and purity concentration. The same shrinking of fluctuations is what makes quantum kernels and extreme learning machine features collapse and obstruct training.
References
Mele, Introduction to Haar Measure Tools in Quantum Information: A Beginner’s Tutorial, Quantum (2024). doi
Życzkowski and Sommers, Induced measures in the space of mixed quantum states, Journal of Physics A: Mathematical and General (2001).
Nadal et al., Statistical Distribution of Quantum Entanglement for a Random Bipartite State, Journal of Statistical Physics (2011). doi
Płodzień, Information Scrambling, Quantum Chaos, and Haar-Random States, lecture notes (2025). arXiv:2511.14397