Skip to content

bloqade.analog.ir.location.bravais.BoundedBravais

← Module overview

classBoundedBravaissource

bloqade.analog.ir.location.bravais.BoundedBravais

Bases: AtomArrangement

class BoundedBravais

methodcell_vectorssource

bloqade.analog.ir.location.bravais.BoundedBravais.cell_vectors

def cell_vectors() -> Tuple[Tuple[Scalar, ...], ...]

Returns

Tuple[Tuple[Scalar, ...], ...]

source

methodcell_atomssource

bloqade.analog.ir.location.bravais.BoundedBravais.cell_atoms

def cell_atoms() -> Tuple[Tuple[Scalar, ...], ...]

Returns

Tuple[Tuple[Scalar, ...], ...]

source

propertyshapesource

bloqade.analog.ir.location.bravais.BoundedBravais.shape

shape: Tuple[int, ...]
source

propertyn_atomssource

bloqade.analog.ir.location.bravais.BoundedBravais.n_atoms

n_atoms: int
source

propertyn_sitessource

bloqade.analog.ir.location.bravais.BoundedBravais.n_sites

n_sites: int
source

propertyn_vacantsource

bloqade.analog.ir.location.bravais.BoundedBravais.n_vacant

n_vacant: int
source

propertyn_dimssource

bloqade.analog.ir.location.bravais.BoundedBravais.n_dims

n_dims

dimension of the lattice

Returns

int: dimension of the lattice

source

methodcoordinatessource

bloqade.analog.ir.location.bravais.BoundedBravais.coordinates

def coordinates(index: List[int]) -> NDArray

calculate the coordinates of a cell in the lattice given the cell index.

Parameters

NameTypeDescription
indexList[int]

Returns

NDArray

source

methodenumeratesource

bloqade.analog.ir.location.bravais.BoundedBravais.enumerate

def enumerate() -> Generator[LocationInfo, None, None]

Returns

Generator[LocationInfo, None, None]

source

methodscalesource

bloqade.analog.ir.location.bravais.BoundedBravais.scale

def scale(factor: ScalarType) -> BoundedBravais

Scale the current location with a factor.

(x,y) -> factor*(x,y)

Parameters

NameTypeDescription
factorScalarTypescale factor

Returns

BoundedBravaisBoundedBravais: The lattice with the scaled locations

source