QPanda3
0.1.0
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) -> QPanda::QCloudBackend | |
list[str] | backends (self) |
backends(self: qcloud.QCloudService) -> list[str] | |
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.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.QCloudService.backend | ( | self, | |
* | args, | ||
** | kwargs ) |
backend(self: qcloud.QCloudService, arg0: str) -> QPanda::QCloudBackend
Retrieves a backend by its name.
[in] | backend_name | The name of the backend. |
list[str] pyqpanda3.qcloud.QCloudService.backends | ( | self | ) |
backends(self: qcloud.QCloudService) -> list[str]
Returns a list of available backend names.
None pyqpanda3.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. |