paraqeet.propagation.scipy_expm.ScipyExpm#
- class paraqeet.propagation.scipy_expm.ScipyExpm(model, resolution)#
Bases:
PropagationPiecewise matrix exponential propagation system.
Solve the equation of motion by piecewise exponentiation with the Scipy package.
- Parameters:
model (Model) – Represents the equation of motion for a given Hamiltonian.
res (float) – Resolution at which to sample the EOM.
resolution (float)
- __init__(model, resolution)#
- Parameters:
model (EquationOfMotion)
resolution (float)
Methods
__init__(model, resolution)Per default, propagation methods have no parameters to optimize.
propagate(time)Return the solution of the equations of motion.
set_initial_state(state)Set initial state.
Attributes
Return if the propagation is for open or closed system.
Return the propagation resolution.
- get_parameters()#
Per default, propagation methods have no parameters to optimize.
- property is_open: bool#
Return if the propagation is for open or closed system.
- propagate(time)#
Return the solution of the equations of motion.
Loop over all desired times in time at set resolution.
- Parameters:
time (Array) – Any one-dimensional vector of timestamps.
- Returns:
Returns the solution of the equations of motion.
- Return type:
Array
- Raises:
ConfigurationException – If the initial state is not set.
- property resolution: float#
Return the propagation resolution.
- set_initial_state(state)#
Set initial state.