Skip to content

A variational parameter is a coordinate on a chosen family of trial states. Widths, orbital exponents, mixing angles, correlation lengths, tensor entries, and circuit rotations all play this role. Optimizing them means finding the lowest Rayleigh quotient accessible to that family, not solving the unrestricted Hilbert-space problem.

Required background. The Variational Principle supplies the upper bound; Trial Wavefunctions explains ansatz design, and Calculus of Variations supplies stationarity conditions.

Let

θ=(θ1,…,θp)∈P\boldsymbol\theta = (\theta^1,\ldots,\theta^p) \in \mathcal P

be real parameters and let ∣ψ(θ)⟩\lvert\psi(\boldsymbol\theta)\rangle be a differentiable family of nonzero admissible states. The strong-residual formulas below assume ψ∈D(H)\psi\in D(H) and enough regularity to differentiate its energy. More generally a family differentiable in the form norm has the same quotient derivative with ⟨∂aψ∣H∣ψ⟩\langle\partial_a\psi|H|\psi\rangle replaced by qH(∂aψ,ψ)q_H(\partial_a\psi,\psi); a Hilbert-space residual need not exist. For a fixed Hamiltonian HH, define

E(θ)=⟨ψ(θ)∣H∣ψ(θ)⟩⟨ψ(θ)∣ψ(θ)⟩.E(\boldsymbol\theta) = \frac{ \langle\psi(\boldsymbol\theta)\rvert H \lvert\psi(\boldsymbol\theta)\rangle }{ \langle\psi(\boldsymbol\theta) \vert \psi(\boldsymbol\theta)\rangle }.

The parameter optimum is

Eopt=inf⁡θ∈PE(θ).E_{\mathrm{opt}} = \inf_{\boldsymbol\theta\in\mathcal P} E(\boldsymbol\theta).

The distinction between minimum and infimum matters. A parameter can run toward a boundary or infinity while the energy approaches a limiting value that is never attained inside P\mathcal P. Compact parameter ranges do not arise automatically.

Three spaces should remain conceptually separate:

  1. Parameter space P\mathcal P, where the optimizer moves.
  2. Trial manifold M\mathcal M, the set of physical rays represented by the ansatz.
  3. Hilbert space, which contains both M\mathcal M and states the ansatz cannot represent.

Different parameter values can represent the same physical ray. Overall phase, normalization, periodic angles, tensor-network gauge transformations, and redundant basis functions all create such nonuniqueness.

Write

N(θ)=⟨ψ∣ψ⟩,∣∂aψ⟩=∂∂θa∣ψ⟩.N(\boldsymbol\theta) = \langle\psi\vert\psi\rangle, \qquad \lvert\partial_a\psi\rangle = \frac{\partial}{\partial\theta^a} \lvert\psi\rangle.

For fixed HH, quotient differentiation gives

∂aE=⟨∂aψ∣H∣ψ⟩+⟨ψ∣H∣∂aψ⟩N−E⟨∂aψ∣ψ⟩+⟨ψ∣∂aψ⟩N.\partial_a E ={} \frac{ \langle\partial_a\psi\rvert H\lvert\psi\rangle + \langle\psi\rvert H\lvert\partial_a\psi\rangle }{N} - E \frac{ \langle\partial_a\psi\vert\psi\rangle + \langle\psi\vert\partial_a\psi\rangle }{N}.

Introduce the residual

∣r⟩=(H−E)∣ψ⟩.\lvert r\rangle = (H-E)\lvert\psi\rangle.

Then the gradient component has the compact form

∂aE=2NRe⁡⟨∂aψ∣r⟩.\partial_a E = \frac{2}{N} \operatorname{Re} \langle\partial_a\psi\vert r\rangle.

This formula is valid whether or not the ansatz is explicitly normalized. It also reveals the central geometry: at a stationary point, the residual is real-orthogonal to every parameter tangent,

Re⁡⟨∂aψ∣r⟩=0,a=1,…,p.\operatorname{Re} \langle\partial_a\psi\vert r\rangle = 0, \qquad a=1,\ldots,p.

The residual need not vanish. Optimization only removes its components visible inside the tangent space of the trial family.

If N=1N=1 for every parameter value, differentiation of the normalization condition gives

2Re⁡⟨ψ∣∂aψ⟩=0.2\operatorname{Re} \langle\psi\vert\partial_a\psi\rangle = 0.

The tangent can still contain a purely imaginary component parallel to ∣ψ⟩\lvert\psi\rangle, corresponding to a parameter-dependent phase. Because

⟨ψ∣r⟩=0,\langle\psi\vert r\rangle = 0,

that phase direction does not affect the energy gradient.

For complex parameters, either split each one into real and imaginary parts or use Wirtinger derivatives with zaz^a and za∗z^{a*} treated as independent coordinates. For a real-valued differentiable objective, the two Wirtinger derivatives are conjugate: setting either entire complex derivative to zero imposes both real stationarity conditions. Treating the real energy as a holomorphic function, or varying only the real part of a complex parameter, is generally incorrect.

Tangent Vectors and the State-Space Metric

Section titled “Tangent Vectors and the State-Space Metric”

Normalized vectors that differ only by overall phase represent the same physical state. Remove the phase-and-normalization component of a parameter derivative by defining

∣Daψ⟩=(I−∣ψ⟩⟨ψ∣)∣∂aψ⟩.\lvert D_a\psi\rangle = \left( I- \lvert\psi\rangle\langle\psi\rvert \right) \lvert\partial_a\psi\rangle.

For normalized states,

∂aE=2Re⁡⟨Daψ∣r⟩.\partial_a E = 2\operatorname{Re} \langle D_a\psi\vert r\rangle.

The real part of the pulled-back quantum geometric tensor defines a metric on nonredundant parameter directions:

Gab=Re⁡⟨Daψ∣Dbψ⟩.G_{ab} = \operatorname{Re} \langle D_a\psi\vert D_b\psi\rangle.

Equivalently,

Gab=Re⁡[⟨∂aψ∣∂bψ⟩−⟨∂aψ∣ψ⟩⟨ψ∣∂bψ⟩].G_{ab} ={} \operatorname{Re} \bigl[ \langle\partial_a\psi \vert\partial_b\psi\rangle - \langle\partial_a\psi\vert\psi\rangle \langle\psi\vert\partial_b\psi\rangle \bigr].

This metric measures how much the physical state changes, rather than how far the raw coordinates move. It is positive semidefinite. A zero eigenvalue means no first-order change of the physical ray along that coordinate direction. It can reflect a true redundancy or a singular parameterization: ψ(θ)∝∣0⟩+θ2∣1⟩\psi(\theta)\propto|0\rangle+\theta^2|1\rangle has zero metric at θ=0\theta=0 even though finite changes matter. Nearly zero eigenvalues indicate weak first-order sensitivity.

The full geometric interpretation is developed in Fubini–Study Geometry. For optimization, the practical lesson is immediate: equal Euclidean steps in two parameters need not produce equal changes in the state.

Let

ga=∂aE.g_a = \partial_a E.

An ordinary gradient step is

δθa=−ηga.\delta\theta^a = -\eta g_a.

A metric-scaled or natural-gradient step solves

∑b(Gab+λδab)δθb=−ηga,\sum_b \left( G_{ab}+\lambda\delta_{ab} \right) \delta\theta^b = -\eta g_a,

where λ≥0\lambda\geq0 is a damping parameter. At λ=0\lambda=0, a pseudoinverse removes null directions. Positive damping instead bounds the amplification of small metric eigenvalues; adding λI\lambda I also introduces a coordinate-dependent Euclidean scale. Neither operation makes the state metric equal to the energy Hessian.

Natural-gradient language does not create a universal optimizer. The metric can be noisy, singular, expensive to form, or only locally informative. Damping, trust regions, and independent convergence checks remain necessary.

For an unconstrained interior optimum θ⋆\boldsymbol\theta_\star,

∇θE∣θ⋆=0.\nabla_{\boldsymbol\theta}E \big|_{\boldsymbol\theta_\star} = 0.

This condition is necessary, not sufficient. It can describe a local minimum, maximum, saddle, or flat manifold of equivalent parameterizations.

Suppose η\boldsymbol\eta is another smooth coordinate system with

θa=θa(η).\theta^a = \theta^a(\boldsymbol\eta).

The gradient components transform by the chain rule:

∂E∂ηi=∑a∂θa∂ηi∂E∂θa.\frac{\partial E}{\partial\eta^i} = \sum_a \frac{\partial\theta^a}{\partial\eta^i} \frac{\partial E}{\partial\theta^a}.

The statement that the gradient vanishes is coordinate independent at a nonsingular change of variables. The numerical size of the gradient is not. A stopping rule such as ∥∇E∥<ε\lVert\nabla E\rVert\lt\varepsilon is meaningless until the parameter scaling and norm have been specified.

Linear coefficients as variational parameters

Section titled “Linear coefficients as variational parameters”

For

∣ψ⟩=∑jcj∣ϕj⟩,\lvert\psi\rangle = \sum_j c_j\lvert\phi_j\rangle,

stationarity with respect to all real and imaginary coefficient directions gives

Hc=ESc.Hc=ESc.

Thus the generalized eigenvalue equation is the exact coefficient-stationarity condition inside a linear trial space. Nonlinear parameters in the basis functions require an additional outer optimization. See the Rayleigh–Ritz Method.

Constraints are often best enforced by construction. An optimizer should not be allowed to step outside the domain where the trial state is meaningful.

If a width bb must satisfy b>0b\gt0, write

b=brefeη,η∈R.b = b_{\mathrm{ref}}e^\eta, \qquad \eta\in\mathbb R.

Then

dEdη=bdEdb.\frac{dE}{d\eta} = b\frac{dE}{db}.

At a stationary point,

d2Edη2=b2d2Edb2,\frac{d^2E}{d\eta^2} = b^2\frac{d^2E}{db^2},

because the term b dE/dbb\,dE/db vanishes there. Logarithmic coordinates enforce positivity and make multiplicative scale changes additive.

Explicit normalization can be built into the ansatz, or the Rayleigh quotient can remove a free overall scale. Treating normalization as an independent unconstrained parameter creates a flat direction. If one instead minimizes ⟨ψ∣H∣ψ⟩\langle\psi\rvert H\lvert\psi\rangle subject to ⟨ψ∣ψ⟩=1\langle\psi\vert\psi\rangle=1, a Lagrange multiplier produces the eigenvalue equation.

For constraints

Cμ(θ)=0,μ=1,…,q,C_\mu(\boldsymbol\theta) = 0, \qquad \mu=1,\ldots,q,

under a regularity condition such as independent constraint gradients, the first-order condition is

∇E+JCTλ=0,\nabla E + J_C^{\mathsf T} \boldsymbol\lambda = 0,

where

(JC)μa=∂Cμ∂θa.(J_C)_{\mu a} = \frac{\partial C_\mu}{\partial\theta^a}.

Equivalently, the gradient must vanish along every tangent direction that preserves the constraints to first order.

Particle exchange, parity, angular momentum, gauge constraints, and boundary conditions should usually be built into the state family rather than imposed through a large energy penalty. A finite penalty changes the objective and can leave symmetry contamination. Projection methods can restore a symmetry, but their normalization and parameter derivatives must then be included consistently.

The parameter Hessian is

Kab=∂2E∂θa∂θb.K_{ab} = \frac{\partial^2E}{ \partial\theta^a\partial\theta^b }.

At an unconstrained local minimum, KK is positive semidefinite. Positive definiteness requires an isolated nondegenerate quadratic minimum after redundant directions are removed; even an isolated minimum such as E(θ)=E∗+θ4E(\theta)=E_*+\theta^4 has zero Hessian. A negative eigenvalue identifies a descent direction, while a zero eigenvalue can signal symmetry, gauge redundancy, an underdetermined ansatz, or a higher-order flat direction.

Suppose a normalized ansatz passes through an exact eigenstate ∣n⟩\lvert n\rangle at θ0\boldsymbol\theta_0. Since the residual vanishes there, the Hessian simplifies to

Kab=2Re⁡⟨Dan∣(H−En)∣Dbn⟩.K_{ab} = 2\operatorname{Re} \langle D_a n\rvert (H-E_n) \lvert D_b n\rangle.

For the ground state, this quadratic form is nonnegative. For an excited eigenstate, a tangent confined to lower-energy states has negative curvature unless constraints exclude it. A general tangent with both lower- and higher-energy components has curvature set by their energy-weighted sum; lower-state overlap alone does not determine its sign. An excited eigenstate is therefore typically a saddle of the unrestricted energy functional. Rigorous excited-state bounds use the ordered subspace construction developed in Upper Bounds and the Min–Max Principle.

Let the nonzero Hessian eigenvalues near a minimum be

0<κmin⁡≤κi≤κmax⁡.0\lt\kappa_{\min} \leq \kappa_i \leq \kappa_{\max}.

The ratio

cond⁡(K)=κmax⁡κmin⁡\operatorname{cond}(K) = \frac{\kappa_{\max}}{\kappa_{\min}}

measures local anisotropy in the chosen coordinates. A large ratio creates a narrow valley: steps stable in the stiff direction make painfully slow progress along the soft direction. This is an optimization-conditioning problem, not automatically evidence of a poor ansatz.

Elliptical energy contours with a zigzag coordinate-gradient path and a direct metric-scaled path toward the minimum.

Elongated contours indicate very different curvatures along two parameter combinations. Unscaled coordinate-gradient steps can zigzag across a stiff direction; curvature or state-metric information can propose a better-scaled local step. Neither path changes the trial family’s ansatz error.

The numerical interpretation of condition numbers and stability is developed in Conditioning and Stability.

Physical dimensions should be removed before handing a problem to a numerical optimizer. If one parameter is measured in inverse ångströms and another in joules, an ordinary Euclidean gradient combines incomparable coordinate components.

A useful workflow is:

  1. identify natural length, energy, and time scales from the Hamiltonian;
  2. express the ansatz in dimensionless variables;
  3. center parameters near physically plausible values;
  4. use logarithmic variables for positive scales spanning orders of magnitude;
  5. inspect Hessian or metric eigenvalues after the transformation.

Good scaling does not alter the physical trial family. It changes the chart used to search it.

The quartic oscillator provides a compact example of why scaling should precede optimization. For H=P2/(2m)+mω2X2/2+λX4H=P^2/(2m)+m\omega^2X^2/2+\lambda X^4 with λ≥0\lambda\ge0 and a Gaussian proportional to e−xphys2/(2b2)e^{-x_{\rm phys}^2/(2b^2)}, define

x=bℏ/(mω),γ=λℏm2ω3,x = \frac{b}{\sqrt{\hbar/(m\omega)}}, \qquad \gamma = \frac{\lambda\hbar}{m^2\omega^3},

the Gaussian Rayleigh quotient becomes

E(x)ℏω=14x2+x24+3γx44.\frac{E(x)}{\hbar\omega} = \frac{1}{4x^2} + \frac{x^2}{4} + \frac{3\gamma x^4}{4}.

The positive parameter xx is dimensionless and order unity at weak coupling. Frequency notation uses y=Ω/ω=x−2y=\Omega/\omega=x^{-2}, so the same stationary condition can be written in either chart:

−1+x4+6γx6=0⟺y3−y−6γ=0.-1+x^4+6\gamma x^6=0 \quad\Longleftrightarrow\quad y^3-y-6\gamma=0.

The complete normalization, minimization, weak- and strong-coupling limits, upper-bound interpretation, residual analysis, and numerical comparison are developed in Anharmonic Oscillator by Variational Methods. The coordinate lesson needed here is that the physical optimum is unchanged by the smooth reparameterization y=x−2y=x^{-2}, while gradients and curvatures acquire different numerical scales.

Suppose a nonorthogonal basis depends on a nonlinear parameter α\alpha and the optimized coefficients solve

H(α)c=E(α)S(α)c,H(\alpha)c = E(\alpha)S(\alpha)c,

with normalization

c†Sc=1.c^\dagger S c = 1.

Along a differentiable normalized eigenbranch of this Hermitian generalized problem,

dEdα=c†(dHdα−EdSdα)c.\frac{dE}{d\alpha} = c^\dagger \left( \frac{dH}{d\alpha} - E\frac{dS}{d\alpha} \right) c.

At a degeneracy one must first select branches by diagonalizing H′−ES′H' - ES' within the degenerate eigenspace, using its SS metric. The dS/dαdS/d\alpha term is essential. It records the changing basis geometry and is a finite-dimensional relative of a Pulay term. Ignoring it treats a moving nonorthogonal basis as fixed and generally gives the wrong gradient.

If the coefficient eigenproblem is not converged, additional response terms survive. The clean derivative formula relies on stationarity with respect to cc.

Optimized Energies and the Envelope Principle

Section titled “Optimized Energies and the Envelope Principle”

Let the Hamiltonian depend on a physical control parameter λ\lambda, and define

E⋆(λ)=E(θ⋆(λ),λ).E_\star(\lambda) = E( \boldsymbol\theta_\star(\lambda), \lambda ).

The total derivative is

dE⋆dλ=∂E∂λ∣θ+∑a∂E∂θadθ⋆adλ.\frac{dE_\star}{d\lambda} = \left. \frac{\partial E}{\partial\lambda} \right|_{\boldsymbol\theta} + \sum_a \frac{\partial E}{\partial\theta^a} \frac{d\theta^a_\star}{d\lambda}.

At an unconstrained stationary optimum, the second term vanishes:

dE⋆dλ=∂E∂λ∣θ⋆.\frac{dE_\star}{d\lambda} = \left. \frac{\partial E}{\partial\lambda} \right|_{\boldsymbol\theta_\star}.

This is why optimized variational energies often have simple first derivatives even though the optimal parameters move. Incomplete optimization, changing constraints, and parameter-dependent bases can restore response terms. The operator-derivative statement and its caveats are treated in the Hellmann–Feynman Theorem.

No optimizer repairs a trial family that cannot represent the needed physics. Within a reasonable family, the method should match the parameter count, smoothness, conditioning, constraints, and noise level.

Method Useful when Main caution
Analytic stationarity One or a few parameters and tractable integrals Roots can be maxima or saddles
Gradient descent with line search Gradients are reliable and scaling is moderate Slow in narrow valleys
Conjugate-gradient or quasi-Newton Smooth medium-to-large problems Curvature models can be corrupted by noise
Newton or trust-region method Accurate Hessian information is affordable Hessians can be indefinite or singular
Derivative-free search Very few parameters or nonsmooth evaluations Scales poorly with dimension
Natural gradient or stochastic reconfiguration State geometry is important or Monte Carlo samples provide the metric Metric estimation, damping, and rank control are delicate

A descent direction is not enough. A line search chooses a step length that actually lowers the objective, while a trust region limits the update to a neighborhood where the local model is credible. In noisy calculations, requiring a decrease much smaller than the estimator uncertainty has no statistical meaning.

In variational Monte Carlo, the energy, gradient, and metric are sample estimates. Reusing correlated samples can reduce the noise in energy differences, but it also complicates uncertainty estimates. Optimization bias and final statistical uncertainty should be assessed with fresh samples. See Variational Monte Carlo Preview.

Automatic differentiation can evaluate exact derivatives of the implemented computational graph. It does not certify that the graph represents the intended Hamiltonian, normalization, boundary conditions, or sampling distribution. Analytic limits and finite-difference spot checks remain valuable.

Let b=brefeηb=b_{\mathrm{ref}}e^\eta. Derive the first and second derivatives of EE with respect to η\eta, and simplify the second derivative at a stationary point in bb.

Solution

Because db/dη=bdb/d\eta=b,

dEdη=bdEdb.\frac{dE}{d\eta} = b\frac{dE}{db}.

Differentiating again,

d2Edη2=bdEdb+b2d2Edb2.\frac{d^2E}{d\eta^2} = b\frac{dE}{db} + b^2\frac{d^2E}{db^2}.

At dE/db=0dE/db=0,

d2Edη2∣⋆=b⋆2d2Edb2∣⋆.\left. \frac{d^2E}{d\eta^2} \right|_\star = b_\star^2 \left. \frac{d^2E}{db^2} \right|_\star.

Thus the sign of the curvature at an interior stationary point is unchanged, while its numerical scale changes.

Consider a normalized path through ∣n⟩\lvert n\rangle whose projected tangent is ∣Dψ⟩=a∣m⟩\lvert D\psi\rangle=a\lvert m\rangle, with a≠0a\ne0 and Em<EnE_m\lt E_n. Use the exact-eigenstate Hessian to determine the curvature along this purely lower-state direction. If a higher eigenstate is also available, explain why ∣n⟩\lvert n\rangle is a saddle in the unrestricted state space.

Solution

Take a projected tangent ∣Dψ⟩=a∣m⟩\lvert D\psi\rangle=a\lvert m\rangle. The second variation is proportional to

2⟨Dψ∣(H−En)∣Dψ⟩=2∣a∣2(Em−En)<0.2\langle D\psi\rvert (H-E_n) \lvert D\psi\rangle = 2\lvert a\rvert^2 (E_m-E_n) \lt0.

Since Em−En<0E_m-E_n\lt0, the curvature is negative. The energy decreases by mixing in the lower state, so the excited eigenstate is not a local minimum in the unrestricted state space. A purely higher-state tangent gives positive curvature, establishing the saddle when both directions exist. A symmetry or orthogonality constraint can remove either direction. A tangent mixing lower and higher states instead has a weighted sum of both signs, so its lower-state component alone does not determine the curvature.

Derivative in a moving nonorthogonal basis

Section titled “Derivative in a moving nonorthogonal basis”

Differentiate Hc=EScHc=ESc with respect to α\alpha, left-multiply by c†c^\dagger, and use c†H=Ec†Sc^\dagger H=E c^\dagger S and c†Sc=1c^\dagger Sc=1 to derive the parameter-dependent-basis formula.

Solution

Differentiation gives

H′c+Hc′=E′Sc+ES′c+ESc′.H'c+Hc' = E'Sc+ES'c+ESc'.

Left-multiplying by c†c^\dagger yields

c†H′c+c†Hc′=E′c†Sc+Ec†S′c+Ec†Sc′.c^\dagger H'c + c^\dagger Hc' ={} E'c^\dagger Sc + E c^\dagger S'c + E c^\dagger Sc'.

Using c†H=Ec†Sc^\dagger H=E c^\dagger S cancels the terms containing c′c', and c†Sc=1c^\dagger Sc=1 gives

E′=c†(H′−ES′)c.E' = c^\dagger(H'-ES')c.

The overlap derivative cannot be discarded when the basis moves.