![]() |
QPanda3
Supported by OriginQ
|
Public Member Functions | |
| None | __init__ (self, str api_key, str url=...) |
| init(self: qcloud.QCloudService, api_key: str, url: str = 'http://pyqanda-admin.qpanda.cn') -> None | |
| backend (self, *args, **kwargs) | |
| backend(self: qcloud.QCloudService, arg0: str) -> QPanda3::QCloudBackend | |
| dict[str, bool] | backends (self) |
| backends(self: qcloud.QCloudService) -> dict[str, bool] | |
| None | setup_logging (self, LogOutput output=..., str file_path=...) |
| setup_logging(self: qcloud.QCloudService, output: qcloud.LogOutput = <LogOutput.CONSOLE: 0>, file_path: str = '') -> None | |
| None pyqpanda3.qcloud.qcloud.QCloudService.__init__ | ( | self, | |
| str | api_key, | ||
| str | url = ... ) |
init(self: qcloud.QCloudService, api_key: str, url: str = 'http://pyqanda-admin.qpanda.cn') -> None
Initializes a QCloudService.
| [in] | API | key for accessing the cloud service. |
| [in] | URL | of the cloud service (defaults to DEFAULT_URL). |
| pyqpanda3.qcloud.qcloud.QCloudService.backend | ( | self, | |
| * | args, | ||
| ** | kwargs ) |
backend(self: qcloud.QCloudService, arg0: str) -> QPanda3::QCloudBackend
Retrieves a backend by its name.
| [in] | backend_name | The name of the backend. |
| dict[str, bool] pyqpanda3.qcloud.qcloud.QCloudService.backends | ( | self | ) |
backends(self: qcloud.QCloudService) -> dict[str, bool]
Returns a list of available backend names.
| None pyqpanda3.qcloud.qcloud.QCloudService.setup_logging | ( | self, | |
| LogOutput | output = ..., | ||
| str | file_path = ... ) |
setup_logging(self: qcloud.QCloudService, output: qcloud.LogOutput = <LogOutput.CONSOLE: 0>, file_path: str = '') -> None
Sets up the logging configuration.
| [in] | output | The log output type (default is LogOutput.CONSOLE). |
| [in] | file_path | The file path for saving logs, optional. |