@classmethod
def _get_backend_instance(cls, backend_cls):
    '\n        Return an instance of a backend from its class.\n\n        Args:\n            backend_cls (class): Backend class.\n        Returns:\n            BaseBackend: a backend instance.\n        Raises:\n            QISKitError: if the backend could not be instantiated or does not\n                provide a valid configuration containing a name.\n        '
    try:
        backend_instance = backend_cls()
    except Exception as err:
        raise QISKitError(('Backend %s could not be instantiated: %s' % (cls, err)))
    try:
        _ = backend_instance.configuration['name']
    except (LookupError, TypeError):
        raise QISKitError('Backend %s has an invalid configuration')
    return backend_instance
Return an instance of a backend from its class.

Args:
    backend_cls (class): Backend class.
Returns:
    BaseBackend: a backend instance.
Raises:
    QISKitError: if the backend could not be instantiated or does not
        provide a valid configuration containing a name.
@classmethod
def _get_backend_instance(cls, backend_cls):
    '\n        Return an instance of a backend from its class.\n\n        Args:\n            backend_cls (class): Backend class.\n        Returns:\n            BaseBackend: a backend instance.\n        Raises:\n            QISKitError: if the backend could not be instantiated or does not\n                provide a valid configuration containing a name.\n        '
    try:
        backend_instance = backend_cls()
    except Exception as err:
        raise QISKitError(('Backend %s could not be instantiated: %s' % (cls, err)))
    try:
        _ = backend_instance.configuration['name']
    except (LookupError, TypeError):
        raise QISKitError('Backend %s has an invalid configuration')
    return backend_instance