コード例 #1
0
ファイル: _controller.py プロジェクト: kifumi/aqua-chemistry
 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
コード例 #2
0
 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