quantax.optimizer.Adam#
- class quantax.optimizer.Adam#
Bases:
UpdaterThe AdamSR update, a variant of SR with first and second order momentum (like Adam) stored in the
m,vandtbuffers. The time cost is roughly twice of the plain update. The second order momentum enters as adiag_preconditionerargument: it is passed through to solvers that accept it (e.g.lsmr) and emulated by right preconditioning for those that donβt.- __init__(mu: float = 0.95, beta: float = 0.995, norm_clip: float | None = None)#
- Parameters:
mu β The first order momentum factor.
beta β The second order momentum factor.
norm_clip β The maximum norm of the step to be accumulated. If not None, the raw step will be clipped to this value.
- update(core_solve, Obar, Ebar, buffers)#
Generate the optimization step and the new buffers, given the equation solver
core_solveand the currentbuffers.