qiskit.opflow.gradients.CircuitGradient.convert¶
- abstract CircuitGradient.convert(operator, params=None)[source]¶
- প্যারামিটার
operator (
OperatorBase
) -- The operator we are taking the gradient ofparams (
Union
[ParameterExpression
,ParameterVector
,List
[ParameterExpression
],Tuple
[ParameterExpression
,ParameterExpression
],List
[Tuple
[ParameterExpression
,ParameterExpression
]],None
]) -- The parameters we are taking the gradient wrt: ω If a ParameterExpression, ParameterVector or List[ParameterExpression] is given, then the 1st order derivative of the operator is calculated. If a Tuple[ParameterExpression, ParameterExpression] or List[Tuple[ParameterExpression, ParameterExpression]] is given, then the 2nd order derivative of the operator is calculated.
- রিটার্ন টাইপ
- রিটার্নস
An operator whose evaluation yields the Gradient.
- রেইজেস
ValueError -- If
params
contains a parameter not present inoperator
.