qib.lattice.fully_connected_lattice.FullyConnectedLattice¶
- class qib.lattice.fully_connected_lattice.FullyConnectedLattice(shape: int | Sequence[int])[source]¶
Bases:
AbstractLatticeFully connected lattice of n elements. Can be used to represent orbitals in a molecule
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.