Skip to content
Current section
The Quantum Computing Enthusiast’s Hub
Saved
All sections

All sections

Saved
Skip Learn navigation
Encyclopedia
Topic

Quantum natural gradient

An optimization direction that accounts for the geometry of the quantum states represented by circuit parameters.

Edition released Coverage: Overview · Technical
On this page

Definition, purpose and input assumptions

Ordinary parameter gradients depend on how coordinates are scaled. Quantum natural-gradient methods use a metric on the represented states to choose a direction associated with physical state change. For pure states a common choice is the real part of the quantum geometric tensor, also called the Fubini-Study metric. The method needs estimates of both objective derivatives and metric information.

Mathematical mechanism

For normalized |psi(theta)>, the metric is g_ij=Re[<partial_i psi|partial_j psi>-<partial_i psi|psi><psi|partial_j psi>]. A natural-gradient step solves g delta_theta=-eta grad E, with suitable treatment of singular directions. The subtraction removes changes that are only global phase. Parameter redundancy can make g singular, requiring a pseudoinverse, regularization or a reduced coordinate system.

Fully solved reference example

For |psi(theta)>=R_Y(theta)|0>, the metric is g=1/4. With objective E=cos(theta), the ordinary derivative is-sin(theta), so the natural step is delta_theta=4eta sin(theta). Reparameterize theta=2phi. The state metric in phi becomes 1 and derivative dE/dphi=-2sin(2phi). Then delta_phi=2eta sin(2phi), which maps back to delta_theta=2delta_phi=4eta sin(theta), the same infinitesimal physical step.

Ordinary gradient descent would not have this coordinate consistency without adjusting its learning rate. The calculation demonstrates the geometric purpose; it does not prove faster convergence on every landscape.

Limitations and classical comparison

Metric estimation can cost more than the saved optimizer iterations. Finite-step behavior, shot noise and regularization break ideal invariance in practical ways. Barren plateaus and poor ansatz expressivity are not universally cured. Classical natural-gradient and preconditioned methods provide relevant comparisons.

Scientific relationships

Quantum natural gradient is used with parameterized quantum circuit ansatzes and VQE. It depends on state-space geometry and is distinct from parameter-shift rules, which estimate derivatives rather than choose an optimization metric.

A two-parameter metric with an explicit natural step

Use |ψ(θ,φ)>=R_Z(φ)R_Y(θ)|0> and objective E=<X+Z>=sin θ cos φ+cos θ. Removing the global-phase direction in the pure-state geometric tensor gives metric g=diag(1/4,sin²θ/4), with zero real cross term. The two coordinate directions therefore have different physical scales except at the equator. Changing φ near a pole barely changes the state, even when its numerical parameter displacement is large.

At θ=π/3 and φ=π/4, the gradient is (√2/4-√3/2,-√6/4), while the metric is diag(1/4,3/16). Solving gδ=-η∇E gives δθ=η(2√3-√2) and δφ=η(4√6/3). These values differ from ordinary gradient descent by unequal scale factors; a single rescaling of the learning rate cannot reproduce both components simultaneously.

The predicted first-order energy change is ∇E·δ=-η(11/2-√6). The squared local state-distance model is δ^Tgδ=η²(11/2-√6). These formulas connect the update to both objective decrease and physical state displacement. They also make clear that the learning rate remains a separate choice: the metric supplies a direction and scale relation, not a universal finite step that is guaranteed to improve the objective.

Comparing the local metric with the exact state overlap

For nearby parameters θ'=θ+δθ and φ'=φ+δφ, the exact squared overlap is [1+cos θ cos θ'+sin θ sin θ' cos(δφ)]/2. Expanding it gives infidelity δθ²/4+sin²θ δφ²/4 to second order, agreeing with the metric. Higher-order terms matter for larger updates. A trust-region rule can constrain the quadratic expression, but checking actual cost reduction remains a separate finite-step question.

As θ approaches zero, gφφ vanishes while the φ derivative of E is proportional to sin θ. The formal coordinate displacement δφ can consequently become large even though its local physical contribution remains bounded. At the pole itself, φ is not an identifiable state coordinate. A pseudoinverse can remove the null direction, but a poorly chosen coordinate patch may still obscure accessible tangent directions. Geometry does not make a singular coordinate system nonsingular automatically.

Using the quantum Fisher information matrix instead of this metric multiplies it by four under the common pure-state convention. The resulting parameter step is divided by four unless the learning rate is adjusted. A reported speed difference caused only by that convention is not a substantive optimization improvement. The matrix definition and learning-rate units must accompany numerical comparisons.

A redundant ansatz and its exact pseudoinverse

Consider R_Y(a)R_Y(b)|0>=R_Y(a+b)|0>, with s=a+b and objective cos s. The metric is one quarter times [[1,1],[1,1]]. Its eigenvalues are one half and zero. The zero direction (1,-1) changes the two parameters oppositely while leaving the state unchanged. The gradient is -sin s(1,1), entirely in the nonzero metric direction.

The Moore-Penrose pseudoinverse is [[1,1],[1,1]]. The minimum-norm natural step is therefore (δa,δb)=2η sin s(1,1), giving physical angle change δs=4η sin s. This agrees with the one-parameter metric for R_Y(s)|0>. The pseudoinverse has distributed the same physical change equally between redundant coordinates rather than attempting to invert an absent state direction.

Adding damping λI changes the result to δa=δb=η sin s/(1/2+λ). Damping suppresses the update and stabilizes noisy small eigenvalues, but it also changes the geometric motion. An identity matrix in one parameterization does not transform as the state metric under an arbitrary coordinate change. Damped natural-gradient methods therefore have weaker coordinate-invariance properties than the exact infinitesimal undamped construction.

Estimation and classical linear-algebra cost

A dense p-parameter metric contains on the order of p² entries before symmetry is used. Estimating it can cost more than estimating the gradient, and solving the resulting system classically adds work. Block approximations reduce this burden by discarding some parameter correlations; their output is an approximate preconditioned direction whose quality depends on the omitted entries.

Errors in a small metric eigenvalue can strongly change the inferred update. A precise gradient does not solve that problem if the metric itself is poorly estimated. Conversely, a stable metric cannot compensate for a gradient dominated by shot noise. Regularization, sample allocation, and stopping criteria should use both sources of uncertainty and distinguish true parameter redundancy from a noisy near-null direction.

The natural gradient also cannot create states outside the ansatz family or guarantee escape from every stationary point. Its purpose is to account for how parameters move the represented state. Classical natural-gradient, Gauss-Newton, and other preconditioned methods offer related comparisons, and a quantum application should include the cost of metric evaluation rather than compare only optimizer iteration counts.

Sources

  • James Stokes; Josh Izaac; Nathan Killoran; Giuseppe Carleo · · Research paper · Preprint recorded · arXiv · DOI 10.22331/q-2020-05-25-269
    Verification scope

    Recorded source check ·

    Geometric tensor, metric approximation, and measurement-cost context inspected.

    Formal scientific or official reference-semantics anchor. No SDK execution, hardware run, universal performance claim, or independent external peer review asserted. Original finite examples and definitions are independent explanations.