determine the max circuit per job by local or remote
@@ -65,12 +65,9 @@ def run_circuits(circuits, backend, execute_config, qjob_config={},
except KeyError:
my_backend = qiskit.IBMQ.get_backend(backend)
- if my_backend.configuration()['simulator']:
- with_autorecover = False
- max_circuits_per_job = sys.maxsize
- else:
- with_autorecover = True
- max_circuits_per_job = MAX_CIRCUITS_PER_JOB
+ with_autorecover = False if my_backend.configuration()['simulator'] else True
+ max_circuits_per_job = sys.maxsize if my_backend.configuration()['local'] \
+ else MAX_CIRCUITS_PER_JOB
qobjs = []
jobs = []
