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 additional lattice models #6237

Merged
merged 16 commits into from
Sep 20, 2024
Merged

Add additional lattice models #6237

merged 16 commits into from
Sep 20, 2024

Conversation

ddhawan11
Copy link
Contributor

@ddhawan11 ddhawan11 commented Sep 6, 2024

Context:
Adds additional lattice templates for the lattice class.

Description of the Change:
Adds lattice models: Lieb, Cubic, Body centered cubic and Face centered cubic.

Benefits:

Possible Drawbacks:

Related GitHub Issues:

[sc-70987]

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.

Functionally speaking it looks good! Make sure to remove print statements and add docstrings.

@ddhawan11 ddhawan11 changed the title [WIP] Add additional lattice models Add additional lattice models Sep 10, 2024
@ddhawan11 ddhawan11 marked this pull request as ready for review September 10, 2024 16:46
Copy link

codecov bot commented Sep 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.70%. Comparing base (de54c54) to head (268b8a6).
Report is 5 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6237   +/-   ##
=======================================
  Coverage   99.70%   99.70%           
=======================================
  Files         444      444           
  Lines       42133    42149   +16     
=======================================
+ Hits        42008    42026   +18     
+ Misses        125      123    -2     

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

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. We just need stronger tests for the correctness of the lattices.

doc/releases/changelog-dev.md Outdated Show resolved Hide resolved
pennylane/spin/lattice.py Outdated Show resolved Hide resolved
pennylane/spin/lattice.py Show resolved Hide resolved
tests/spin/test_lattice.py 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 some minor comments and questions.

pennylane/spin/lattice.py Outdated Show resolved Hide resolved
tests/spin/test_lattice.py Outdated Show resolved Hide resolved
tests/spin/test_lattice.py Show resolved Hide resolved
Copy link
Contributor

@obliviateandsurrender obliviateandsurrender left a comment

Choose a reason for hiding this comment

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

Looks, good. Just a few minor suggestions.

doc/releases/changelog-dev.md Outdated Show resolved Hide resolved
pennylane/spin/lattice.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, looks good to me. Just left a final question.

tests/spin/test_spin_hamiltonian.py 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.

Nice work @ddhawan11. Left two very nitpicky comments.

pennylane/spin/lattice.py Outdated Show resolved Hide resolved
pennylane/spin/lattice.py Show resolved Hide resolved
ddhawan11 and others added 2 commits September 20, 2024 12:33
Co-authored-by: Austin Huang <65315367+austingmhuang@users.noreply.github.com>
@ddhawan11 ddhawan11 merged commit 37029a9 into master Sep 20, 2024
37 checks passed
@ddhawan11 ddhawan11 deleted the lattice_models branch September 20, 2024 17:13
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