Skip to main contentIBM Quantum Documentation
You are viewing the API reference for an old version of Qiskit SDK. Switch to latest version

Hessian

qiskit.opflow.gradients.Hessian(hess_method='param_shift', **kwargs) GitHub(opens in a new tab)

Bases: HessianBase

Deprecated: Compute the Hessian of an expected value.

Deprecated since version 0.24.0

The class qiskit.opflow.gradients.hessian.Hessian is deprecated as of qiskit-terra 0.24.0. It will be removed in the Qiskit 1.0 release. For code migration guidelines, visit https://qisk.it/opflow_migration(opens in a new tab).


Attributes

hess_method

Returns CircuitGradient.

Returns

CircuitGradient.


Methods

convert

convert(operator, params=None)

Parameters

Returns

An operator whose evaluation yields the Hessian

Return type

OperatorBase

get_hessian

get_hessian(operator, params=None)

Get the Hessian for the given operator w.r.t. the given parameters

Parameters

Returns

Operator which represents the gradient w.r.t. the given params.

Raises

Return type

OperatorBase

Was this page helpful?
Report a bug or request content on GitHub.