braket.ir.ahs.atom_arrangement module

class braket.ir.ahs.atom_arrangement.AtomArrangement(*, sites: List[List[Decimal]], filling: List[int])[source]

Bases: BaseModel

Specifies the atom array

sites

List of 2-d coordinates where the tweezers trap atoms

Type:

List[List[decimal.Decimal]]

filling

Marks atoms that occupy the trap sites with 1, and empty sites with 0

Type:

List[int]

Examples

>>> AtomArrangement(sites=[
...         [0.0, 0.0],
...         [0.0, 3.0e-6],
...         [0.0, 6.0e-6],
...         [3.0e-6, 0.0],
...         [3.0e-6, 3.0e-6],
...         [3.0e-6, 6.0e-6]
...                 ],
...          filling=[1,1,1,1,0,0])

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

sites: List[List[Decimal]]
filling: List[int]