qiskit.optimization.problems.QuadraticObjective.evaluate_gradient¶
-
QuadraticObjective.
evaluate_gradient
(x)[source]¶ Evaluate the gradient of the quadratic objective for given variable values.
- 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 of the quadratic objective given the variable values.