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

DeprecationWarning about Provider #2178

Open garrison opened 1 week ago

garrison commented 1 week ago

Informations

What is the current behavior?

site-packages/qiskit_aer/__init__.py:89: DeprecationWarning: The class ``qiskit.providers.provider.Provider`` is deprecated as of qiskit 1.1. It will be removed no earlier than 3 months after the release date. The abstract Provider and ProviderV1 classes are deprecated and will be removed in 2.0. You can just remove it as the parent class and a `get_backend` method that returns the backends from `self.backend`.
    Aer = AerProvider()  # pylint: disable=invalid-name

Steps to reproduce the problem

Use aer simulator with qiskit 1.1 or later.

What is the expected behavior?

No warning

Suggested solutions

Don't use ProviderV1 as a parent class.