braket.analog_hamiltonian_simulator.rydberg.rydberg_simulator module
- class braket.analog_hamiltonian_simulator.rydberg.rydberg_simulator.RydbergAtomSimulator[source]
Bases:
BaseLocalSimulator
- DEVICE_ID = 'braket_ahs'
- run(program: Program, shots: int = 100, steps: int = 1000, rydberg_interaction_coef: float = 5.42e-24, blockade_radius: float = 0.0, 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, *args, **kwargs) AnalogHamiltonianSimulationTaskResult [source]
Run the simulation for the dynamics of the Rydberg system, and return the result
- Parameters:
program (Program) – An analog simulation Hamiltonian for the Rydberg system simulated
shots (int) – The number of shots. Default: 100
steps (int) – The number of time points for the simulation. Default: 1000
rydberg_interaction_coef (float) – The interaction coefficient. Default: 5.42e-24
blockade_radius (float) – The blockade radius for the Rydberg system. Default: 0.0
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:
AnalogHamiltonianSimulationTaskResult – The result of the simulation
- property properties: DeviceCapabilities
Device properties for the RydbergAtomSimulator.
- Returns:
DeviceCapabilities – Device capabilities for this simulator.
- initialize_simulation(**kwargs) Simulation [source]
Initialize Rydberg Hamiltonian simulation.
- Returns:
Simulation – Initialized simulation.