qiskit.opflow.gradients.DerivativeBase.convert¶
- abstract DerivativeBase.convert(operator, params=None)[ソース]¶
- パラメータ
operator (
OperatorBase
) – The operator we are taking the gradient, Hessian or QFI ofparams (
Union
[ParameterVector
,ParameterExpression
,List
[ParameterExpression
],None
]) – The parameters we are taking the gradient, Hessian or QFI with respect to.
- 戻り値の型
- 戻り値
An operator whose evaluation yields the gradient, Hessian or QFI.
- 例外
ValueError – If
params
contains a parameter not present inoperator
.