Skip to main content
IBM Quantum Platform
このページは Qiskit SDK の旧バージョンからのものであり、最新バージョンには存在しません。 最新バージョンへの移行をお勧めします。 詳細については、リリースノートをご覧ください。

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

タイプ: POINT

Current optimization parameters.

fun

タイプ: Callable[[POINT], float] | None

Function being optimized.

jac

タイプ: Callable[[POINT], POINT] | None

Jacobian of the function being optimized.

nfev

タイプ: int | None

Number of function evaluations so far in the optimization.

njev

タイプ: int | None

Number of jacobian evaluations so far in the opimization.

nit

タイプ: int | None

Number of optimization steps performed so far in the optimization.

このページは役に立ちましたか?
バグや誤字の報告、またはコンテンツの要求はGitHubで行ってください。