Geometry¶
Fully-resolved lattice geometry struct for one MPS simulation.
Geometry
dataclass
¶
Fully-resolved lattice geometry for one MPS simulation.
Constructed by build_geometry from a raw [geometry] config dict.
Passed to intrcmap_* builders and to traversal-aware utilities such
as to_1d / to_2d.
Attributes:
| Name | Type | Description |
|---|---|---|
cfg |
dict
|
Original geometry config dict ( |
ord_map |
dict[tuple[int, ...], int]
|
Dict mapping coordinate tuples to 1D site indices (0-based).
Key length depends on the lattice: |
latt |
list[tuple[int, ...]]
|
List where |
Attributes¶
L
property
¶
Total number of MPS/MPO sites (length of the tensor network).
Equals len(latt), which is the authoritative site count for all
lattice types. For single-sublattice lattices (chain, square) this
coincides with lx * ly. For multi-sublattice lattices (e.g.
Kagome with 3 sites per unit cell) it equals lx * ly * n_sub.
Functions¶
See Also¶
- build_geometry — constructs a
Geometryfrom a config dict. - build_intrcmap — generates the interaction list from a
Geometry.