Hamiltonian

class braket.ahs.hamiltonian.Hamiltonian(terms=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\]
Parameters:

terms (list[Hamiltonian] | None)

property terms: list[Hamiltonian]

The list of terms in this Hamiltonian.

Type:

list[Hamiltonian]

discretize(properties)[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.

Return type:

Hamiltonian

Returns:

Hamiltonian – A new discretized Hamiltonian.