bloqade.analog.ir.location.bravais.Rectangular
← Module overview
class
property
sourceproperty
sourcemethod
method
classRectangular¶source
bloqade.analog.ir.location.bravais.Rectangular
Bases: BoundedBravais
Rectangular lattice.
Signature
class Rectangular(width: int, height: int, *, lattice_spacing_x: ScalarType = 1.0, lattice_spacing_y: ScalarType = 1.0)-
2D lattice
-
primitive (cell) vector(s)
- a1 = (1,0)
- a2 = (0,1)
-
unit cell (1 atom(s))
- loc (0,0)
-
Possible Next: continue with
.to see possible next step in auto-prompt supported setting (IPython, IDE …)
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
width | int | required | number of sites in x direction. |
height | int | required | number of sites in y direction. |
lattice_spacing_x | ScalarType | 1.0 | lattice spacing. Defaults to 1.0. |
lattice_spacing_y | ScalarType | 1.0 | lattice spacing in y direction. optional. |
Attributes
| Name | Type | Default | Description |
|---|---|---|---|
width | int | width | |
height | int | height | |
lattice_spacing_x | Scalar | cast(lattice_spacing_x) | |
lattice_spacing_y | Scalar | cast(lattice_spacing_y) if lattice_spacing_y is not None else self.lattice_spacing_x |
propertylattice_spacing¶source
bloqade.analog.ir.location.bravais.Rectangular.lattice_spacing
lattice_spacing: Scalarpropertyshape¶source
bloqade.analog.ir.location.bravais.Rectangular.shape
shape: Tuple[int, ...]methodcell_vectors¶source
bloqade.analog.ir.location.bravais.Rectangular.cell_vectors
methodcell_atoms¶source
bloqade.analog.ir.location.bravais.Rectangular.cell_atoms