qiskit.optimization.problems.QuadraticExpression.evaluate_gradient¶
-
QuadraticExpression.
evaluate_gradient
(x)[source]¶ Evaluate the gradient of the quadratic expression for given variables.
- Parameters
x (
Union
[ndarray
,List
,Dict
[Union
[int
,str
],float
]]) – The values of the variables to be evaluated.- Return type
ndarray
- Returns
The value of the gradient quadratic expression given the variable values.