abstract DerivativeBase.convert(operator, params=None)[source]
Parameters
• operator (OperatorBase) – The operator we are taking the gradient, Hessian or QFI of

• params (Union[ParameterVector, ParameterExpression, List[ParameterExpression], None]) – The parameters we are taking the gradient, Hessian or QFI with respect to.

Return type

OperatorBase

Returns

An operator whose evaluation yields the gradient, Hessian or QFI.

Raises

ValueError – If params contains a parameter not present in operator.