let skip qobj validation honors the noise model and backend options.
@@ -356,11 +356,12 @@ def run_on_backend(backend, qobj, backend_options=None, noise_config=None, skip_
if is_simulator_backend(backend):
if is_aer_provider(backend):
from qiskit.providers.aer.aerjob import AerJob
- job = AerJob(backend, job_id, backend._run_job, qobj, backend_options,
- noise_config, False)
+ temp_backend_options = backend_options['backend_options'] if backend_options != {} else None
+ temp_noise_config = noise_config['noise_model'] if noise_config != {} else None
+ job = AerJob(backend, job_id, backend._run_job, qobj, temp_backend_options, temp_noise_config, False)
job._future = job._executor.submit(job._fn, job._job_id, job._qobj, *job._args)
else:
- backend._set_options(qobj_config=qobj.config, backend_options=backend_options)
+ backend._set_options(qobj_config=qobj.config, **backend_options)
job = SimulatorsJob(backend, job_id, backend._run_job, qobj)
job._future = job._executor.submit(job._fn, job._job_id, job._qobj)
elif is_ibmq_provider(backend):
