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
363 stars 161 forks source link

Add timing benchmarks #1376

Closed natestemen closed 1 year ago

natestemen commented 2 years ago

Once https://github.com/unitaryfund/mitiq/pull/1354 is merged, it will be nice to add some timing benchmarks to our repository. This is one of the more common uses of asv.

If there are recommendations as to core components of our library that we should ensure are fast, or would just be good to get an understanding of, please add them here.

natestemen commented 2 years ago

cc @unitaryfund/engineering

andreamari commented 2 years ago

I think mitiq.pec.sample_circuits() is usually quite slow and maybe could be improved.

The full mitiq.pec.execute_with_pec() is quite slow too, but most of its slowness is intrinsic to the technique and so not easy to improve.

I don't have in mind other parts of Mitiq in which speed is critical.

natestemen commented 1 year ago

With the removal of ASV in https://github.com/unitaryfund/mitiq/pull/1960, this is now irrelevant.