57 lines
2.0 KiB
Plaintext
57 lines
2.0 KiB
Plaintext
---
|
|
title: OptimizerState
|
|
description: API reference for qiskit.algorithms.optimizers.OptimizerState
|
|
in_page_toc_min_heading_level: 1
|
|
python_api_type: class
|
|
python_api_name: qiskit.algorithms.optimizers.OptimizerState
|
|
---
|
|
|
|
# OptimizerState
|
|
|
|
<Class id="qiskit.algorithms.optimizers.OptimizerState" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.46/qiskit/algorithms/optimizers/steppable_optimizer.py" signature="qiskit.algorithms.optimizers.OptimizerState(x, fun, jac, nfev, njev, nit)" modifiers="class">
|
|
Bases: [`object`](https://docs.python.org/3/library/functions.html#object "(in Python v3.12)")
|
|
|
|
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
|
|
|
|
<Attribute id="qiskit.algorithms.optimizers.OptimizerState.x" attributeTypeHint="POINT">
|
|
Current optimization parameters.
|
|
</Attribute>
|
|
|
|
### fun
|
|
|
|
<Attribute id="qiskit.algorithms.optimizers.OptimizerState.fun" attributeTypeHint="Callable[[POINT], float] | None">
|
|
Function being optimized.
|
|
</Attribute>
|
|
|
|
### jac
|
|
|
|
<Attribute id="qiskit.algorithms.optimizers.OptimizerState.jac" attributeTypeHint="Callable[[POINT], POINT] | None">
|
|
Jacobian of the function being optimized.
|
|
</Attribute>
|
|
|
|
### nfev
|
|
|
|
<Attribute id="qiskit.algorithms.optimizers.OptimizerState.nfev" attributeTypeHint="int | None">
|
|
Number of function evaluations so far in the optimization.
|
|
</Attribute>
|
|
|
|
### njev
|
|
|
|
<Attribute id="qiskit.algorithms.optimizers.OptimizerState.njev" attributeTypeHint="int | None">
|
|
Number of jacobian evaluations so far in the opimization.
|
|
</Attribute>
|
|
|
|
### nit
|
|
|
|
<Attribute id="qiskit.algorithms.optimizers.OptimizerState.nit" attributeTypeHint="int | None">
|
|
Number of optimization steps performed so far in the optimization.
|
|
</Attribute>
|
|
</Class>
|
|
|