Born Machine Expressivity and Concentration

Quantum Machine Learning, numerical solution.

Open In Colab

Born Machine Expressivity and Concentration


Background

A Born machine is a generative model that produces samples the way a quantum measurement does. A circuit \(U(\boldsymbol{\theta})\) acts on \(N\) qubits, and reading out the result in the computational basis returns a bitstring \(x\) with probability \(p(x) = |\langle x|U(\boldsymbol{\theta})|0\rangle|^2\). The \(2^N\) possible outcomes carry a probability distribution, and training the model means reshaping that distribution by adjusting the angles until the samples resemble the data. How rich the distribution can get is governed by how much entanglement the circuit builds, and both ends of the entanglement range impose a limit.

With no entanglement the state is a product across qubits and the distribution factorizes, each bit decided on its own. The inverse participation ratio \(\sum_x p(x)^2\), which counts how few outcomes carry most of the weight, is then fixed entirely by the single-qubit magnetizations to \(2^{-N}\prod_j(1+m_j^2)\). It runs from \(1/D\) when the weight is spread flat to \(1\) when it all collapses onto one bitstring. A product circuit can be broad or sharp, yet it can place no correlation between qubits.

At the opposite end a circuit deep enough to form a 2-design draws from a Porter-Thomas distribution, where the individual probabilities scatter according to the law \(De^{-Dp}\), the speckle pattern of a random quantum state. Such a state is never smooth. Its Shannon entropy lands a fixed amount \(1-\gamma_E \approx 0.423\) nats below the uniform value \(\ln D\), a constant deficit set by the random-speckle statistics rather than by anything tunable.

The same entanglement that lets the model spread weight across the outcome space also caps the correlations it can carry. The classical mutual information between two registers is bounded by \(2S(\rho_A)\), twice the entanglement entropy of the cut, through the data processing inequality. Reproducing correlations between distant parts of a dataset therefore demands genuine long-range entanglement in the circuit, which ties the statistical reach of the model to a physical resource.

Motivation

A Born machine is a quantum generative model where samples are drawn from the Born probability distribution \(p(x) = |\langle x | U(\boldsymbol{\theta}) | 0\rangle|^2\). Generative modeling aims to learn complex, highly correlated probability distributions.

This exercise explores the expressivity limits of Born machines. First, product states (no entanglement) can only generate factorized distributions with limited inverse participation ratios (IPR). Second, deep chaotic circuits (unitaries forming a 2-design) generate Porter-Thomas distributions, which exhibit an “entropy deficit” relative to the uniform distribution. Finally, we prove that classical correlations in the generated distribution are strictly bounded by the quantum entanglement entropy of the underlying state.

Preliminaries / Toolbox

1. Inverse Participation Ratio (IPR): \(C_2 = \sum_x p(x)^2\). It measures the sparsity/concentration of a distribution. \(C_2 = 1\) for a delta function (completely deterministic), and \(C_2 = 1/D\) for the uniform distribution (maximally spread).

2. Porter-Thomas Distribution: For a Haar-random pure state, each Born probability \(p(x)\) is drawn from a Beta distribution \(p_x \sim \mathrm{Beta}(1, D-1)\), which approximates an exponential distribution \(\Pr(p) \approx D e^{-Dp}\) for large \(D\).

3. Beta Integral Identity: If \(x \sim \mathrm{Beta}(\alpha, \beta)\), then \(\mathbb{E}[x \ln x] = \frac{\alpha}{\alpha+\beta}\left[\psi(\alpha+1) - \psi(\alpha+\beta+1)\right]\), where \(\psi(z)\) is the digamma function.

4. Data Processing Inequality: The mutual information between classical bitstrings \(X_A\) and \(X_B\) obtained by local measurements on subsystems \(A\) and \(B\) cannot exceed the quantum mutual information \(I_Q(A:B)\) of the pre-measurement state.

Exercise

(a) Show that for a product state \(|\psi\rangle = \bigotimes_{j=1}^N |\psi_j\rangle\) with local \(Z\)-magnetizations \(m_j = \langle Z_j\rangle\), the IPR is \(C_2 = 2^{-N} \prod_j (1 + m_j^2)\). Evaluate this for (i) all \(m_j = 0\) and (ii) all \(m_j = \pm 1\).

(b) For Haar-random states, show that the average Shannon entropy is \(\mathbb{E}[H] = \psi(D+1) - \psi(2)\), and compute the entropy deficit \(\Delta_H = \ln D - \mathbb{E}[H]\).

(c) Let \(X_A\) and \(X_B\) be classical bitstrings from measuring disjoint bipartite systems \(A\) and \(B\). Prove \(I(X_A : X_B) \leq 2 S(\rho_A)\).

Solution

Part (a): IPR of a Product State

For a product state, the Born probability factorizes: \(p(x) = \prod_{j=1}^N p_j(x_j)\), where \(p_j(0) = |\alpha_j|^2\) and \(p_j(1) = |\beta_j|^2\). The magnetization is \(m_j = p_j(0) - p_j(1)\).

Since \(p_j(0) + p_j(1) = 1\), we have \(p_j(0) = \frac{1+m_j}{2}\) and \(p_j(1) = \frac{1-m_j}{2}\).

The IPR also factorizes:

\[ C_2 = \sum_{x} p(x)^2 = \prod_{j=1}^N \bigl( p_j(0)^2 + p_j(1)^2 \bigr) = \prod_{j=1}^N \left[ \left(\frac{1+m_j}{2}\right)^2 + \left(\frac{1-m_j}{2}\right)^2 \right]. \]

\[ = \prod_{j=1}^N \frac{1 + 2m_j + m_j^2 + 1 - 2m_j + m_j^2}{4} = \prod_{j=1}^N \frac{2 + 2m_j^2}{4} = 2^{-N} \prod_{j=1}^N (1 + m_j^2). \quad \checkmark \]

Limits: - (i) \(m_j = 0\) (equatorial state, e.g., \(|+\rangle^{\otimes N}\)): \(C_2 = 2^{-N} \prod 1 = 1/D\). (Uniform distribution) - (ii) \(m_j = \pm 1\) (computational basis state): \(C_2 = 2^{-N} \prod 2 = 1\). (Delta function)

Part (b): Porter-Thomas Entropy Deficit

The Shannon entropy is \(H = -\sum_x p(x) \ln p(x)\). By linearity of expectation, \(\mathbb{E}[H] = -D \, \mathbb{E}[p_x \ln p_x]\).

Using \(p_x \sim \mathrm{Beta}(1, D-1)\), apply the beta integral identity with \(\alpha=1, \beta=D-1\):

\[ \mathbb{E}[p_x \ln p_x] = \frac{1}{D} \bigl[ \psi(2) - \psi(D+1) \bigr]. \]

\[ \mathbb{E}[H] = -D \cdot \frac{1}{D} \bigl[ \psi(2) - \psi(D+1) \bigr] = \psi(D+1) - \psi(2). \quad \checkmark \]

Using the asymptotic expansion of the digamma function \(\psi(z) \approx \ln z - \frac{1}{2z}\) for large \(z\), and \(\psi(2) = 1 - \gamma_E\) (where \(\gamma_E \approx 0.577\) is the Euler-Mascheroni constant):

\[ \mathbb{E}[H] \approx \ln(D+1) - (1 - \gamma_E) \approx \ln D - (1 - \gamma_E). \]

The entropy deficit relative to the uniform distribution (\(H_{\mathrm{unif}} = \ln D\)) is:

\[ \Delta_H = \ln D - \mathbb{E}[H] = 1 - \gamma_E \approx 0.4228 \text{ nats}. \]

This \(O(1)\) gap shows that Haar-random Born machines do not generate the uniform distribution; they have “speckle” fluctuations that reduce entropy.

Part (c): Entanglement bounds classical correlations

The process of drawing classical samples is conceptually a local quantum measurement map \(\mathcal{M} = \mathcal{M}_A \otimes \mathcal{M}_B\) on the pure state \(|\psi\rangle\langle\psi|\). The post-measurement classically-correlated state is \(\sigma_{AB} = \sum_{x_A, x_B} P(x_A, x_B) |x_A, x_B\rangle\langle x_A, x_B|\).

The classical mutual information is \(I(X_A : X_B) = I_Q(\sigma_{AB})\).

Because local measurements are CPTP maps, the Data Processing Inequality implies:

\[ I(X_A : X_B) = I_Q(\mathcal{M}(|\psi\rangle\langle\psi|)) \leq I_Q(|\psi\rangle\langle\psi|). \]

For a pure bipartite state \(|\psi\rangle\), the quantum mutual information is:

\[ I_Q(A:B) = S(\rho_A) + S(\rho_B) - S(\rho_{AB}) = S(\rho_A) + S(\rho_A) - 0 = 2S(\rho_A). \]

Thus, \(I(X_A : X_B) \leq 2S(\rho_A)\). \(\quad \checkmark\)

Consequence: A Born machine cannot learn probability distributions with long-range variable correlations (high classical mutual information) unless the underlying quantum circuit generates sufficient long-range quantum entanglement.


Symbolic Verification (SymPy)

Code
import sympy as sp
from sympy import digamma, EulerGamma

D = sp.Symbol('D', positive=True, integer=True)

# Part (a): IPR of product state
m = sp.Symbol('m')  # magnetization
C2_single = (sp.Rational(1,2) + m/2)**2 + (sp.Rational(1,2) - m/2)**2
C2_simplified = sp.simplify(C2_single)
print(f'Single-qubit IPR: {C2_simplified}')
print(f'  = (1 + m^2)/2')
assert sp.simplify(C2_simplified - (1 + m**2)/2) == 0

# Part (b): Porter-Thomas entropy deficit
# E[H] = psi(D+1) - psi(2), deficit = 1 - gamma_E
print(f'\nEntropy deficit = 1 - gamma_E = {float(1 - EulerGamma):.4f}')

# Part (c): Data processing inequality
print(f'I(X_A:X_B) <= I_Q(A:B) = 2*S(rho_A) for pure states')
Single-qubit IPR: m**2/2 + 1/2
  = (1 + m^2)/2

Entropy deficit = 1 - gamma_E = 0.4228
I(X_A:X_B) <= I_Q(A:B) = 2*S(rho_A) for pure states

Numerical Verification

Code
%matplotlib inline
import numpy as np
import matplotlib.pyplot as plt
from scipy.special import digamma

np.random.seed(0)
gamma_E = 0.5772156649

N_vals = np.arange(2, 9)
deficit_mc = []
for N in N_vals:
    D = 2**N
    Hs = []
    for _ in range(400):
        psi = np.random.randn(D) + 1j * np.random.randn(D)
        psi /= np.linalg.norm(psi)          # Haar-random pure state
        p = np.abs(psi)**2
        p = p[p > 1e-15]
        Hs.append(-np.sum(p * np.log(p)))
    deficit_mc.append(np.log(D) - np.mean(Hs))

D_exact = 2.0**N_vals
deficit_exact = np.log(D_exact) - (digamma(D_exact + 1) - digamma(2))

plt.figure(figsize=(6, 4))
plt.plot(N_vals, deficit_mc, 'o', color='royalblue', label='Haar Monte Carlo')
plt.plot(N_vals, deficit_exact, '-', color='royalblue', alpha=0.6,
         label=r'$\ln D - [\psi(D+1)-\psi(2)]$')
plt.axhline(1 - gamma_E, color='crimson', ls='--',
            label=r'$1-\gamma_E \approx 0.423$')
plt.xlabel('Number of qubits $N$')
plt.ylabel('Entropy deficit (nats)')
plt.title('Born machine: Porter-Thomas entropy deficit')
plt.legend()
plt.grid(True, ls='--', alpha=0.4)
plt.tight_layout()
plt.show()

Takeaway

A product state has IPR between \(1/D\) and \(1\) set by its local magnetizations, while a Haar-random Born machine follows the Porter-Thomas law and undershoots the uniform entropy by \(1-\gamma_E\approx0.423\) nats. Classical correlations between two subsystems are capped by \(2S(\rho_A)\), so a Born machine cannot reproduce long-range correlations without long-range entanglement.

Code
import numpy as np
from scipy.special import digamma
from scipy.stats import unitary_group

np.random.seed(42)
gamma_E = 0.5772156649

# Part (b) Porter-Thomas Entropy Deficit
print("Part (b): Porter-Thomas Entropy Deficit of Haar-random states")
print("=" * 65)
print(f"{'N':>3s}  {'D':>4s}  {'E[H] MC':>10s}  {'E[H] Exact':>10s}  {'Deficit MC':>10s}  {'1 - γ_E':>10s}")
print(f"{'─'*3:>3s}  {'─'*4:>4s}  {'─'*10:>10s}  {'─'*10:>10s}  {'─'*10:>10s}  {'─'*10:>10s}")

for N in [3, 4, 5, 6]:
    D = 2**N
    E_H_mc = 0.0
    for _ in range(1000):
        psi = unitary_group.rvs(D)[:, 0]
        p = abs(psi)**2
        p = p[p > 1e-15]
        E_H_mc += -np.sum(p * np.log(p))
    E_H_mc /= 1000

    E_H_exact = digamma(D+1) - digamma(2)
    H_unif = np.log(D)
    deficit = H_unif - E_H_mc

    print(f"{N:3d}  {D:4d}  {E_H_mc:10.4f}  {E_H_exact:10.4f}  {deficit:10.4f}  {1-gamma_E:10.4f}")
    assert abs(E_H_mc - E_H_exact) < 0.05

# Part (c) Mutual Information Bound
print("\nPart (c): Data Processing Bound I(X_A : X_B) <= 2S(A)")
print("=" * 55)
N = 4; D = 2**N; m = 2**(N//2)
for trial in range(3):
    psi = unitary_group.rvs(D)[:, 0]

    # Quantum Entropy S(A)
    psi_mat = psi.reshape(m, m)
    rho_A = psi_mat @ psi_mat.conj().T
    eigs = np.linalg.eigvalsh(rho_A)
    eigs = eigs[eigs > 1e-15]
    S_A = -np.sum(eigs * np.log(eigs))

    # Classical MI I(X_A : X_B)
    p_AB = abs(psi_mat)**2
    p_A = p_AB.sum(axis=1)
    p_B = p_AB.sum(axis=0)
    I_class = 0
    for a in range(m):
        for b in range(m):
            if p_AB[a,b] > 1e-15:
                I_class += p_AB[a,b] * np.log(p_AB[a,b] / (p_A[a] * p_B[b]))

    print(f"Trial {trial+1}: I(X_A:X_B) = {I_class:.4f} <= 2S(A) = {2*S_A:.4f}")
    assert I_class <= 2*S_A + 1e-10
Part (b): Porter-Thomas Entropy Deficit of Haar-random states
=================================================================
  N     D     E[H] MC  E[H] Exact  Deficit MC     1 - γ_E
───  ────  ──────────  ──────────  ──────────  ──────────
  3     8      1.7081      1.7179      0.3713      0.4228
  4    16      2.3846      2.3807      0.3879      0.4228
  5    32      3.0572      3.0585      0.4085      0.4228
  6    64      3.7450      3.7439      0.4139      0.4228

Part (c): Data Processing Bound I(X_A : X_B) <= 2S(A)
=======================================================
Trial 1: I(X_A:X_B) = 0.2500 <= 2S(A) = 1.3350
Trial 2: I(X_A:X_B) = 0.1849 <= 2S(A) = 1.9065
Trial 3: I(X_A:X_B) = 0.3829 <= 2S(A) = 2.0482

References

  • Liu and Wang, Differentiable learning of quantum circuit Born machines, Physical Review A (2018).
  • Benedetti et al., A generative modeling approach for benchmarking and training shallow quantum circuits, npj Quantum Information (2019).
  • Płodzień, Quantum Scrambling Born Machine (2026). arXiv:2602.17281
  • Płodzień, Information Scrambling, Quantum Chaos, and Haar-Random States, lecture notes (2025). arXiv:2511.14397