braket.ahs.analog_hamiltonian_simulation module

class braket.ahs.analog_hamiltonian_simulation.AnalogHamiltonianSimulation(register: AtomArrangement, hamiltonian: Hamiltonian)[source]

Bases: object

Creates an AnalogHamiltonianSimulation with a given setup, and terms.

Parameters:
  • register (AtomArrangement) – The initial atom arrangement for the simulation.

  • hamiltonian (Hamiltonian) – The hamiltonian to simulate.

LOCAL_DETUNING_PROPERTY = 'local_detuning'
DRIVING_FIELDS_PROPERTY = 'driving_fields'
property register: AtomArrangement

The initial atom arrangement for the simulation.

Type:

AtomArrangement

property hamiltonian: Hamiltonian

The hamiltonian to simulate.

Type:

Hamiltonian

to_ir() Program[source]

Converts the Analog Hamiltonian Simulation into the canonical intermediate representation.

Returns:

ir.Program – A representation of the circuit in the IR format.

discretize(device: AwsDevice) AnalogHamiltonianSimulation[source]

Creates a new AnalogHamiltonianSimulation with all numerical values represented as Decimal objects with fixed precision based on the capabilities of the device.

Parameters:

device (AwsDevice) – The device for which to discretize the program.

Returns:

AnalogHamiltonianSimulation – A discretized version of this program.

Raises:

DiscretizationError – If unable to discretize the program.