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.
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., whenmax_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.