qib.lattice.abstract_lattice.AbstractLattice¶
- class qib.lattice.abstract_lattice.AbstractLattice[source]¶
Bases:
ABCParent class for lattices.
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.