optimizer#
Quantum natural gradient descent#
Base class of quantum natural gradient descent. |
|
Stochastic quantum natural gradient descent. |
|
Exact quantum natural gradient descent, performed by a full summation in the whole Hilbert space. |
|
Stochastic reconfiguration (SR). |
|
AdamSR optimizer. |
|
Exact reconfiguration, performed by a full summation in the whole Hilbert space. |
|
Time evolution optimizer, equivalent to real-time |
Supervised learning#
Supervised optimization of the wave function towards a target state by stochastic reconfiguration on the overlap gradient. |
|
Supervised optimization towards a target state with the Adam-like update of |
|
Supervised optimization towards a target state by a full summation in the whole Hilbert space. |
Gradient sources#
Energy gradient source defining \(\bar \epsilon\) from the local energies of a Hamiltonian, used for ground-state search and time evolution. |
|
Overlap gradient source defining \(\bar \epsilon\) from the amplitude ratios with a target state, used for supervised wave function optimization. |
Update strategies#
Base class of update strategies for |
|
The plain update \(\dot\theta = \mathrm{solve}(\bar O, \bar\epsilon)\). |
|
The SPRING update, a variant of SR with momentum stored in the |
|
The MARCH update, a variant of SR with first and second order momentum stored in the |
|
The AdamSR update, a variant of SR with first and second order momentum (like Adam) stored in the |
Solvers#
Iterative solvers#
Obtain the least-square solver for the linear equation \(Ax=b\) using diagonal shift, corresponding to SR. |
|
Obtain the minimum-norm solver for the linear equation \(Ax=b\) using diagonal shift, corresponding to MinSR. |
|
Obtain the least-square solver for the linear equation \(Ax=b\) solved by the LSMR method lineax.LSMR. |
Non-iterative solvers#
The MinSR branch of |
|
The SR branch of |
|
Obtain the least-square minimum-norm solver for the linear equation \(Ax=b\) using diagonal shift. |
|
Solver for a Hermitian linear equation \(H x = b\) via the pseudo-inverse of \(H\) obtained from its eigendecomposition. |
|
The MinSR branch of |
|
The SR branch of |
|
Obtain the least-square minimum-norm solver for the linear equation \(Ax=b\) using pseudo-inverse. |
|
Obtain the layerwise least-square minimum-norm solver for the linear equation \(Ax=b\) using pseudo-inverse. |
|
The plain stochastic gradient descent solver, returning \(x = A^†b / N_s\) without any preconditioning. |