qiskit.circuit.ParameterExpression.gradient¶
- ParameterExpression.gradient(param)[Quellcode]¶
Get the derivative of a parameter expression w.r.t. a specified parameter expression.
- Parameter
param (Parameter) – Parameter w.r.t. which we want to take the derivative
- Rückgabe
ParameterExpression representing the gradient of param_expr w.r.t. param or complex or float number
- Rückgabetyp
Union[ParameterExpression, complex]