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.

GradientDescentState

class qiskit.algorithms.optimizers.GradientDescentState(x, fun, jac, nfev, njev, nit, stepsize, learning_rate)

GitHub

Bases: OptimizerState

State of GradientDescent.

Dataclass with all the information of an optimizer plus the learning_rate and the stepsize.


Attributes

stepsize

Typ: float | None

Norm of the gradient on the last step.

learning_rate

Typ: LearningRate

Learning rate at the current step of the optimization process.

It behaves like a generator, (use next(learning_rate) to get the learning rate for the next step) but it can also return the current learning rate with learning_rate.current.

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.