unitaryfund / mitiq

Mitiq is an open source toolkit for implementing error mitigation techniques on most current intermediate-scale quantum computers.
https://mitiq.readthedocs.io
GNU General Public License v3.0
367 stars 163 forks source link

Test accuracy of shadows technique #2138

Open Misty-W opened 11 months ago

Misty-W commented 11 months ago

Issue Description

Shadows tests didn't catch inaccuracy bug discovered in docs: https://github.com/unitaryfund/mitiq/pull/2113#issuecomment-1863625596

Min also points to a possible culprit in another comment in that thread: https://github.com/unitaryfund/mitiq/pull/2113#issuecomment-1865243585

Proposed Solution

Additional References

Misty-W commented 10 months ago

Assigning myself to specify what is needed to solve this issue. I had just created this issue quickly to flag what was mentioned in https://github.com/unitaryfund/mitiq/pull/2113#issuecomment-1863625596, but I do recognize I need to follow up here.

*If someone wants to investigate and fill in the issue description before I get a chance to do it, more than welcome! Otherwise I'll pick it up.