paraqeet.optimizers.scipy_optimizer_gradient.ScipyOptimizerGradient#
- class paraqeet.optimizers.scipy_optimizer_gradient.ScipyOptimizerGradient(measure, optimization_map)#
Bases:
ScipyOptimizerThe Scipy Optimizer gradient model.
Minimize the outcome of a measurement with the Scipy optimization package.
- Parameters:
measure (NormalizableMeasurement)
optimization_map (OptimizationMap)
- __init__(measure, optimization_map)#
- Parameters:
measure (NormalizableMeasurement)
optimization_map (OptimizationMap)
- Return type:
None
Methods
__init__(measure, optimization_map)optimize(times)Optimize via the Scipy optimizer gradient model.
set_options(opts)Set the options for the system.
update_option(key, val)Updates one option for the system.
Attributes
Returns the callback function.
Returns the current logger that is being used by this optimizer, or None if no logger was set yet.
Returns the currently selected optimization method.
Return the optimization map that this optimizer uses.
- property callback: Callable | None#
Returns the callback function.
- property logger: Logger | None#
Returns the current logger that is being used by this optimizer, or None if no logger was set yet.
- property method: str#
Returns the currently selected optimization method.
- property optimization_map: OptimizationMap#
Return the optimization map that this optimizer uses.
Parameters that can be optimized need to be added to this map.
- Returns:
Returns the optimization map that this optimizer uses.
- Return type:
paraqeet.optimization_map
- optimize(times)#
Optimize via the Scipy optimizer gradient model.
Performs the actual optimization.
Note - If input `times` is a float, then the start time of propagation is implicitly assumed to be zero. For an array of times, the first time point is the start time.
- Returns:
The result of the optimization.
- Return type:
- Parameters:
times (Array | float)
- set_options(opts)#
Set the options for the system.
- Parameters:
opts (dict)
- update_option(key, val)#
Updates one option for the system.