-
Notifications
You must be signed in to change notification settings - Fork 608
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
Make process_samples on SampleMP jit-compatible with Tracer indices #6211
Conversation
Hello. You may have forgotten to update the changelog!
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #6211 +/- ##
==========================================
+ Coverage 98.30% 99.60% +1.29%
==========================================
Files 445 445
Lines 43152 42364 -788
==========================================
- Hits 42422 42195 -227
+ Misses 730 169 -561 ☔ View full report in Codecov by Sentry. |
…e into process_samples_jit
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.
A couple of non-blocking comments.
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.
👍
[sc-60183] |
…6211) **Context:** There is a use case in catalyst (currently a WIP, sampling an observable using `measurements_from_samples` to diagonalize everything) that results in `indices` in the `process_samples` function being an abstract `Tracer`, and then things break that don't need to. **Description of the Change:** Update the jax `take` dispatch in `qml.math` to cast indices to a jax array instead of a vanilla numpy array
…6211) **Context:** There is a use case in catalyst (currently a WIP, sampling an observable using `measurements_from_samples` to diagonalize everything) that results in `indices` in the `process_samples` function being an abstract `Tracer`, and then things break that don't need to. **Description of the Change:** Update the jax `take` dispatch in `qml.math` to cast indices to a jax array instead of a vanilla numpy array
Context:
There is a use case in catalyst (currently a WIP, sampling an observable using
measurements_from_samples
to diagonalize everything) that results inindices
in theprocess_samples
function being an abstractTracer
, and then things break that don't need to.Description of the Change:
Update the jax
take
dispatch inqml.math
to cast indices to a jax array instead of a vanilla numpy array