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

Correct XY Hamiltonian interaction term #744

Merged
merged 2 commits into from
Oct 4, 2024
Merged

Conversation

HGSilveri
Copy link
Collaborator

@HGSilveri HGSilveri commented Oct 3, 2024

There was a wrong factor of /2 in the XY interaction term: what should have been (1 - 3*cos**2) was rather (1 - 3*cos**2) / 2.
This PR:

  • Removes that factor
  • Calculates the cosine with the quantization axis more generically
  • Updates the tutorial using the XY mode to accomodate for the higher interaction strength

@HGSilveri HGSilveri added this to the Pulser v1 milestone Oct 3, 2024
@HGSilveri HGSilveri requested a review from a-corni October 3, 2024 13:48
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@HGSilveri HGSilveri changed the title Correct sign in XY Hamiltonian interaction term Correct XY Hamiltonian interaction term Oct 4, 2024
Copy link
Collaborator

@a-corni a-corni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :)

@HGSilveri HGSilveri merged commit 96ab5c4 into develop Oct 4, 2024
9 checks passed
@HGSilveri HGSilveri mentioned this pull request Oct 9, 2024
HGSilveri added a commit that referenced this pull request Oct 9, 2024
**Fixes**:
- Correct XY Hamiltonian interaction term (#744)

**Removals**:
- Drop support for Python 3.8 (#743)
- Remove Simulation() and pulser.simulation (#736) 
- Remove legacy JSON serialization methods for Sequence (#737) 
- Remove Chadoq2 and IroiseMVP (#735) 
- Remove references to "submission" on RemoteResults (#738) 
- Remove legacy NoiseModel (#734)
@HGSilveri HGSilveri deleted the hs/fix-xy-sign branch November 12, 2024 11:18
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