-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate legacy provider interface (#6337)
* Deprecate legacy provider interface In the 0.16.0 release we added a new versioned providers interface that included a V1 version of the Backend, Job, and Provider classes. Since then we've updated and unified almost all of the providers that exist to use the current interface. Having everything use the new interface means that we're now able to both evolve the interface in a controlled manner uniformly and also deprecate the legacy interface to signal to any other providers out there (especially those we don't maintain) that we'll only be supporting the versioned interface moving forward. * Fix lint * Run black * Add deprecation warning assertion on legacy backends tests Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
fd2dcb8
commit 876ec44
Showing
6 changed files
with
61 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
releasenotes/notes/deprecate-legacy-providers-383bf4142153297a.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
deprecations: | ||
- | | ||
The legacy providers interface, which consisted of the | ||
:class:`qiskit.providers.BaseBackend`, :class:`qiskit.providers.BaseJob`, | ||
and :class:`qiskit.providers.BaseProvider` abstract classes, has been | ||
deprecated and will be removed in a future release. Instead you should use | ||
the versioned interface, which the current abstract class versions are | ||
:class:`qiskit.providers.BackendV1`, :class:`qiskit.providers.JobV1`, and | ||
:class:`qiskit.providers.ProvidersV1`. The V1 objects are mostly backwards | ||
compatible to ease migration from the legacy interface to the versioned | ||
one. However, expect future versions of the abstract interfaces to diverge | ||
more. You can refer to the :mod:`qiskit.providers` documentation for | ||
more high level details about the versioned interface. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters