quantax.optimizer.PlainUpdater#

class quantax.optimizer.PlainUpdater#

Bases: Updater

The plain update \(\dot\theta = \mathrm{solve}(\bar O, \bar\epsilon)\). The solution is kept in the x0 buffer and passed to the solver as the initial guess of the next iteration, used by iterative solvers like lstsq_shift_cg.

__init__()#
init(nparams: int) dict[str, Array]#

Initialize the persistent buffers for nparams parameters.

update(core_solve, Obar, Ebar, buffers)#

Generate the optimization step and the new buffers, given the equation solver core_solve and the current buffers.