qib.lattice.layered_lattice.LayeredLattice¶
- class qib.lattice.layered_lattice.LayeredLattice(base_lattice: AbstractLattice, nlayers: int)[source]¶
Bases:
AbstractLatticeLayered lattice, consisting of connected layers of the same base lattice.
Methods
Construct the adjacency matrix, indicating nearest neighbors.
Map lattice coordinate to linear index.
Map linear index to lattice coordinate.
Attributes
Number of spatial dimensions.
Number of lattice sites.