qiskit.aqua.operators.gradients.Gradient.convert¶
-
Gradient.
convert
(operator, params=None)[source]¶ - Parameters
operator (
OperatorBase
) – The operator we are taking the gradient of.params (
Union
[ParameterVector
,ParameterExpression
,List
[ParameterExpression
],None
]) – params: The parameters we are taking the gradient with respect to.
- Return type
OperatorBase
- Returns
An operator whose evaluation yields the Gradient.
- Raises
ValueError – If
params
contains a parameter not present inoperator
.