Korean
언어
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.algorithms.optimizers.QNSPSA.minimize

QNSPSA.minimize(fun, x0, jac=None, bounds=None)

Minimize the scalar function.

매개변수
  • 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 function fun.

  • bounds (Optional[List[Tuple[float, float]]]) – Bounds for the variables of fun. This argument might be ignored if the optimizer does not support bounds.

반환 형식

OptimizerResult

반환

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