qiskit/wrapper/_wrapper.py
def register(*args, provider_class=None, **kwargs):
    """
    Authenticate against an online backend provider.
    This is a factory method that returns the provider that gets registered.

    Args:
        args (tuple): positional arguments passed to provider class initialization
        provider_class (BaseProvider): provider class
        kwargs (dict): keyword arguments passed to provider class initialization.
            For the IBMQSingleProvider default this can include things such as:

                * token (str): The token used to register on the online backend such
                    as the quantum experience.
                * url (str): The url used for online backend such as the quantum
                    experience.
                * hub (str): The hub used for online backend.
                * group (str): The group used for online backend.
                * project (str): The project used for online backend.
                * proxies (dict): Proxy configuration for the API, as a dict with
                    'urls' and credential keys.
                * verify (bool): If False, ignores SSL certificates errors.

    Returns:
        BaseProvider: the provider instance that was just registered.

    Raises:
        QISKitError: if the provider could not be registered

    .. deprecated:: 0.6+
        After 0.6, this function is deprecated. Please use the methods in
        `qiskit.IBMQ` instead (`enable_account()`) for using IBMQ
        accounts. For custom `Providers`, please instantiate them directly.
    """
    if provider_class:
        warnings.warn(
            'The global registry of providers and register() is deprecated '
            'since 0.6. Please instantiate "{}()" directly.'.format(provider_class),
            DeprecationWarning)
        return provider_class(*args, **kwargs)
    else:
        warnings.warn('register() will be deprecated after 0.6. Please use the '
                      'qiskit.IBMQ.enable_account() method instead.',
                      DeprecationWarning)

    try:
        provider = IBMQ.enable_account(*args, **kwargs)
    except Exception as ex:
        raise QISKitError("Couldn't instantiate provider! Error: {0}".format(ex))

    return provider

    Authenticate against an online backend provider.
    This is a factory method that returns the provider that gets registered.

    Args:
        args (tuple): positional arguments passed to provider class initialization
        provider_class (BaseProvider): provider class
        kwargs (dict): keyword arguments passed to provider class initialization.
            For the IBMQSingleProvider default this can include things such as:

                * token (str): The token used to register on the online backend such
                    as the quantum experience.
                * url (str): The url used for online backend such as the quantum
                    experience.
                * hub (str): The hub used for online backend.
                * group (str): The group used for online backend.
                * project (str): The project used for online backend.
                * proxies (dict): Proxy configuration for the API, as a dict with
                    'urls' and credential keys.
                * verify (bool): If False, ignores SSL certificates errors.

    Returns:
        BaseProvider: the provider instance that was just registered.

    Raises:
        QISKitError: if the provider could not be registered

    .. deprecated:: 0.6+
        After 0.6, this function is deprecated. Please use the methods in
        `qiskit.IBMQ` instead (`enable_account()`) for using IBMQ
        accounts. For custom `Providers`, please instantiate them directly.
    
Authenticate against an online backend provider.
This is a factory method that returns the provider that gets registered.
Authenticate against an online backend provider . This is a factory method that returns the provider that gets registered .
def register(*args, provider_class=None, **kwargs):
    if provider_class:
        warnings.warn(
            'The global registry of providers and register() is deprecated '
            'since 0.6. Please instantiate "{}()" directly.'.format(provider_class),
            DeprecationWarning)
        return provider_class(*args, **kwargs)
    else:
        warnings.warn('register() will be deprecated after 0.6. Please use the '
                      'qiskit.IBMQ.enable_account() method instead.',
                      DeprecationWarning)
    try:
        provider = IBMQ.enable_account(*args, **kwargs)
    except Exception as ex:
        raise QISKitError("Couldn't instantiate provider! Error: {0}".format(ex))
    return provider
def register ( * args , provider_class = None , ** kwargs ) : if provider_class : warnings . warn ( 'The global registry of providers and register() is deprecated ' 'since 0.6. Please instantiate "{}()" directly.' . format ( provider_class ) , DeprecationWarning ) return provider_class ( * args , ** kwargs ) else : warnings . warn ( 'register() will be deprecated after 0.6. Please use the ' 'qiskit.IBMQ.enable_account() method instead.' , DeprecationWarning ) try : provider = IBMQ . enable_account ( * args , ** kwargs ) except Exception as ex : raise QISKitError ( "Couldn't instantiate provider! Error: {0}" . format ( ex ) ) return provider
Authenticate against an online backend provider.
Authenticate against an online backend provider .
"""
    Authenticate against an online backend provider.
    This is a factory method that returns the provider that gets registered.

    Args:
        args (tuple): positional arguments passed to provider class initialization
        provider_class (BaseProvider): provider class
        kwargs (dict): keyword arguments passed to provider class initialization.
            For the IBMQSingleProvider default this can include things such as:

                * token (str): The token used to register on the online backend such
                    as the quantum experience.
                * url (str): The url used for online backend such as the quantum
                    experience.
                * hub (str): The hub used for online backend.
                * group (str): The group used for online backend.
                * project (str): The project used for online backend.
                * proxies (dict): Proxy configuration for the API, as a dict with
                    'urls' and credential keys.
                * verify (bool): If False, ignores SSL certificates errors.

    Returns:
        BaseProvider: the provider instance that was just registered.

    Raises:
        QISKitError: if the provider could not be registered

    .. deprecated:: 0.6+
        After 0.6, this function is deprecated. Please use the methods in
        `qiskit.IBMQ` instead (`enable_account()`) for using IBMQ
        accounts. For custom `Providers`, please instantiate them directly.
    """
the provider instance that was just registered.
the provider instance that was just registered .
BaseProvider
if the provider could not be registered
if the provider could not be registered
QISKitError
provider_class
None
args
positional arguments passed to provider class initialization
positional arguments passed to provider class initialization
kwargs
keyword arguments passed to provider class initialization.
For the IBMQSingleProvider default this can include things such as.

token (str): The token used to register on the online backend such
as the quantum experience.
url (str): The url used for online backend such as the quantum
experience.
hub (str): The hub used for online backend.
group (str): The group used for online backend.
project (str): The project used for online backend.
proxies (dict): Proxy configuration for the API, as a dict with
'urls' and credential keys.
verify (bool): If False, ignores SSL certificates errors.
keyword arguments passed to provider class initialization . For the IBMQSingleProvider default this can include things such as . token ( str ) : The token used to register on the online backend such as the quantum experience . url ( str ) : The url used for online backend such as the quantum experience . hub ( str ) : The hub used for online backend . group ( str ) : The group used for online backend . project ( str ) : The project used for online backend . proxies ( dict ) : Proxy configuration for the API as a dict with ' urls ' and credential keys . verify ( bool ) : If False ignores SSL certificates errors .