Qiskit / qiskit-aer

Aer is a high performance simulator for quantum circuits that includes noise models
https://qiskit.github.io/qiskit-aer/
Apache License 2.0
483 stars 358 forks source link

Fix issue 2084 again #2119

Closed doichanj closed 4 months ago

doichanj commented 5 months ago

Summary

This is fix for #2084

Details and comments

backend.set_max_qubits was not implemented correctly when backend._target is None (max number of qubits should be set before transpile if AerSimulator() is initialized without any parameters)