German
Sprachen
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.algorithms.optimizers.SPSA.minimize

SPSA.minimize(fun, x0, jac=None, bounds=None)[Quellcode]

Minimize the scalar function.

Parameter
  • fun (Callable[[POINT], float]) – The scalar function to minimize.

  • x0 (POINT) – The initial point for the minimization.

  • jac (Callable[[POINT], POINT] | None) – The gradient of the scalar function fun.

  • bounds (list[tuple[float, float]] | None) – Bounds for the variables of fun. This argument might be ignored if the optimizer does not support bounds.

Rückgabe

The result of the optimization, containing e.g. the result as attribute x.

Rückgabetyp

OptimizerResult