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]