qiskit.algorithms.optimizers.SNOBFIT.minimize¶
- SNOBFIT.minimize(fun, x0, jac=None, bounds=None)[source]¶
Minimize the scalar function.
- Parameters
fun (
Callable
[[Union
[float
,ndarray
]],float
]) – The scalar function to minimize.x0 (
Union
[float
,ndarray
]) – The initial point for the minimization.jac (
Optional
[Callable
[[Union
[float
,ndarray
]],Union
[float
,ndarray
]]]) – The gradient of the scalar functionfun
.bounds (
Optional
[List
[Tuple
[float
,float
]]]) – Bounds for the variables offun
. This argument might be ignored if the optimizer does not support bounds.
- Return type
- Returns
The result of the optimization, containing e.g. the result as attribute
x
.