DynamicsBackend
sets Target.num_qubits
which is not settable in Qiskit 1.3
#366
Labels
bug
Something isn't working
Informations
What is the current behavior?
AttributeError
when trying to create aDynamicsBackend
:Steps to reproduce the problem
Run the following code with Qiskit 1.3:
What is the expected behavior?
Successful
DynamicsBackend
creationSuggested solutions
num_qubits
can be passed toTarget
instead. I am not sure about the case when a target is passed in toDynamicsBackend
.I think it should just leave the target alone and base the number of qubits on the subsystem dimensions. Perhaps it could make a new target and only copy the instructions related to the qubits in the subsystem.Thinking about it more, I think it would be most consistent to build a new qubit with just the instructions for the qubits in the subsystem to be simulated. Otherwise, number of qubits will be inconsistent in different parts of the code.The text was updated successfully, but these errors were encountered: