Qiskit / qiskit-addon-mthree

Matrix-free Measurement Mitigation
https://qiskit.github.io/qiskit-addon-mthree/
Apache License 2.0
37 stars 27 forks source link

Fix issues when max_experiments = 1 #183

Closed mbfalck closed 1 year ago

mbfalck commented 1 year ago

When a backend configuration specifies max_experiments and this number divides the number of calibration circuits, an empty job would have been created (e.g., when max_experiments = 1). This PR fixes this issue, as well as another issue in the job thread that arises with single-circuit jobs. I also added a test case for this.