Skip to content

Add higher-order spin Hamiltonians for lattice models#479

Draft
wavefunction91 wants to merge 1 commit into
mainfrom
session/higher-spin-models
Draft

Add higher-order spin Hamiltonians for lattice models#479
wavefunction91 wants to merge 1 commit into
mainfrom
session/higher-spin-models

Conversation

@wavefunction91

Copy link
Copy Markdown
Collaborator

No description provided.

@eimrek

eimrek commented May 29, 2026

Copy link
Copy Markdown
Member

hi @wavefunction91, I took a look, looks good. Some preliminary high level comments:

  • I think it would be useful to have a general spin Hamiltonian creation method, that allows for any arbitrary terms (bilinear, such as the Dzyaloshinskii-Moriya term, biquadratic, ring exchange, ...). And then Heisenberg and Ising could be wrappers around this.
  • Also it would be good to be able to set Nth nearest neighbor interactions in a convenient way.
  • I wonder if perhaps it would be good to decouple the spin hamiltonian definition, and the conversion to a QubitHamiltonian. Related to this, I am wondering if perhaps these spin hamiltonian creation methods should just return a Hamiltonian object (that could be abstracted to support both fermionic and spin degrees of freedom, if it doesn't). This is also relevant for supporting hamiltonians that mix spin and fermionic DoFs (like t-J or Kondo).

Happy to discuss, and also to contribute to this PR. I'll think more about these points and come up with some more concrete proposals.

Edit: but of course these comments are a bit out of scope of this PR. Also happy to get this done, and then discuss a potential higher-level refactor in a separate PR. let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants