Closed donsano33 closed 5 months ago
Closing based on discussion on slack. Summary is: gracefully handling the ignoring of certain arguments would require keeping track of what is okay and what is not, which would add too much maintenance complexity.
What is the expected behavior?
I want to 1-to-1 reuse code that runs
QuantumCircuit
s on aDynamicsBackend
as well as on aqiskit_ibm_runtime.IBMBackend
via therun
function. The problem is, thatDynamicsBackend.run()
does not allow options that are not explicitly mentioned inDynamicsBackend.set_options()
, triggering aAttributeError
implemented here: https://github.com/Qiskit-Extensions/qiskit-dynamics/blob/5d4f1b2b98a3adcef51b38238620e21d5e27f641/qiskit_dynamics/backend/dynamics_backend.py#L252Taking for example the
job_tags
parameter, this forces me to workaround with something like this:In my ideal world I would be able to just use this line for both backends:
Would it be possible to change this behavior or was this an explicit design choice?