-
Notifications
You must be signed in to change notification settings - Fork 603
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
devices.qubit.measure
uses csr_dot_products
only when it is usable.
#6278
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 #6278 +/- ##
==========================================
- Coverage 99.69% 99.69% -0.01%
==========================================
Files 443 444 +1
Lines 42022 42133 +111
==========================================
+ Hits 41894 42004 +110
- Misses 128 129 +1 ☔ View full report in Codecov by Sentry. |
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.
Since a new property is added to Operator
, we should probably also add tests for it
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.
This looks good! I just have a couple of questions. Is this PR relevant for this bug?
Co-authored-by: Pietropaolo Frisoni <pietropaolo.frisoni@xanadu.ai>
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.
LGTM
…e. (#6278) There are a couple of scenarios when `csr_dot_products` is not usable for `Sum` and `Hamiltonians`: 1. When not all of the ops has a sparse matrix 2. When it's a legacy Hamiltonian and one of the ops are multi-wired. Fixes #6264 [sc-73590] [sc-73868] --------- Co-authored-by: Pietropaolo Frisoni <pietropaolo.frisoni@xanadu.ai>
A follow up PR to #6278, fixes recent failure in legacy opmath.
There are a couple of scenarios when
csr_dot_products
is not usable forSum
andHamiltonians
:Fixes #6264
[sc-73590]
[sc-73868]