Skip to content

intrcmap_1dchain

Generate an interaction map for a 1D chain.

Call build_geometry(geo_cfg) to construct a Geometry, then pass it here. The TOML keys below are the fields that belong in the [geometry] section.

intrcmap_1dchain

intrcmap_1dchain(geo: Geometry) -> List[Interaction2Site]

Generate an interaction map for a 1D chain.

Produces nearest-neighbor (NN) and, optionally, next-nearest-neighbor (NNN) bonds along the chain. Coupling constants are not set; cpl is 0.0 on all returned objects.

Three boundary conditions are supported:

  • 'OBC' — bonds stay inside [0, L), so the chain has open ends.
  • 'PBC' — bonds additionally wrap from the right end back to the left, normalized so that leading_site < terminal_site.
  • 'IBC' — the L sites form one unit cell of an infinite chain. Every site leads a bond, and a terminal_site at or beyond L denotes a site in the next unit cell; build_ihamiltonian folds those back modulo L when it lays out the operator-string channels. Unlike PBC these are not wrap-around bonds within a finite ring: site L-1 is bonded to site 0 of the following cell, not to site 0 of its own.

Parameters:

Name Type Description Default
geo Geometry

Fully-resolved geometry struct for the 1D chain. Relevant config keys (read from geo.cfg):

  • bcx — boundary condition ('OBC', 'PBC', or 'IBC').
  • n2x — include NN bonds (default True).
  • n3x — include NNN bonds (default False).
required

Returns:

Type Description
List[Interaction2Site]

Interaction objects sorted by leading_site. Tensor fields are None; cpl is 0.0.

Raises:

Type Description
ValueError

If bcx is not one of 'OBC', 'PBC', or 'IBC'.

TOML Keys

Key Type Default Description
lx int required Number of sites
bcx str "OBC" Boundary condition: "OBC" or "PBC"
n2x bool true Include nearest-neighbor bonds

See Also