English
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

Gradient

class Gradient(grad_method='param_shift', **kwargs)[source]

Bases: GradientBase

Deprecated: Convert an operator expression to the first-order gradient.

Deprecated since 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

convert

param operator

The operator we are taking the gradient of.

get_gradient

Get the gradient for the given operator w.r.t.

Attributes

grad_method

Returns CircuitGradient.

Returns

CircuitGradient.