Skip to main content
IBM Quantum Platform
Esta página pertence a uma versão antiga do site Qiskit SDK e não existe na versão mais recente. Recomendamos que você migre para a versão mais recente. Consulte as notas sobre a liberação para obter mais informações.

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

Tipo: float | None

Norm of the gradient on the last step.

learning_rate

Tipo: 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

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.

Esta página foi útil?
Relate um bug, erro de digitação ou solicite conteúdo no GitHub.