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

Support the generalization of basis state preparation and the facade legacy device for MPI LGPU #864

Merged
merged 7 commits into from
Aug 22, 2024

Conversation

maliasadi
Copy link
Member

@maliasadi maliasadi commented Aug 22, 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-71917]

Copy link
Contributor

Hello. You may have forgotten to update the changelog!
Please edit .github/CHANGELOG.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 Aug 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.50%. Comparing base (4b79587) to head (8e117ff).
Report is 2 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##           master     #864       +/-   ##
===========================================
- Coverage   91.77%   81.50%   -10.28%     
===========================================
  Files         114       17       -97     
  Lines       18254     1946    -16308     
===========================================
- Hits        16752     1586    -15166     
+ Misses       1502      360     -1142     

☔ 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.

Thanks @maliasadi ! Don't forget to add an entry in the changlog

@maliasadi
Copy link
Member Author

@multiphaseCFD there are more things to fix in latest/latest 😬 I'll update the changelog right after getting latest/latest 🟢

@multiphaseCFD multiphaseCFD self-requested a review August 22, 2024 16:12
@maliasadi maliasadi changed the title Support the generalization of basis state preparation Support the generalization of basis state preparation and the facade legacy device for MPI LGPU Aug 22, 2024
@maliasadi
Copy link
Member Author

@multiphaseCFD latest/latest 🟢 🎉

Copy link
Contributor

@vincentmr vincentmr left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @maliasadi . Do we want to run MPI tests before merging though? Or have you already run the workflows manually?

@maliasadi
Copy link
Member Author

@vincentmr I've run them manually! But let's trigger them here too 👍

@maliasadi maliasadi added the ci:use-multi-gpu-runner Enable usage of Multi-GPU runner for this Pull Request label Aug 22, 2024
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.

LGTM! Thanks @maliasadi !

@maliasadi maliasadi merged commit 8b8ef73 into master Aug 22, 2024
78 of 82 checks passed
@maliasadi maliasadi deleted the fix_pl_clean_state_prep branch August 22, 2024 19:59
multiphaseCFD pushed a commit that referenced this pull request Sep 8, 2024
…legacy device for MPI LGPU (#864)

### Before submitting

Please complete the following checklist when submitting a PR:

- [x] 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`](../tests) directory!

- [x] 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`.

- [x] Ensure that the test suite passes, by running `make test`.

- [x] Add a new entry to the `.github/CHANGELOG.md` file, summarizing
the
      change, and including a link back to the PR.

- [x] 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:**

- PR PennyLaneAI/pennylane#6021 removed code
duplication for `BasisEmbedding` and `BasisState`. As the result
`BasisState` no longer decomposes to `BasisStatePreparation`. This PR
updates Python unit tests to support this generalization of basis state
preparation.

- PR PennyLaneAI/pennylane#6046 added a facade
wrapper class for "legacy" devices. This PR is a follow up to PR #839
updating Multi-GPU LGPU device and tests.

**Description of the Change:**

**Benefits:**

**Possible Drawbacks:**

**Related GitHub Issues:**

---------

Co-authored-by: ringo-but-quantum <github-ringo-but-quantum@xanadu.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci:use-multi-gpu-runner Enable usage of Multi-GPU runner for this Pull Request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants