bloqade.analog.ir.location.bravais.BoundedBravais
classBoundedBravais¶source
bloqade.analog.ir.location.bravais.BoundedBravais
Bases: AtomArrangement
class BoundedBravaismethodcell_vectors¶source
bloqade.analog.ir.location.bravais.BoundedBravais.cell_vectors
methodcell_atoms¶source
bloqade.analog.ir.location.bravais.BoundedBravais.cell_atoms
propertyshape¶source
bloqade.analog.ir.location.bravais.BoundedBravais.shape
shape: Tuple[int, ...]propertyn_atoms¶source
bloqade.analog.ir.location.bravais.BoundedBravais.n_atoms
n_atoms: intpropertyn_sites¶source
bloqade.analog.ir.location.bravais.BoundedBravais.n_sites
n_sites: intpropertyn_vacant¶source
bloqade.analog.ir.location.bravais.BoundedBravais.n_vacant
n_vacant: intpropertyn_dims¶source
bloqade.analog.ir.location.bravais.BoundedBravais.n_dims
methodcoordinates¶source
bloqade.analog.ir.location.bravais.BoundedBravais.coordinates
def coordinates(index: List[int]) -> NDArraycalculate the coordinates of a cell in the lattice given the cell index.
Parameters
| Name | Type | Description |
|---|---|---|
index | List[int] |
Returns
NDArray
methodenumerate¶source
bloqade.analog.ir.location.bravais.BoundedBravais.enumerate
def enumerate() -> Generator[LocationInfo, None, None]Returns
Generator[LocationInfo, None, None]
methodscale¶source
bloqade.analog.ir.location.bravais.BoundedBravais.scale
def scale(factor: ScalarType) -> BoundedBravaisScale the current location with a factor.
(x,y) -> factor*(x,y)
Parameters
| Name | Type | Description |
|---|---|---|
factor | ScalarType | scale factor |
Returns
BoundedBravaisBoundedBravais: The lattice with the scaled locations