BaseAlgorithmStep
- class cubie.integrators.algorithms.base_algorithm_step.BaseAlgorithmStep(config: BaseStepConfig, _controller_defaults: StepControlDefaults)[source]
Bases:
CUDAFactoryBase class implementing cache and configuration handling for steps.
The class exposes properties and an
updatehelper shared by concrete explicit and implicit algorithms. Concrete subclasses implementbuildto compile device helpers and provide metadata about resource usage.- __init__(config: BaseStepConfig, _controller_defaults: StepControlDefaults) None[source]
Initialise the algorithm step with its configuration object and its default runtime settings for collaborators.
- Parameters:
config – Configuration describing the algorithm step.
_controller_defaults – Per-algorithm default step controller settings.
- Returns:
This constructor updates internal configuration state.
- Return type:
None
- property can_reuse_accepted_start: bool
Return
Truewhen the accepted state seeds the next proposal.Returns
Falsewhen the algorithm is not tableau-based.
- property controller_defaults: StepControlDefaults
Return per-algorithm default settings for controllers, solvers.
- property first_same_as_last: bool
Return
Truewhen the first and last stages align.Returns
Falsewhen the algorithm is not tableau-based.
- property get_solver_helper_fn: Callable | None
Return the helper factory used to build solver device functions.
- Returns:
Callable that yields device helpers for solver construction when available.
- Return type:
Callable or None
- property settings_dict: Dict[str, object]
Return the configuration dictionary for the algorithm step.
- update(updates_dict: Dict[str, object] | None = None, silent: bool = False, **kwargs: object) Set[str][source]
Apply configuration updates and invalidate caches when needed.
- Parameters:
updates_dict – Mapping of configuration keys to their new values.
silent – When
True, suppress warnings about inapplicable keys.**kwargs – Additional configuration updates supplied inline.
- Returns:
Set of configuration keys that were recognized and updated.
- Return type:
- Raises:
KeyError – Raised when an unknown key is provided while
silentis False.