qib.lattice.integer_lattice.IntegerLattice¶
- class qib.lattice.integer_lattice.IntegerLattice(shape: Sequence[int], pbc=False)[source]¶
Bases:
AbstractLatticen-dimensional integer lattice.
Methods
Construct the adjacency matrix, indicating nearest neighbors.
Construct the adjacency matrix along axis d and shift s.
Map lattice coordinate to linear index.
Map linear index to lattice coordinate.
Attributes
Number of spatial dimensions.
Number of lattice sites.