openfermioncirq.optimization.OptimizationAlgorithm¶
-
class
openfermioncirq.optimization.
OptimizationAlgorithm
(options: Optional[Any] = None)[source]¶ An optimization algorithm for black-box objective functions.
We use the convention that the optimization algorithm should try to minimize (rather than maximize) the value of the objective function.
In order to work with some routines that save optimization results, instances of this class must be picklable. See https://docs.python.org/3/library/pickle.html for details.
-
options
¶ Options for the algorithm.
-
__init__
(options: Optional[Any] = None) → None[source]¶ Parameters: options – Options for the algorithm.
Methods
__init__
(options)param options: Options for the algorithm. default_options
()Default options for the algorithm. optimize
(black_box, initial_guess, …)Perform the optimization and return the result. Attributes
name
A name for the optimization algorithm. -