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

Update LightningQubit to adhere to MCM qnode arguments #736

Merged
merged 31 commits into from
Jun 5, 2024
Merged

Conversation

mudit2812
Copy link
Contributor

@mudit2812 mudit2812 commented May 21, 2024

Context:
As name says. QNode now accepts postselect_shots and mcm_method arguments to specify MCM behaviour. This PR updates LQ to adhere to those arguments.

Description of the Change:

  • Update LQ preprocessing to adhere to user requested MCM behaviour
  • Add tests for LQ and LK
  • Update LQ and LK simulation to adhere to specified postselect_mode.

Benefits:

Possible Drawbacks:

Related GitHub Issues:

@mudit2812
Copy link
Contributor Author

[sc-63641] [sc-63640]

requirements-dev.txt Outdated Show resolved Hide resolved
@mudit2812 mudit2812 marked this pull request as ready for review May 22, 2024 15:34
Copy link

codecov bot commented May 22, 2024

Codecov Report

Attention: Patch coverage is 96.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 92.71%. Comparing base (e24ba31) to head (0459ede).
Report is 81 commits behind head on master.

Files with missing lines Patch % Lines
...ane_lightning/lightning_kokkos/lightning_kokkos.py 88.88% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #736      +/-   ##
==========================================
- Coverage   94.57%   92.71%   -1.87%     
==========================================
  Files         122       15     -107     
  Lines       17781     1729   -16052     
==========================================
- Hits        16816     1603   -15213     
+ Misses        965      126     -839     

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

@mudit2812 mudit2812 added the ci:build_wheels Activate wheel building. label May 22, 2024
@mudit2812 mudit2812 removed the ci:build_wheels Activate wheel building. label May 23, 2024
@mudit2812 mudit2812 requested a review from vincentmr June 3, 2024 20:19
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.

Nothing to flag here. I think a couple tests needed fixing, but this looks ready to merge. I'll approve once the CI goes green.

@mudit2812 mudit2812 requested a review from vincentmr June 4, 2024 23:27
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 @mudit2812 .

@mudit2812 mudit2812 added the ci:build_wheels Activate wheel building. label Jun 5, 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.

Thanks @mudit2812 🙌

@vincentmr vincentmr merged commit d8baf5a into master Jun 5, 2024
80 of 81 checks passed
@vincentmr vincentmr deleted the mcm-kwargs branch June 5, 2024 17:37
multiphaseCFD pushed a commit that referenced this pull request Jun 5, 2024
**Context:**
As name says. `QNode` now accepts `postselect_shots` and `mcm_method`
arguments to specify MCM behaviour. This PR updates LQ to adhere to
those arguments.

**Description of the Change:**
* Update LQ preprocessing to adhere to user requested MCM behaviour
* Add tests for LQ and LK
* Update LQ and LK simulation to adhere to specified `postselect_mode`.

**Benefits:**

**Possible Drawbacks:**

**Related GitHub Issues:**

---------

Co-authored-by: ringo-but-quantum <[email protected]>
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants