def _get_available_backends(self): try: self._available_backends = QuantumAlgorithm.register_and_get_operational_backends( ) except Exception as e: logger.debug(str(e)) finally: self._backendsthread = None
def _get_available_backends(self): try: qconfig = get_qconfig() if qconfig is None or \ qconfig.APItoken is None or \ len(qconfig.APItoken) == 0 or \ 'url' not in qconfig.config: qconfig = None self._available_backends = QuantumAlgorithm.register_and_get_operational_backends(qconfig) except Exception as e: logger.debug(str(e)) finally: self._backendsthread = None