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

Remove magic numbers in Lightning stopping_conditions #926

Merged
merged 7 commits into from
Sep 30, 2024

Conversation

maliasadi
Copy link
Member

@maliasadi maliasadi commented Sep 25, 2024

Before submitting

Please complete the following checklist when submitting a PR:

  • All new features must include a unit test.
    If you've fixed a bug or added code that should be tested, add a test to the
    tests directory!

  • All new functions and code must be clearly commented and documented.
    If you do make documentation changes, make sure that the docs build and
    render correctly by running make docs.

  • Ensure that the test suite passes, by running make test.

  • Add a new entry to the .github/CHANGELOG.md file, summarizing the
    change, and including a link back to the PR.

  • Ensure that code is properly formatted by running make format.

When all the above are checked, delete everything above the dashed
line and fill in the pull request template.


Context:

Description of the Change:

Benefits:

Possible Drawbacks:

Related GitHub Issues:
[sc-74414]

Copy link
Member

@multiphaseCFD multiphaseCFD left a comment

Choose a reason for hiding this comment

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

Thanks @maliasadi . LGTM. Don't forget to add entry to the changelog.

pennylane_lightning/lightning_tensor/lightning_tensor.py Outdated Show resolved Hide resolved
pennylane_lightning/lightning_kokkos/lightning_kokkos.py Outdated Show resolved Hide resolved
@maliasadi maliasadi marked this pull request as ready for review September 27, 2024 19:43
@maliasadi maliasadi added the urgent Mark a pull request as high priority label Sep 27, 2024
Copy link

codecov bot commented Sep 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.82%. Comparing base (c607b6c) to head (90232a1).
Report is 1 commits behind head on master.

❗ There is a different number of reports uploaded between BASE (c607b6c) and HEAD (90232a1). Click for more details.

HEAD has 142 uploads less than BASE
Flag BASE (c607b6c) HEAD (90232a1)
149 7
Additional details and impacted files
@@             Coverage Diff             @@
##           master     #926       +/-   ##
===========================================
- Coverage   97.23%   69.82%   -27.42%     
===========================================
  Files         214       24      -190     
  Lines       29802     2283    -27519     
===========================================
- Hits        28978     1594    -27384     
+ Misses        824      689      -135     

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

Copy link
Member

@multiphaseCFD multiphaseCFD left a comment

Choose a reason for hiding this comment

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

Nice one! Thanks @maliasadi !

Copy link
Contributor

@AmintorDusko AmintorDusko left a comment

Choose a reason for hiding this comment

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

Thank you! Much simpler now!

@maliasadi maliasadi added ci:use-multi-gpu-runner Enable usage of Multi-GPU runner for this Pull Request ci:build_wheels Activate wheel building. labels Sep 27, 2024
Copy link
Contributor

@LuisAlfredoNu LuisAlfredoNu left a comment

Choose a reason for hiding this comment

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

Thank you @maliasadi
Nice work! 😄

@maliasadi maliasadi merged commit 1c1f36e into master Sep 30, 2024
93 of 101 checks passed
@maliasadi maliasadi deleted the rm_magic_stopping_condition branch September 30, 2024 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci:build_wheels Activate wheel building. ci:use-multi-gpu-runner Enable usage of Multi-GPU runner for this Pull Request urgent Mark a pull request as high priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants