AskData

class qiskit.algorithms.optimizers.AskData(x_fun=None, x_jac=None)[source]

Bases: ABC

Base class for return type of ask().

Parameters:
  • x_fun (POINT | list[POINT] | None) – Point or list of points where the function needs to be evaluated to compute the next

  • optimizer. (the next state of the) –

  • x_jac (POINT | list[POINT] | None) – Point or list of points where the gradient/jacobian needs to be evaluated to compute

  • optimizer.

Attributes

x_fun: POINT | list[POINT] | None = None
x_jac: POINT | list[POINT] | None = None