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

Add emery and Haldane model Hamiltonians #6201

Merged
merged 72 commits into from
Sep 20, 2024
Merged

Conversation

ddhawan11
Copy link
Contributor

Context:
Add functions to generate emery and Haldane model Hamiltonians on a lattice.

Description of the Change:

Benefits:

Possible Drawbacks:

Related GitHub Issues:

[sc-71958]

pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
@ddhawan11 ddhawan11 marked this pull request as ready for review September 4, 2024 11:10
Copy link
Contributor

github-actions bot commented Sep 4, 2024

Hello. You may have forgotten to update the changelog!
Please edit doc/releases/changelog-dev.md with:

  • A one-to-two sentence description of the change. You may include a small working example for new features.
  • A link back to this PR.
  • Your name (or GitHub username) in the contributors section.

Copy link

codecov bot commented Sep 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.70%. Comparing base (de54c54) to head (e52a5e2).
Report is 4 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6201   +/-   ##
=======================================
  Coverage   99.70%   99.70%           
=======================================
  Files         444      444           
  Lines       42133    42192   +59     
=======================================
+ Hits        42008    42069   +61     
+ Misses        125      123    -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@austingmhuang austingmhuang left a comment

Choose a reason for hiding this comment

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

Looking good @ddhawan11, left some initial comments.

doc/releases/changelog-dev.md Outdated Show resolved Hide resolved
pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
pennylane/spin/spin_hamiltonian.py Show resolved Hide resolved
pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
ddhawan11 and others added 11 commits September 5, 2024 04:18
Co-authored-by: Austin Huang <65315367+austingmhuang@users.noreply.github.com>
Co-authored-by: Austin Huang <65315367+austingmhuang@users.noreply.github.com>
Co-authored-by: Austin Huang <65315367+austingmhuang@users.noreply.github.com>
Co-authored-by: Austin Huang <65315367+austingmhuang@users.noreply.github.com>
Co-authored-by: Austin Huang <65315367+austingmhuang@users.noreply.github.com>
Co-authored-by: Austin Huang <65315367+austingmhuang@users.noreply.github.com>
Co-authored-by: Austin Huang <65315367+austingmhuang@users.noreply.github.com>
Co-authored-by: Austin Huang <65315367+austingmhuang@users.noreply.github.com>
Co-authored-by: Austin Huang <65315367+austingmhuang@users.noreply.github.com>
pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
Copy link
Contributor

@austingmhuang austingmhuang left a comment

Choose a reason for hiding this comment

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

Looking good @ddhawan11. Left some nitpicky things. I think there can be a decent amount of refactoring but I'll take a deeper look again later.

doc/releases/changelog-dev.md Outdated Show resolved Hide resolved
pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
tests/spin/test_spin_hamiltonian.py Show resolved Hide resolved
pennylane/spin/spin_hamiltonian.py Show resolved Hide resolved
pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
ddhawan11 and others added 2 commits September 6, 2024 05:06
Co-authored-by: Utkarsh <utkarshazad98@gmail.com>
Co-authored-by: Utkarsh <utkarshazad98@gmail.com>
ddhawan11 and others added 3 commits September 9, 2024 10:50
Co-authored-by: Austin Huang <65315367+austingmhuang@users.noreply.github.com>
Co-authored-by: Austin Huang <65315367+austingmhuang@users.noreply.github.com>
Copy link
Contributor

@soranjh soranjh left a comment

Choose a reason for hiding this comment

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

Thanks @ddhawan11, looks good overall. Left some high-level comments for now.

pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
tests/spin/test_spin_hamiltonian.py Outdated Show resolved Hide resolved
tests/spin/test_spin_hamiltonian.py Outdated Show resolved Hide resolved
tests/spin/test_spin_hamiltonian.py Outdated Show resolved Hide resolved
Copy link
Contributor

@soranjh soranjh left a comment

Choose a reason for hiding this comment

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

Thanks @ddhawan11, left my final set of comments.

pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
tests/spin/test_spin_hamiltonian.py Show resolved Hide resolved
ddhawan11 and others added 4 commits September 20, 2024 06:03
Co-authored-by: soranjh <40344468+soranjh@users.noreply.github.com>
Co-authored-by: soranjh <40344468+soranjh@users.noreply.github.com>
Co-authored-by: soranjh <40344468+soranjh@users.noreply.github.com>
Copy link
Contributor

@soranjh soranjh left a comment

Choose a reason for hiding this comment

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

Thanks @ddhawan11, left two very minor comments. Good to merge after resolving them, but please check the docs before merging.

pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
pennylane/spin/spin_hamiltonian.py Outdated Show resolved Hide resolved
ddhawan11 and others added 3 commits September 20, 2024 10:22
Co-authored-by: soranjh <40344468+soranjh@users.noreply.github.com>
Co-authored-by: soranjh <40344468+soranjh@users.noreply.github.com>
@ddhawan11 ddhawan11 enabled auto-merge (squash) September 20, 2024 14:27
@ddhawan11 ddhawan11 merged commit a1ccaeb into master Sep 20, 2024
37 checks passed
@ddhawan11 ddhawan11 deleted the emery_haldane_models branch September 20, 2024 15:57
mudit2812 pushed a commit that referenced this pull request Sep 23, 2024
**Context:**
Add functions to generate emery and Haldane model Hamiltonians on a
lattice.

**Description of the Change:**

**Benefits:**

**Possible Drawbacks:**

**Related GitHub Issues:**

[sc-71958]

---------

Co-authored-by: Austin Huang <65315367+austingmhuang@users.noreply.github.com>
Co-authored-by: Utkarsh <utkarshazad98@gmail.com>
Co-authored-by: soranjh <40344468+soranjh@users.noreply.github.com>
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.

4 participants