Skip to main content
IBM Quantum Platform
Esta página pertenece a una versión antigua de Qiskit SDK y no existe en la versión más reciente. Te recomendamos que actualices a la última versión. Consulta las notas de la versión para obtener más información.

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

Tipo: POINT

Current optimization parameters.

fun

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

Function being optimized.

jac

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

Jacobian of the function being optimized.

nfev

Tipo: int | None

Number of function evaluations so far in the optimization.

njev

Tipo: int | None

Number of jacobian evaluations so far in the opimization.

nit

Tipo: int | None

Number of optimization steps performed so far in the optimization.

¿Le ha resultado útil esta página?
Informe de un error, de una errata o solicite contenido en GitHub.