braket.analog_hamiltonian_simulator.rydberg.scipy_solver module
- braket.analog_hamiltonian_simulator.rydberg.scipy_solver.scipy_integrate_ode_run(program: Program, configurations: list[str], simulation_times: list[float], rydberg_interaction_coef: float, progress_bar: bool = False, atol: float = 1e-08, rtol: float = 1e-06, solver_method: str = 'adams', order: int = 12, nsteps: int = 1000, first_step: int = 0, max_step: int = 0, min_step: int = 0) ndarray [source]
Solves the Schrödinger equation with
scipy.integrate.ode
- Parameters:
program (Program) – An analog simulation Hamiltonian for the Rydberg system simulated
configurations (list[str]) – The list of configurations that comply with the blockade approximation.
simulation_times (list[float]) – The list of time points
rydberg_interaction_coef (float) – The interaction coefficient
progress_bar (bool) – If true, a progress bar will be printed during the simulation. Default: False
atol (float) – Absolute tolerance for solution. Default: 1e-8
rtol (float) – Relative tolerance for solution. Default: 1e-6
solver_method (str) – Which solver to use,
adams
for non-stiff problems orbdf
for stiff problems. Default: “adams”order (int) – Maximum order used by the integrator, order <= 12 for Adams, <= 5 for BDF. Default: 12
nsteps (int) – Maximum number of (internally defined) steps allowed during one call to the solver. Default: 1000
first_step (int) – Default: 0
max_step (int) – Limits for the step sizes used by the integrator. Default: 0
min_step (int) – Default: 0
- Returns:
ndarray – The list of all the intermediate states in the simulation.
- For more information, please refer to the documentation for
scipy.integrate.ode
https://docs.scipy.org/doc/scipy/reference/generated/scipy.integrate.ode.html