Skip to content

Added lattices for 2nd nearest neighbor connections. - #3677

Merged
Brad Lackey (brad-lackey) merged 2 commits into
mainfrom
brlackey/magnets-2nd_nearest_neighbor_graphs
Sep 3, 2026
Merged

Added lattices for 2nd nearest neighbor connections.#3677
Brad Lackey (brad-lackey) merged 2 commits into
mainfrom
brlackey/magnets-2nd_nearest_neighbor_graphs

Conversation

@brad-lackey

@brad-lackey Brad Lackey (brad-lackey) commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Added two classes extending Chain1D and Patch1D to nearest neighbor connections.

  • Added edge marking in Hypergraph library for additional functionality (distance of vertices in this case)
  • In one dimension the user can specify m-th nearest neighbor connections for any m.
  • In two dimension only second nearest neighbor connections are supported (across the diagonal of the 2d grid).
  • Deterministic edge coloring is supported on both classes.
  • Expanded IsingModel class and HeisenbergModel class to accept different interaction strengths according to distance.
  • Unit tests added.

@brad-lackey
Brad Lackey (brad-lackey) added this pull request to the merge queue Sep 3, 2026
Merged via the queue into main with commit 16678e2 Sep 3, 2026
14 checks passed
@brad-lackey
Brad Lackey (brad-lackey) deleted the brlackey/magnets-2nd_nearest_neighbor_graphs branch September 3, 2026 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants