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
464 stars 354 forks source link

Fix AerBackend.set_max_qubits #2159

Closed doichanj closed 3 weeks ago

doichanj commented 4 weeks ago

Summary

This is fix for PR #2084 again

Details and comments

Setting method option to Sampler overwrote n_qubits of configuration. So this fix set n_qubits by using _set_configuration_option function to overwrite again.

I added test case to test all supported methods

hhorii commented 3 weeks ago

maybe need changelog.