-
Notifications
You must be signed in to change notification settings - Fork 621
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 sampling
for qubit_mixed
module
#6639
Conversation
Co-authored-by: Mudit Pandey <[email protected]>
Co-authored-by: Astral Cai <[email protected]>
Co-authored-by: Astral Cai <[email protected]>
…neAI/pennylane into add-qubit_mixed/sampling
Co-authored-by: Mudit Pandey <[email protected]>
Co-authored-by: Mudit Pandey <[email protected]>
Co-authored-by: Mudit Pandey <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No further questions from me 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I'll approve once the changelog is fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think _process_single_shot_copy
should be _process_single_shot_entry
. See here). However, this would be a non-blocking change, so I'm approving.
Co-authored-by: Mudit Pandey <[email protected]>
Context:
In the new API interface of
default_mixed
, the submodulesampling
is our final blocker to the remaining functionalities.It provides three important helpers,
sample_probs
,sample_state
andmeasure_with_samples
.Description of the Change:
Added the implementation of
sampling
.Added the tests of
sampling
; note that compared with the qutrit counterpart, here the tests are highly simplified, to avoid unnecessary re-work in the future when we come back to improve the test suites for these two modulesBenefits:
Remove the blockers for the following-ups.
Drastically simplify the sampling code by reusing qubit src code
Possible Drawbacks:
There is an introduced dependency on
qubit.sample_probs
Related GitHub Issues:
[sc-79095]