Skip to content

Fix XY coupling sign/scale in build_bfg - #1

Merged
Phy-David-Zhang merged 1 commit into
primaryfrom
fix/model-bfg-xy-coupling-sign
Jul 13, 2026
Merged

Fix XY coupling sign/scale in build_bfg#1
Phy-David-Zhang merged 1 commit into
primaryfrom
fix/model-bfg-xy-coupling-sign

Conversation

@Phy-David-Zhang

@Phy-David-Zhang Phy-David-Zhang commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • build_bfg's XY interaction term used intr.cpl = -Jperp, but nicole's U1 Sp/Sm operators are spherical components (Sp = -S+/sqrt(2), Sm = S-/sqrt(2)), so the leading/terminal tensor product carries an extra 1/2 factor.
  • Corrected the coupling to -2.0 * Jperp (with an explanatory comment) so the model correctly implements -Jperp * (S+_i S-_j + S-_i S+_j).
  • Updated the sha256 digest for model_bfg in registry.yaml to match.

Test plan

  • python tools/verify_registry.py reports OK for models/model_bfg.py
  • verify-registry CI check passes on this PR

Sp/Sm in nicole's U1 convention are spherical components with a 1/2
normalization factor, so the leading/terminal tensor product picks up
an extra 1/2. Use -2*Jperp instead of -Jperp to correctly implement
-Jperp * (S+_i S-_j + S-_i S+_j).
@Phy-David-Zhang
Phy-David-Zhang merged commit af3584b into primary Jul 13, 2026
1 check passed
@Phy-David-Zhang
Phy-David-Zhang deleted the fix/model-bfg-xy-coupling-sign branch July 13, 2026 06:57
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.

1 participant