SolverResult
- class SolverResult(ts, ys, *, time_axis, shot_axis=None, unp_inner)
Container for solver outputs that preserves array backend compatibility.
The object stores both the evaluation grid and simulated states or operators while exposing helpers to concatenate segments and stack per-shot batches without breaking the underlying NumPy or JAX array type.
- Parameters:
Methods
concat_segments(segment_results)Concatenate sequential segment solutions while avoiding duplicate time stamps.
Return the solution array with the first time step removed.
Return the final value along the designated time axis.
Return terminal states for each shot as a list.
stack_shots(shot_results)Stack multiple solver runs along a unified shot axis.
Attributes
Index of the shot axis in
ys, orNoneif there is no shot axis.Index of the time axis in
ys.Timestamps of the stored trajectory (in \(\mu\text{s}\)).
Array namespace backing the stored arrays, either
numpyorjax.numpy.Stored trajectory of states or propagators, with time and shot axes.