qib.lattice.hexagonal_lattice.HexagonalLattice¶
- class qib.lattice.hexagonal_lattice.HexagonalLattice(shape: Sequence[int], pbc=False, convention: ShiftedLatticeConvention = ShiftedLatticeConvention.COLS_SHIFTED_UP)[source]¶
Bases:
AbstractLatticeHexagonal lattice. The lattice has n full hexagons per row and m full hexagons per column.
Methods
Construct the adjacency matrix, indicating nearest neighbors.
Map lattice coordinates to single index.
Returns the equivalent brick lattice (delete=True).
Map linear index to the hexagonal lattice coordinates.
Attributes
Number of spatial dimensions.
Number of lattice sites.
- adjacency_matrix()[source]¶
Construct the adjacency matrix, indicating nearest neighbors. Adj matrix built from the equivalent brick lattice (delete=True).