QPanda3  0.1.0
Supported by OriginQ
Loading...
Searching...
No Matches
pyqpanda3.qcloud.QCloudService Class Reference

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
 

Constructor & Destructor Documentation

◆ __init__()

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.

Parameters
[in]APIkey for accessing the cloud service.
[in]URLof the cloud service (defaults to DEFAULT_URL).

Member Function Documentation

◆ backend()

pyqpanda3.qcloud.QCloudService.backend ( self,
* args,
** kwargs )

backend(self: qcloud.QCloudService, arg0: str) -> QPanda::QCloudBackend

Retrieves a backend by its name.

Parameters
[in]backend_nameThe name of the backend.
Returns
A QCloudBackend object corresponding to the specified backend name.

◆ backends()

list[str] pyqpanda3.qcloud.QCloudService.backends ( self)

backends(self: qcloud.QCloudService) -> list[str]

Returns a list of available backend names.

Returns
A list of backend names as strings.

◆ setup_logging()

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.

Parameters
[in]outputThe log output type (default is LogOutput.CONSOLE).
[in]file_pathThe file path for saving logs, optional.

The documentation for this class was generated from the following file: