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

Lightning qubit2 add measurements #627

Merged
merged 121 commits into from
Mar 7, 2024
Merged

Conversation

vincentmr
Copy link
Contributor

@vincentmr vincentmr commented Mar 5, 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:
Add probs and var support in the new device measurement module.
Add parametrized tests, checkout single/double observable support.

Benefits:

Possible Drawbacks:

Related GitHub Issues:

Copy link
Contributor

@mudit2812 mudit2812 left a comment

Choose a reason for hiding this comment

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

Thanks @vincentmr ! Nice implementation for probs and var. I left a few comments. I spotted one issue with testing that I've mentioned below as well.

Base automatically changed from lightning-qubit2-add-simulate to master March 6, 2024 12:50
@vincentmr vincentmr force-pushed the lightning-qubit2-add-measurements branch from 6f09183 to 24976a9 Compare March 6, 2024 13:11
@vincentmr vincentmr mentioned this pull request Mar 6, 2024
5 tasks
@vincentmr vincentmr requested a review from mudit2812 March 6, 2024 14:52
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.

So far looks good. Codecov is still complaining though.

pennylane_lightning/lightning_qubit/_measurements.py Outdated Show resolved Hide resolved
pennylane_lightning/lightning_qubit/_measurements.py Outdated Show resolved Hide resolved
tests/lightning_qubit/test_measurements_class.py Outdated Show resolved Hide resolved
Copy link
Contributor

@mudit2812 mudit2812 left a comment

Choose a reason for hiding this comment

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

Thanks Vincent!

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.

Excellent job! Feel free to merge when you are ready!

@vincentmr vincentmr merged commit cdb098a into master Mar 7, 2024
84 of 85 checks passed
@vincentmr vincentmr deleted the lightning-qubit2-add-measurements branch March 7, 2024 13:59
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