-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
Milestone
Description
Environment
- Qiskit version: 1.3.0.dev0+6b521db
- Python version: 3.9
- Operating system: MacOS
What is happening?
The class qiskit.result.mitigation.local_readout_mitigator.LocalReadoutMitigator
does not support BackendV2. Given that BackendV1 is now deprecated... it getting complicated to have this class post 2.0.
How can we reproduce the issue?
from qiskit.result import LocalReadoutMitigator
from qiskit.providers.fake_provider import GenericBackendV2
backend = GenericBackendV2(
num_qubits=5,
seed=42,
)
LocalReadoutMitigator(backend=backend)
AttributeError: 'GenericBackendV2' object has no attribute 'properties'
What should happen?
The class works with BackendV1
from qiskit.result import LocalReadoutMitigator
from qiskit.providers.fake_provider import Fake5QV1
LocalReadoutMitigator(backend=Fake5QV1())
Ideally, it should also work with BackendV2.
Any suggestions?
¯\_(ツ)_/¯