-
Notifications
You must be signed in to change notification settings - Fork 2
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
Reduce measurement cost using qubit-wise commutativity #95
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #95 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 12 12
Lines 587 620 +33
=========================================
+ Hits 587 620 +33
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
From list of one-qubit Pauli operators, to `" ".join(list)`
Note: I renamed Other than that, I think this is done, but I'll do a bit more testing locally to be sure . |
Following Qibo, now two separate functions again: `expectation` and `expectation_from_samples`
Left with the last bits...!
TODO: Left with adding figures and references!
The figures in the tutorial are ugly, but I wanted to finish this before the meeting early next week (A bit tired of working on this too 😛). Will redraw nicer looking figures to replace them in future👍 |
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.
Added some small modifications to the expectations from shots tutorial. Rendering by sphinx now looks ok.
Reduce the measurement cost of VQE by grouping Hamiltonian terms that commute qubit-wise, and obtaining their expectation value with a single set of measurements.
Reference paper: https://arxiv.org/abs/1907.03358
Checklist: