Quantum natural gradient descent optimizer¶
Quantum natural gradient descent is a quantum optimization method that leverages the geometry of the parameter space and the quantum Fisher information matrix to improve convergence speed. In QNGD, the cost function and the gradient are transformed in a way that preserves the geometry of the parameter space. The update rule for QNGD is given by:
where \(\alpha\) is an adaptive step size, \(\vec{\vec{\mathcal{F}}}(f(\vec\gamma^{(k)}))\) is the Fubini-Study metric tensor, and \(\lambda\) is a small hyperparameter to avoid singularity of the inverse of the metric tensor.
OpenQAOA example¶
In the example code below, the QAOA is configured to use the Quantum Natural Gradient Descent optimizer with a step size of 0.1 and the finite difference method for approximating the Jacobian. When using this optimizer, the Fubini-Study metric tensor is automatically computed by OpenQAOA.