braket.ahs.hamiltonian module
- class braket.ahs.hamiltonian.Hamiltonian(terms: list[Hamiltonian] | None = None)[source]
Bases:
object
A Hamiltonian representing a system to be simulated.
A Hamiltonian \(H\) may be expressed as a sum of multiple terms
\[H = \sum_i H_i\]- property terms: list[Hamiltonian]
The list of terms in this Hamiltonian.
- Type:
list[Hamiltonian]
- discretize(properties: DiscretizationProperties) Hamiltonian [source]
Creates a discretized version of the Hamiltonian.
- Parameters:
properties (DiscretizationProperties) – Capabilities of a device that represent the resolution with which the device can implement the parameters.
- Returns:
Hamiltonian – A new discretized Hamiltonian.