Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ProviderV2 a second version of Provider abstract class #5629

Closed
wants to merge 1 commit into from

Commits on Jan 14, 2021

  1. Add ProviderV2 a second version of Provider abstract class

    This commit adds a new version of the abstract interface for the
    Provider class, ProviderV2, to the providers interface. The only change
    over the early ProviderV1 version of the interface is that the new class
    enables attribute access to the Provider.backends attribute. This also
    means that tab completion in jedi (or similar) environments will work.
    Otherwise it's completely identical to ProvidersV1 (except for the
    version)
    
    ProviderV1 is not deprecated yet, because we need to wait for at least 3
    release and 6 months per the version support policy. [1] Since the two
    versions are fully compatible this isn't a large burden.
    
    [1] https://qiskit.org/documentation/apidoc/providers.html#version-support-policy
    mtreinish committed Jan 14, 2021
    Configuration menu
    Copy the full SHA
    b49d098 View commit details
    Browse the repository at this point in the history