Source-linked AI summary

Quantum Natural Gradient

James Stokes, Josh Izaac, Nathan Killoran, Giuseppe Carleo

arXiv:1909.02108v3quant-phcs.LGstat.ML

TL;DR

Variational quantum-circuit optimization must handle noisy estimates, while conventional geometry and step-size selection present limitations. The paper introduces Quantum Natural Gradient using the Fubini–Study metric, or real QGT, and gives an efficient block-diagonal approximation. The resulting algorithm is a quantum analogue of Natural Gradient, and diagonal preconditioning outperforms vanilla gradient descent in iterates required for convergence.

  • Problem

    General-purpose variational quantum algorithms lack an established relevant parameter-space geometry, while noisy optimization and step-size selection complicate training.

  • Method

    The paper defines descent using the Riemannian Fubini–Study metric, represented on parametrized circuits by the real part of the QGT, and computes a block-diagonal approximation with quantum circuits.

  • Results

    The resulting method is a direct quantum analogue of Natural Gradient, and its diagonal preconditioning outperforms vanilla gradient descent in iterates required for convergence.

  • Takeaways & Limitations

    Quantum information geometry provides a reparametrization-invariant optimization direction for variational quantum circuits, with an efficiently computable QGT approximation.

  • Takeaways & Limitations

    The circuit construction assumes commuting parametric gates within each layer and, for distinct parameters, parameter-independent generators.

Abstract

from arXiv · show

A quantum generalization of Natural Gradient Descent is presented as part of a general-purpose optimization framework for variational quantum circuits. The optimization dynamics is interpreted as moving in the steepest descent direction with respect to the Quantum Information Geometry, corresponding to the real part of the Quantum Geometric Tensor (QGT), also known as the Fubini-Study metric tensor. An efficient algorithm is presented for computing a block-diagonal approximation to the Fubini-Study metric tensor for parametrized quantum circuits, which may be of independent interest.

1 Introduction

Variational quantum algorithms require optimization under noisy measurement estimates, while the relevant parameter-space geometry remains an open design question. This paper introduces a quantum information-geometric approach based on the Fubini–Study metric and an efficiently computable QGT approximation.

  • Variational quantum circuits support hybrid algorithms including VQE, QAOA, and QNNs, whose costs and gradients are estimated noisily through repeated measurements.
  • First-order stochastic optimization is attractive because its convex-case convergence can be independent of parameter dimension, unlike the best known zeroth-order methods.
  • Vanilla gradient descent uses l2 geometry, making optimization sensitive to step-size choices tied to difficult-to-compute curvature information.
  • The paper addresses the open problem of identifying a general-purpose geometry for variational quantum algorithms by using a Riemannian metric on quantum-state space.
  • The Fubini–Study metric, obtained as the real part of the QGT on the parametrized-state submanifold, supplies a reparametrization-invariant descent direction.
  • A circuit construction computes a block-diagonal QGT approximation, while diagonal preconditioning requires fewer iterates to converge than vanilla gradient descent.

2 Theory

The theory develops the Fubini–Study metric and its Quantum Geometric Tensor representation for variational quantum states, then uses the metric to define Quantum Natural Gradient dynamics. It also derives an efficiently measurable block-diagonal approximation for layered parametrized circuits.

  • Quantum Information Geometry: The Fubini–Study metric is the real part of the Quantum Geometric Tensor on parametrized pure quantum states.The metric is induced by the geometry of complex projective space rather than the previously considered l1 or l2 geometries.
  • Optimization problem: Quantum Natural Gradient updates follow the steepest descent direction defined by the Fubini–Study metric and use its pseudo-inverse.In practice, the corresponding linear system is solved directly instead of explicitly materializing the pseudo-inverse.
  • Quantum Circuit Representation of Quantum Geometric Tensor: For layered circuits, the proposed approximation retains only the block-diagonal components of the Quantum Geometric Tensor across parameter layers.Within each layer, commuting parametrized gates yield commuting Hermitian generators, enabling the block construction.
  • Quantum Circuit Representation of Quantum Geometric Tensor: Each metric block can be evaluated using quantum expectation values of Hermitian observables on states prepared by experimentally realizable circuit subcircuits.The construction identifies both the observables and the subcircuit-prepared states needed for measurement.
  • Observables: For tensor-product single-qubit Pauli rotations, commuting observables reduce the required state preparations from n(n + 1)/2 to a single measurement.The reduction follows because every operator in the relevant set S_l commutes.

3 Numerical Experiments

The numerical experiments evaluate Quantum Natural Gradient using efficient block-diagonal and diagonal Fubini-Study metric approximations, with implementation cost scaling as 2d + L quantum evaluations per step. Across tested circuits, Quantum Natural Gradient reaches the minimum in few iterations, while vanilla gradient descent fails.

  • Implementation: The implementation extracts parametrized layers from a circuit DAG and determines the generators for each layer's parameters.Gates without mutual dependence can be grouped into the same layer.
  • Metric computation: The block-diagonal Fubini-Study metric can be computed from quantum expectation values of Hermitian observables for each circuit layer.For each layer, generators and a subcircuit are identified, then shared-eigenbasis measurements provide the required expectation values.
  • Computational cost: Each optimization step requires 2d + L quantum evaluations, combining L metric evaluations with 2d parameter-shift gradient evaluations.The resulting linear system is solved classically to update the parameters.
  • Numerical setup: The experiments compare vanilla gradient descent, Adam, and Quantum Natural Gradient with block-diagonal and diagonal metric approximations.The circuits use n = 7, 9, 11 qubits, L = 5 layers, and 8192 samples per expectation value.
  • Optimization results: Quantum Natural Gradient finds the objective minimum in a small number of iterations for both block-diagonal and strictly diagonal approximations, whereas vanilla gradient descent fails.The comparison uses the same random initialization and target observable across the tested circuit sizes.

A Supplementary Material

The supplementary material reports that Quantum Natural Gradient retains its advantage as circuit depth increases in experiments with nine qubits and three to six layers.

  • Variable circuit depth: Quantum Natural Gradient retains its advantage as circuit depth increases from L = 3 to L = 6 layers for n = 9 qubits.The repeated numerical experiment varies the number of parametrized layers and reports the results in Fig. 2.
  • Variable circuit depth: The study evaluates parametrized quantum circuits with L = 3, 4, 5, 6 layers to investigate the effects of variable circuit depth.The experiment fixes the system size at n = 9 qubits.

4 Discussion

The discussion distinguishes Quantum Natural Gradient from Adam through its geometry-based, loss-independent preconditioning and identifies density-matrix geometry as an important direction for noisy devices.

  • Comparison with Adam: Quantum information-geometric preconditioning depends on the local geometry of quantum state space rather than the specific Hermitian-observable loss function.This contrasts with Adam's use of historical averaging.
  • Future work: A detailed ablation combining Quantum Natural Gradient with existing preconditioning methods is left for future work.The discussion identifies this comparison as an open direction.
  • Scope and noisy devices: The paper considers only pure quantum states, while noisy devices may require studying density-matrix geometry using candidates such as the Bures metric.The Bures metric reduces to the Fubini-Study metric for pure states and the Fisher information matrix for classical mixtures.

A.1 Real and imaginary parts of Quantum Geometric Tensor

The appendix derives the infinitesimal state-space distance from fidelity and identifies the metric tensor governing it as the real part of the Quantum Geometric Tensor.

  • Local expansion: A Taylor expansion of the wavefunction around θ + δθ is used to derive the local behavior of nearby parametrized quantum states.The expansion is taken in the displacement vector δθ around θ ∈ R^d.
  • Fidelity expansion: The fidelity between ψθ and ψθ+δθ is expanded to quadratic order in the displacement δθ.This quadratic expansion provides the connection between fidelity and infinitesimal distance.
  • Metric derivation: The resulting infinitesimal squared distance defines the local metric structure on the parametrized state manifold.The derivation verifies that the relevant terms are real.
  • Quantum Geometric Tensor: The metric tensor is given by the real part of the Quantum Geometric Tensor, while its imaginary part is treated separately.The real part corresponds to the Fubini-Study metric tensor in the paper's formulation.

A.2 Relationship with imaginary-time evolution

The variational Quantum Natural Gradient dynamics is connected to projected imaginary-time evolution in the continuous-time limit. This connection follows from optimizing the overlap between an imaginary-time-evolved state and a nearby variational state.

  • Projected imaginary-time evolution: Projected imaginary-time evolution optimizes the overlap between e−Hδτψθ and a nearby variational state ψθ+δθ.The construction uses the projector onto the one-dimensional subspace spanned by ψθ.
  • Local expansion: Quadratic expansion in δθ and δτ yields the first-order optimality condition governing the variational parameter displacement.The derivation neglects cubic-order terms in the multivariable Taylor expansion.
  • Continuous-time limit: In the limit δτ →0, the resulting parameter dynamics becomes a system of ordinary differential equations.The derivation uses the Hermiticity condition H = H†.

A.3 Relationship with curvature of objective

The paper relates the Quantum Natural Gradient metric to curvature information in classical statistical learning. The approximation error is controlled by both the loss deficit and likelihood curvature.

  • Fisher information: Differentiating normalization identities for a parametric probability family produces relations used to express the Fisher Information Matrix.The derivation differentiates Ex∼pθ first once and then twice.
  • Statistical objective: For an unknown distribution p, relative entropy and population negative-log-likelihood connect the statistical objective to the model distribution pθ.The population loss is the expected negative-log-likelihood of the model.
  • Curvature: The Hessian of the loss provides curvature information for analyzing the approximation.The paper states the Hessian explicitly before characterizing the approximation error.
  • Error control: The approximation error is controlled by the nonnegative loss deficit L(θ) −S(p) and the curvature of the likelihood function.Both the loss deficit and likelihood curvature enter the stated control of the error.

A.4 Relationship with classical Fisher information

For quantum states encoding a classical probability family in an orthonormal basis, the Berry connection vanishes and the QGT is determined by the corresponding probability parametrization.

  • Classical-to-quantum embedding: A parametric probability family pθ on a finite set defines quantum states using amplitudes associated with an orthonormal basis.The basis vectors are indexed by x ∈[N].
  • Derivative relation: Applying the chain rule relates derivatives of the embedded quantum states to derivatives of pθ.This derivative relation is the step preceding the geometric identification.
  • Geometric structure: The Berry connection vanishes for this family of states.The result follows from the structure of the probability-amplitude encoding.
  • Quantum Geometric Tensor: Using basis orthonormality, the Quantum Geometric Tensor is obtained for the embedded family.The orthonormality relation is ⟨x′|x⟩=δxx′.

A.5 Additional experiments and figures

Additional experiments compare Quantum Natural Gradient with gradient-based and gradient-free optimizers across iterations, wall time, and quantum evaluations. Quantum Natural Gradient remains competitive while diagonal metric approximations reduce classical overhead.

  • Experimental design: The experiments compare vanilla gradient descent, Adam, natural-gradient Adam, Quantum Natural Gradient, COBYLA, and Nelder-Mead across three progress measures.The measures are training iterations, total computational wall time, and number of quantum evaluations.
  • Gradient-based comparisons: Quantum Natural Gradient continues to outperform vanilla gradient descent and Adam optimization.This observation is reported for the additional experiments summarized in the section.
  • Metric approximations: The diagonal and block-diagonal QGT approximations provide comparable Quantum Natural Gradient results.The diagonal approximation substantially reduces overall wall time because it lowers classical processing overhead.
  • Gradient-free comparisons: Gradient-free methods failed to find the local minimum within the same number of iterations, although COBYLA and Nelder-Mead used fewer quantum evaluations.The comparison is therefore presented as more difficult across these resource measures.
  • Modified Adam: Natural-gradient Adam converged to the local minimum in fewer iterations than standard Adam.The reported benefit concerns the modified parameter-update step.
  • Figure comparisons: Figure 3 varies circuit depth at fixed shot count, while Figure 4 fixes depth and varies expectation-value sampling.Figure 3 uses n = 9 qubits and layers l = 3, 4, 5, 6; Figure 4 uses l = 6.
Loading 1909.02108v3…