bloqade.analog.ir.location.bravais.Square
← Module overview
class
property
sourcemethod
method
classSquare¶source
bloqade.analog.ir.location.bravais.Square
Bases: BoundedBravais
Square lattice.
Signature
class Square(L1: int, L2: Optional[int] = None, *, lattice_spacing: 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 |
|---|---|---|---|
L1 | int | required | number of sites in linear direction. n_atoms = L1 * L1. |
L2 | Optional[int] | None | number of sites in direction a2. n_atoms = L1 * L2, default is L1 |
lattice_spacing | ScalarType | 1.0 | lattice spacing. Defaults to 1.0. |
Attributes
| Name | Type | Default | Description |
|---|---|---|---|
L1 | int | L1 | |
L2 | int | L2 | |
lattice_spacing | Scalar | cast(lattice_spacing) |
propertyshape¶source
bloqade.analog.ir.location.bravais.Square.shape
shape: Tuple[int, ...]methodcell_vectors¶source
bloqade.analog.ir.location.bravais.Square.cell_vectors
methodcell_atoms¶source
bloqade.analog.ir.location.bravais.Square.cell_atoms