mimiqcircuits.backends.optimize

Variational optimization of a parametric circuit on a local backend.

Functions

as_experiments(experiment, initparams, kwargs)

Normalize the arguments of Backend.optimize into a list of experiments and whether a single one was given.

optimize(backend, experiment[, initparams, ...])

Implementation of LocalBackend.optimize().

mimiqcircuits.backends.optimize.as_experiments(experiment, initparams, kwargs)[source]

Normalize the arguments of Backend.optimize into a list of experiments and whether a single one was given.

The experiment fields (optimizer, label, maxiters, zregister) are popped from kwargs when a circuit is given, so what is left is meant for execution.

mimiqcircuits.backends.optimize.optimize(backend, experiment, initparams=None, *, return_history=False, **kwargs)[source]

Implementation of LocalBackend.optimize().