Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undeprecate biquad argument in set_exchange! #279

Merged
merged 1 commit into from
Jun 18, 2024
Merged

Undeprecate biquad argument in set_exchange! #279

merged 1 commit into from
Jun 18, 2024

Conversation

kbarros
Copy link
Member

@kbarros kbarros commented Jun 18, 2024

Since scalar-biquadratic is such a common use case, this PR uniformly supports again it with the biquad argument to set_exchange!, regardless of mode.

I was originally hoping we could entirely remove the biquad argument, and instead direct people to the more general set_pair_coupling! function. That idea hit a snag with mode = :dipole_large_S. In particular, Sunny doesn't have a way to represent symbolic spin operators ($S \to \infty$) in the tensor product space along a bond. It would be complicated to implement, and there is not a strong motivation, especially since we are de-emphasizing :dipole_large_S.

Fixes #276.

@kbarros kbarros merged commit 9af8c4c into main Jun 18, 2024
4 checks passed
@kbarros kbarros deleted the direct-biquad branch June 18, 2024 21:33
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.

Un-deprecate biquad option to set_exchange!
1 participant