Skip to content

LocalReadoutMitigator does not support BackendV2 #12832

@1ucian0

Description

@1ucian0

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?

¯\_(ツ)_/¯

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions