build_geometry¶
Construct a Geometry from a [geometry] config dict.
build_geometry
¶
Construct a Geometry from a [geometry] config dict.
Validates the lattice key, then delegates traversal selection and
validation to the lattice-specific build_traversal dispatcher, then
returns a fully-populated Geometry dataclass.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
geo_cfg
|
dict
|
Geometry sub-dict from the TOML |
required |
Returns:
| Type | Description |
|---|---|
Geometry
|
Fully-resolved geometry struct ready for passing to |
Raises:
| Type | Description |
|---|---|
ValueError
|
If |
Supported Values¶
lattice |
Builder |
|---|---|
"chain" |
intrcmap_1dchain |
"square" |
intrcmap_square |
"kagome" |
intrcmap_kagome |
See Also¶
- Geometry — the struct returned by this function.
- build_intrcmap — the next step; generates
list[Interaction2Site]from theGeometry. - Built-in interaction-map builders:
- intrcmap_1dchain — 1D chain.
- intrcmap_square — 2D square lattice.
- intrcmap_kagome — 2D Kagome lattice.
- Custom geometry example — how to replace this function entirely.