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 interface to lightning.qubit MCM preprocessing #760

Merged
merged 11 commits into from
Jun 13, 2024
Merged

Conversation

mudit2812
Copy link
Contributor

@mudit2812 mudit2812 commented Jun 12, 2024

Context:
Currently blocked by PennyLaneAI/pennylane#5791. Device preprocessing is being moved inside the ML boundary, so the interface information needed for correct hw-like postselection is being lost when using dynamic_one_shot.

Description of the Change:
qml.devices.preprocess.mid_circuit_measurements accepts an additional interface kwarg, which is now being used in LightningQubit.preprocess.

Benefits:
Expected behaviour with mcm_method="one-shot", postselect_mode="hw-like", and jax.jit.

Possible Drawbacks:

Related GitHub Issues:

requirements-dev.txt Outdated Show resolved Hide resolved
@mudit2812
Copy link
Contributor Author

[sc-65738]

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.

Looks good to me! Thanks @mudit2812 !

Copy link

codecov bot commented Jun 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.00%. Comparing base (56c3064) to head (7db21c5).
Report is 93 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #760      +/-   ##
==========================================
- Coverage   97.06%   93.00%   -4.06%     
==========================================
  Files         109       17      -92     
  Lines       15694     1902   -13792     
==========================================
- Hits        15233     1769   -13464     
+ Misses        461      133     -328     

☔ 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 Jun 12, 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.

🙌

.github/CHANGELOG.md Outdated Show resolved Hide resolved
@mudit2812 mudit2812 merged commit f15665c into master Jun 13, 2024
84 of 85 checks passed
@mudit2812 mudit2812 deleted the inner-execute branch June 13, 2024 16:36
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.

4 participants