qcs_sdk.client
class
QCSClient:
Configuration for connecting and authenticating to QCS APIs and resources.
QCSClient( tokens: Optional[qcs_sdk.client.QCSClientTokens] = None, api_url: Optional[str] = None, auth_server: Optional[qcs_sdk.client.QCSClientAuthServer] = None, grpc_api_url: Optional[str] = None, quilc_url: Optional[str] = None, qvm_url: Optional[str] = None)
Manually construct a QCSClient
.
Prefer to use QCSClient.load
to construct an environment-based profile.
Create a QCSClient
configuration using an environment-based configuration.
Parameters
- profile_name: The QCS setting's profile name to use. If
None
, the default value configured in your environment is used.
Raises
LoadClientError
: If there is an issue loading the profile defails from the environment.
See the QCS documentation for more details.
Create a QCSClient
configuration using an environment-based configuration.
(async analog of QCSClient.load
)
Parameters
- profile_name: The QCS setting's profile name to use. If
None
, the default value configured in your environment is used.
Raises
LoadClientError
: If there is an issue loading the profile defails from the environment.
See the QCS documentation for more details.
class
QCSClientAuthServer:
Authentication server configuration for the QCS API.
class
QCSClientTokens:
Authentication tokens for the QCS API.
class
LoadClientError(builtins.RuntimeError):
Error encountered while loading the QCS API client configuration from the environment configuration.
Inherited Members
- builtins.RuntimeError
- RuntimeError
- builtins.BaseException
- with_traceback
- add_note
- args
class
BuildClientError(builtins.RuntimeError):
Error encountered while building the QCS API client configuration manually.
Inherited Members
- builtins.RuntimeError
- RuntimeError
- builtins.BaseException
- with_traceback
- add_note
- args