qib.lattice.customized_lattice.CustomizedLattice¶
- class qib.lattice.customized_lattice.CustomizedLattice(shape: Sequence[int], adj=typing.Sequence[int])[source]¶
Bases:
AbstractLatticeLattice built from the adjacency matrix.
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.