Gradient¶
- class Gradient(grad_method='param_shift', **kwargs)[Quellcode]¶
Bases:
GradientBase
Deprecated: Convert an operator expression to the first-order gradient.
Veraltet ab Version 0.24.0: The class
qiskit.opflow.gradients.gradient.Gradient
is deprecated as of qiskit-terra 0.24.0. It will be removed no earlier than 3 months after the release date. For code migration guidelines, visit https://qisk.it/opflow_migration.Methods Defined Here
- param operator
The operator we are taking the gradient of.
Get the gradient for the given operator w.r.t.
Attributes
- grad_method¶
Returns
CircuitGradient
.- Rückgabe
CircuitGradient
.