qiskit.opflow.gradients.Hessian.convert¶
-
Hessian.
convert
(operator, params=None)[source]¶ - Parameters
operator (
OperatorBase
) – The operator for which we compute the Hessianparams (
Union
[Tuple
[ParameterExpression
,ParameterExpression
],List
[Tuple
[ParameterExpression
,ParameterExpression
]],List
[ParameterExpression
],ParameterVector
,None
]) – The parameters we are computing the Hessian with respect to Either give directly the tuples/list of tuples for which the second order derivative is to be computed or give a list of parameters to build the full Hessian for those parameters. If not explicitly passed, the full Hessian is constructed. The parameters are then inferred from the operator and sorted by name.
- Returns
An operator whose evaluation yields the Hessian
- Return type