qiskit.algorithms.optimizers.SteppableOptimizer.minimize¶
- SteppableOptimizer.minimize(fun, x0, jac=None, bounds=None)[Quellcode]¶
Minimizes the function.
For well behaved functions the user can call this method to minimize a function. If the user wants more control on how to evaluate the function a custom loop can be created using
ask()
andtell()
and evaluating the function manually.- Parameter
fun (Callable[[POINT], float]) – Function to minimize.
x0 (POINT) – Initial point.
jac (Callable[[POINT], POINT] | None) – Function to compute the gradient.
bounds (list[tuple[float, float]] | None) – Bounds of the search space.
- Rückgabe
Object containing the result of the optimization.
- Rückgabetyp