Skip to main content
IBM Quantum Platform
Diese Seite stammt aus einer alten Version von Qiskit SDK und ist in der aktuellen Version nicht mehr vorhanden. Wir empfehlen Ihnen, auf die neueste Version umzusteigen. Weitere Informationen finden Sie in den Versionshinweisen.

OptimizerState

class qiskit.algorithms.optimizers.OptimizerState(x, fun, jac, nfev, njev, nit)

GitHub

Bases: object

Base class representing the state of the optimizer.

This class stores the current state of the optimizer, given by the current point and (optionally) information like the function value, the gradient or the number of function evaluations. This dataclass can also store any other individual variables that change during the optimization.


Attributes

x

Typ: POINT

Current optimization parameters.

fun

Typ: Callable[[POINT], float] | None

Function being optimized.

jac

Typ: Callable[[POINT], POINT] | None

Jacobian of the function being optimized.

nfev

Typ: int | None

Number of function evaluations so far in the optimization.

njev

Typ: int | None

Number of jacobian evaluations so far in the opimization.

nit

Typ: int | None

Number of optimization steps performed so far in the optimization.

War diese Seite hilfreich?
Melden Sie auf GitHub einen Fehler, einen Tippfehler oder fordern Sie Inhalte an.