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 shot measurement support to lightning.tensor #852

Merged
merged 329 commits into from
Sep 11, 2024

Conversation

multiphaseCFD
Copy link
Member

@multiphaseCFD multiphaseCFD commented Aug 14, 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:

[SC-70645] & [SC-65785]

This PR adds shot measurement support to lightning.tensor via the python layer. Both MCMC and MidMeasurement are not supported.

Description of the Change:

Benefits:

Possible Drawbacks:

Related GitHub Issues:

Copy link
Member

@maliasadi maliasadi 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 @multiphaseCFD! 💯

@multiphaseCFD multiphaseCFD added the urgent Mark a pull request as high priority label Sep 10, 2024
Copy link
Member

@maliasadi maliasadi left a comment

Choose a reason for hiding this comment

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

A few more suggestions but we should be able to merge it soon

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.

A couple questions about the tests, but otherwise ready to approve.

pennylane_lightning/core/src/bindings/Bindings.hpp Outdated Show resolved Hide resolved
tests/lightning_qubit/test_measurements_class.py Outdated Show resolved Hide resolved
tests/lightning_qubit/test_measurements_class.py Outdated Show resolved Hide resolved
tests/lightning_qubit/test_measurements_class.py Outdated Show resolved Hide resolved
Copy link
Member

@maliasadi maliasadi left a comment

Choose a reason for hiding this comment

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

🥳

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, nice one @multiphaseCFD .

@multiphaseCFD multiphaseCFD merged commit 3d005f0 into master Sep 11, 2024
106 checks passed
@multiphaseCFD multiphaseCFD deleted the add_sample_ltensor branch September 11, 2024 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
urgent Mark a pull request as high priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants