French
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.algorithms.optimizers.QNSPSA.optimize

QNSPSA.optimize(num_vars, objective_function, gradient_function=None, variable_bounds=None, initial_point=None)

Perform optimization.

Paramètres
  • num_vars (int) – Number of parameters to be optimized.

  • objective_function (callable) – A function that computes the objective function.

  • gradient_function (callable) – Not supported for SPSA.

  • variable_bounds (list[(float, float)]) – Not supported for SPSA.

  • initial_point (numpy.ndarray[float]) – Initial point.

Renvoie

point, value, nfev

point: is a 1D numpy.ndarray[float] containing the solution value: is a float with the objective function value nfev: number of objective function calls made if available or None

Type renvoyé

tuple