|q⟩ Bad Qubits

advanced · Programming · Advanced VQE & Ansatz Design

Ansatz Expressibility

An ansatz U(θ)U(\boldsymbol{\theta}) defines a family of states {ψ(θ)=U(θ)0}\{|\psi(\boldsymbol{\theta})\rangle = U(\boldsymbol{\theta})|0\rangle\} as the parameter vector θ\boldsymbol{\theta} ranges over its domain. Expressibility asks a sharp question: how large, and how uniformly, does this family cover the Hilbert space? If the true ground state of your Hamiltonian lies outside the reachable set, no optimizer — however clever — can ever find it. Expressibility is therefore a necessary (though not sufficient) condition for a successful variational algorithm.

The reachable set

For an nn-qubit system the pure states live on a 2n12^{n}-1 complex-dimensional projective space. A parameterized circuit with pp real parameters traces out a manifold of dimension at most pp inside that space. Two consequences follow immediately:

A useful sanity check is to count. The unitary group SU(2n)\mathrm{SU}(2^n) has 4n14^n - 1 real parameters. A hardware-efficient ansatz of LL layers on nn qubits with three rotation angles per qubit per layer has roughly 3nL3nL parameters. To even have a chance of universality you need 3nL4n13nL \gtrsim 4^n - 1, which grows exponentially in nn.

Measuring expressibility with state overlaps

Sim, Johnson, and Aspuru-Guzik proposed a concrete, samplable metric. Draw two parameter vectors θ,ϕ\boldsymbol{\theta}, \boldsymbol{\phi} at random and record the fidelity F=ψ(θ)ψ(ϕ)2F = |\langle\psi(\boldsymbol{\theta})|\psi(\boldsymbol{\phi})\rangle|^2. Repeating this builds an empirical distribution Pansatz(F)P_{\text{ansatz}}(F). Compare it to the distribution you would get if the states were drawn uniformly (Haar-randomly) from the Hilbert space, which for dimension d=2nd = 2^n is

PHaar(F)=(d1)(1F)d2.P_{\text{Haar}}(F) = (d-1)\,(1-F)^{\,d-2}.

Expressibility is then quantified as the Kullback–Leibler divergence

Expr=DKL ⁣(Pansatz(F)PHaar(F)).\text{Expr} = D_{\mathrm{KL}}\!\bigl(P_{\text{ansatz}}(F)\,\|\,P_{\text{Haar}}(F)\bigr).

A smaller divergence means the ansatz scatters states almost as uniformly as a Haar-random unitary — high expressibility. A large divergence means the circuit clusters its outputs in a small corner of Hilbert space — low expressibility.

Worked single-qubit example

Consider the one-parameter ansatz ψ(θ)=RY(θ)0=cos(θ/2)0+sin(θ/2)1|\psi(\theta)\rangle = R_Y(\theta)|0\rangle = \cos(\theta/2)|0\rangle + \sin(\theta/2)|1\rangle. With only a real amplitude it traces a great circle on the Bloch sphere — the xzxz-plane — and can never reach states with a complex relative phase such as +i|{+i}\rangle. It is expressively limited.

Add a second rotation, ψ(θ,ϕ)=RZ(ϕ)RY(θ)0|\psi(\theta,\phi)\rangle = R_Z(\phi)R_Y(\theta)|0\rangle. Now θ\theta sets the polar angle and ϕ\phi the azimuth, so the two parameters sweep the entire Bloch sphere: this ansatz is universal for one qubit. Counting matches intuition — the single-qubit pure state space is 2-real-dimensional, and we used exactly two parameters.

Why more is not always better

Expressibility trades against two other concerns you will study next:

The art of ansatz design is choosing a circuit expressible enough to contain the answer, but structured enough — by symmetry, locality, or problem knowledge — to stay trainable and shallow.

Key takeaways

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