src/quantuminspire/qiskit/quantum_inspire_provider.py
def backends(self, name: Optional[str] = None, **kwargs: Any) -> List[QuantumInspireBackend]:
        """
        Provides a list of backends.

        Args:
            name: Name of the requested backend.
            **kwargs: Used for filtering, not implemented.

        Returns:
            List of backends that meet the filter requirements.
        """
        if self._api is None:
            raise ApiError('Authentication details have not been set.')

        available_backends = self._api.get_backend_types()
        if name is not None:
            available_backends = list(filter(lambda b: b['name'] == name, available_backends))
        backends = []
        for backend in available_backends:
            if backend['is_allowed']:
                config = copy(QuantumInspireBackend.DEFAULT_CONFIGURATION)
                config.backend_name = backend['name']
                backends.append(QuantumInspireBackend(self._api, provider=self, configuration=config))

        return backends

        Provides a list of backends.

        Args:
            name: Name of the requested backend.
            **kwargs: Used for filtering, not implemented.

        Returns:
            List of backends that meet the filter requirements.
        
Provides a list of backends.
Provides a list of backends .
def backends(self, name: Optional[str] = None, **kwargs: Any) -> List[QuantumInspireBackend]:
        if self._api is None:
            raise ApiError('Authentication details have not been set.')
        available_backends = self._api.get_backend_types()
        if name is not None:
            available_backends = list(filter(lambda b: b['name'] == name, available_backends))
        backends = []
        for backend in available_backends:
            if backend['is_allowed']:
                config = copy(QuantumInspireBackend.DEFAULT_CONFIGURATION)
                config.backend_name = backend['name']
                backends.append(QuantumInspireBackend(self._api, provider=self, configuration=config))
        return backends
def backends ( self , name : Optional [ str ] = None , ** kwargs : Any ) -> List [ QuantumInspireBackend ] : if self . _api is None : raise ApiError ( 'Authentication details have not been set.' ) available_backends = self . _api . get_backend_types ( ) if name is not None : available_backends = list ( filter ( lambda b : b [ 'name' ] == name , available_backends ) ) backends = [ ] for backend in available_backends : if backend [ 'is_allowed' ] : config = copy ( QuantumInspireBackend . DEFAULT_CONFIGURATION ) config . backend_name = backend [ 'name' ] backends . append ( QuantumInspireBackend ( self . _api , provider = self , configuration = config ) ) return backends
Provides a list of backends.
Provides a list of backends .
"""
        Provides a list of backends.

        Args:
            name: Name of the requested backend.
            **kwargs: Used for filtering, not implemented.

        Returns:
            List of backends that meet the filter requirements.
        """
List of backends that meet the filter requirements.
List of backends that meet the filter requirements .
self
name
Optional[str]
Name of the requested backend.
Name of the requested backend .
kwargs
Any
**kwargs
Used for filtering, not implemented.
Used for filtering not implemented .