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
Support Sparse Matrix representation for Observables and Arithmetic Ops (1/3) #2964
Conversation
Hello. You may have forgotten to update the changelog!
|
Codecov Report
@@ Coverage Diff @@
## master #2964 +/- ##
=======================================
Coverage 99.65% 99.65%
=======================================
Files 266 266
Lines 22318 22335 +17
=======================================
+ Hits 22241 22258 +17
Misses 77 77
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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 will be a good starting point for further development and feature coverage of sparse matrices!
[sc-24922] |
Context:
We want to support sparse matrix representation for Symbolic operators, these depend on the sparse matrix attributes of their factors/summands/base operators. We must then also support sparse matrix representations for a few other operators; we choose to support observables as these have useful applications (eg. Quantum Chemistry).
Description of the Change:
Implement the
sparse_matrix()
property for some well known PL observables. Add a sparse expand method to handle varying wire labels.Benefits:
Performance boost when computing expectation values / other measurements using operator arithmetic or observables.
Closes #2882