qcs-sdk-python 0.26.0__cp313-cp313-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. README-py.md +111 -0
  2. THIRDPARTY.yaml +40894 -0
  3. qcs_sdk/__init__.py +23 -0
  4. qcs_sdk/__init__.pyi +441 -0
  5. qcs_sdk/_qcs_sdk.cp313-win_amd64.pyd +0 -0
  6. qcs_sdk/_tracing_subscriber/.stubtest-allowlist +7 -0
  7. qcs_sdk/_tracing_subscriber/__init__.py +17 -0
  8. qcs_sdk/_tracing_subscriber/__init__.pyi +131 -0
  9. qcs_sdk/_tracing_subscriber/common/__init__.py +18 -0
  10. qcs_sdk/_tracing_subscriber/common/__init__.pyi +46 -0
  11. qcs_sdk/_tracing_subscriber/layers/__init__.py +18 -0
  12. qcs_sdk/_tracing_subscriber/layers/__init__.pyi +30 -0
  13. qcs_sdk/_tracing_subscriber/layers/file/__init__.py +19 -0
  14. qcs_sdk/_tracing_subscriber/layers/file/__init__.pyi +42 -0
  15. qcs_sdk/_tracing_subscriber/layers/otel_otlp/__init__.py +18 -0
  16. qcs_sdk/_tracing_subscriber/layers/otel_otlp/__init__.pyi +118 -0
  17. qcs_sdk/_tracing_subscriber/layers/otel_otlp_file/__init__.py +18 -0
  18. qcs_sdk/_tracing_subscriber/layers/otel_otlp_file/__init__.pyi +38 -0
  19. qcs_sdk/_tracing_subscriber/subscriber/__init__.py +18 -0
  20. qcs_sdk/_tracing_subscriber/subscriber/__init__.pyi +25 -0
  21. qcs_sdk/client.pyi +124 -0
  22. qcs_sdk/compiler/__init__.pyi +5 -0
  23. qcs_sdk/compiler/quilc.pyi +316 -0
  24. qcs_sdk/diagnostics.pyi +36 -0
  25. qcs_sdk/qpu/__init__.pyi +216 -0
  26. qcs_sdk/qpu/api.pyi +484 -0
  27. qcs_sdk/qpu/experimental/__init__.pyi +5 -0
  28. qcs_sdk/qpu/experimental/random.pyi +98 -0
  29. qcs_sdk/qpu/isa.pyi +472 -0
  30. qcs_sdk/qpu/translation.pyi +180 -0
  31. qcs_sdk/qvm/__init__.pyi +162 -0
  32. qcs_sdk/qvm/api.pyi +236 -0
  33. qcs_sdk_python-0.26.0.dist-info/METADATA +130 -0
  34. qcs_sdk_python-0.26.0.dist-info/RECORD +36 -0
  35. qcs_sdk_python-0.26.0.dist-info/WHEEL +4 -0
  36. qcs_sdk_python-0.26.0.dist-info/sboms/qcs.cyclonedx.json +19204 -0
@@ -0,0 +1,46 @@
1
+ # *****************************************************************************
2
+ # * AUTO-GENERATED CODE *
3
+ # * *
4
+ # * This code was generated by the `pyo3-tracing-subscriber` crate. Any *
5
+ # * modifications to this file should be made to the script or the generation *
6
+ # * process that produced this code. Specifically, see: *
7
+ # * `pyo3_tracing_subscriber::stubs::write_stub_files` *
8
+ # * *
9
+ # * Do not manually edit this file, as your changes may be overwritten the *
10
+ # * next time the code is generated. *
11
+ # *****************************************************************************
12
+
13
+ from typing import Dict, Optional, final
14
+
15
+
16
+ @final
17
+ class InstrumentationLibrary:
18
+ """
19
+ Information about a library or crate providing instrumentation.
20
+
21
+ An instrumentation library should be named to follow any naming conventions
22
+ of the instrumented library (e.g. 'middleware' for a web framework).
23
+
24
+ See the `instrumentation libraries <https://github.com/open-telemetry/opentelemetry-specification/blob/v1.9.0/specification/overview.md#instrumentation-libraries>`_
25
+ spec for more information.
26
+ """
27
+
28
+ def __new__(
29
+ cls,
30
+ name: str,
31
+ /,
32
+ version: Optional[str] = None,
33
+ schema_url: Optional[str] = None,
34
+ attributes: Optional[Dict[str, str]] = None,
35
+ ) -> "InstrumentationLibrary":
36
+ """
37
+ Initializes a new instance of `InstrumentationLibrary`.
38
+
39
+ :param name: The name of the instrumentation library.
40
+ :param version: The version of the instrumentation library.
41
+ :param schema_url: The `schema URL <https://opentelemetry.io/docs/specs/otel/schemas/>`_ of
42
+ the instrumentation library.
43
+ :param attributes: The attributes of the instrumentation library.
44
+ """
45
+ ...
46
+
@@ -0,0 +1,18 @@
1
+ # *****************************************************************************
2
+ # * AUTO-GENERATED CODE *
3
+ # * *
4
+ # * This code was generated by the `pyo3-tracing-subscriber` crate. Any *
5
+ # * modifications to this file should be made to the script or the generation *
6
+ # * process that produced this code. Specifically, see: *
7
+ # * `pyo3_tracing_subscriber::stubs::write_stub_files` *
8
+ # * *
9
+ # * Do not manually edit this file, as your changes may be overwritten the *
10
+ # * next time the code is generated. *
11
+ # *****************************************************************************
12
+
13
+ from qcs_sdk._tracing_subscriber import layers
14
+
15
+
16
+ __doc__ = layers.__doc__
17
+ __all__ = getattr(layers, "__all__", [])
18
+
@@ -0,0 +1,30 @@
1
+ # *****************************************************************************
2
+ # * AUTO-GENERATED CODE *
3
+ # * *
4
+ # * This code was generated by the `pyo3-tracing-subscriber` crate. Any *
5
+ # * modifications to this file should be made to the script or the generation *
6
+ # * process that produced this code. Specifically, see: *
7
+ # * `pyo3_tracing_subscriber::stubs::write_stub_files` *
8
+ # * *
9
+ # * Do not manually edit this file, as your changes may be overwritten the *
10
+ # * next time the code is generated. *
11
+ # *****************************************************************************
12
+
13
+ from __future__ import annotations
14
+ from typing import TYPE_CHECKING
15
+
16
+ from . import file as file
17
+ from . import otel_otlp_file as otel_otlp_file
18
+ from . import otel_otlp as otel_otlp
19
+
20
+ if TYPE_CHECKING:
21
+ from typing import Union
22
+
23
+ Config = Union[
24
+ file.Config,
25
+ otel_otlp_file.Config,
26
+ otel_otlp.Config,
27
+ ]
28
+ """
29
+ One of the supported layer configurations that may be set on the subscriber configuration.
30
+ """
@@ -0,0 +1,19 @@
1
+ # *****************************************************************************
2
+ # * AUTO-GENERATED CODE *
3
+ # * *
4
+ # * This code was generated by the `pyo3-tracing-subscriber` crate. Any *
5
+ # * modifications to this file should be made to the script or the generation *
6
+ # * process that produced this code. Specifically, see: *
7
+ # * `pyo3_tracing_subscriber::stubs::write_stub_files` *
8
+ # * *
9
+ # * Do not manually edit this file, as your changes may be overwritten the *
10
+ # * next time the code is generated. *
11
+ # *****************************************************************************
12
+
13
+ from qcs_sdk._tracing_subscriber.layers import file
14
+
15
+
16
+ __doc__ = file.__doc__
17
+ __all__ = getattr(file, "__all__", [])
18
+
19
+
@@ -0,0 +1,42 @@
1
+ # *****************************************************************************
2
+ # * AUTO-GENERATED CODE *
3
+ # * *
4
+ # * This code was generated by the `pyo3-tracing-subscriber` crate. Any *
5
+ # * modifications to this file should be made to the script or the generation *
6
+ # * process that produced this code. Specifically, see: *
7
+ # * `pyo3_tracing_subscriber::stubs::write_stub_files` *
8
+ # * *
9
+ # * Do not manually edit this file, as your changes may be overwritten the *
10
+ # * next time the code is generated. *
11
+ # *****************************************************************************
12
+
13
+ from typing import Optional, final
14
+
15
+ @final
16
+ class Config:
17
+ """
18
+ Configuration for a
19
+ `tracing_subscriber::fmt::Layer <https://docs.rs/tracing-subscriber/latest/tracing_subscriber/fmt/struct.Layer.html>`_.
20
+ """
21
+
22
+ def __new__(
23
+ cls, file_path: Optional[str] = None, pretty: bool = False, filter: Optional[str] = None, json: bool = True
24
+ ) -> "Config":
25
+ """
26
+ Create a new `Config`.
27
+
28
+ :param file_path: The path to the file to write to. If `None`, defaults to `stdout`.
29
+ :param pretty: Whether or not to pretty-print the output. Defaults to `False`.
30
+ :param filter: A filter string to use for this layer. This uses the same format as the
31
+ `tracing_subscriber::filter::EnvFilter
32
+ <https://docs.rs/tracing-subscriber/latest/tracing_subscriber/filter/struct.EnvFilter.html>`_.
33
+ In summary, each directive takes the form `target[span{field=value}]=level`, where `target`
34
+ is roughly the Rust namespace and _only_ `level` is required.
35
+
36
+ If not specified, this will first check the `PYO3_TRACING_SUBSCRIBER_ENV_FILTER` environment
37
+ variable and then `RUST_LOG` environment variable. If all of these values are empty, no spans
38
+ will be exported.
39
+ :param json: Whether or not to format the output as JSON. Defaults to `True`.
40
+ """
41
+ ...
42
+
@@ -0,0 +1,18 @@
1
+ # *****************************************************************************
2
+ # * AUTO-GENERATED CODE *
3
+ # * *
4
+ # * This code was generated by the `pyo3-tracing-subscriber` crate. Any *
5
+ # * modifications to this file should be made to the script or the generation *
6
+ # * process that produced this code. Specifically, see: *
7
+ # * `pyo3_tracing_subscriber::stubs::write_stub_files` *
8
+ # * *
9
+ # * Do not manually edit this file, as your changes may be overwritten the *
10
+ # * next time the code is generated. *
11
+ # *****************************************************************************
12
+
13
+ from qcs_sdk._tracing_subscriber.layers import otel_otlp
14
+
15
+
16
+ __doc__ = otel_otlp.__doc__
17
+ __all__ = getattr(otel_otlp, "__all__", [])
18
+
@@ -0,0 +1,118 @@
1
+ # *****************************************************************************
2
+ # * AUTO-GENERATED CODE *
3
+ # * *
4
+ # * This code was generated by the `pyo3-tracing-subscriber` crate. Any *
5
+ # * modifications to this file should be made to the script or the generation *
6
+ # * process that produced this code. Specifically, see: *
7
+ # * `pyo3_tracing_subscriber::stubs::write_stub_files` *
8
+ # * *
9
+ # * Do not manually edit this file, as your changes may be overwritten the *
10
+ # * next time the code is generated. *
11
+ # *****************************************************************************
12
+
13
+ from __future__ import annotations
14
+ from typing import Dict, Optional, TYPE_CHECKING, final
15
+ from qcs_sdk._tracing_subscriber.common import InstrumentationLibrary
16
+
17
+ @final
18
+ class SpanLimits:
19
+ def __new__(
20
+ cls,
21
+ max_events_per_span: Optional[int] = None,
22
+ max_attributes_per_span: Optional[int] = None,
23
+ max_links_per_span: Optional[int] = None,
24
+ max_attributes_per_event: Optional[int] = None,
25
+ max_attributes_per_link: Optional[int] = None,
26
+ ) -> "SpanLimits": ...
27
+ """
28
+
29
+ :param max_events_per_span: The max events that can be added to a `Span`.
30
+ :param max_attributes_per_span: The max attributes that can be added to a `Span`.
31
+ :param max_links_per_span: The max links that can be added to a `Span`.
32
+ :param max_attributes_per_event: The max attributes that can be added to an `Event`.
33
+ :param max_attributes_per_link: The max attributes that can be added to a `Link`.
34
+ """
35
+
36
+ @final
37
+ class Resource:
38
+ """
39
+ A `Resource` is a representation of the entity producing telemetry. This should represent the Python
40
+ process starting the tracing subscription process.
41
+ """
42
+
43
+ def __new__(
44
+ cls,
45
+ attrs: Optional[Dict[str, "ResourceValue"]] = None,
46
+ schema_url: Optional[str] = None,
47
+ ) -> "Resource": ...
48
+
49
+
50
+
51
+ @final
52
+ class Config:
53
+ """
54
+ A configuration for `opentelemetry-otlp <https://docs.rs/opentelemetry-otlp/latest/opentelemetry_otlp/>`_
55
+ layer. In addition to the values specified at initialization, this configuration will also respect the
56
+ canonical `OpenTelemetry OTLP environment variables
57
+ <https://opentelemetry.io/docs/specs/otel/protocol/exporter/>`_ that are `supported by opentelemetry-otlp
58
+ <https://docs.rs/opentelemetry-otlp/latest/opentelemetry_otlp/trait.WithExportConfig.html#tymethod.with_env>`_.
59
+ """
60
+
61
+ def __new__(
62
+ cls,
63
+ span_limits: Optional[SpanLimits] = None,
64
+ resource: Optional[Resource] = None,
65
+ metadata_map: Optional[Dict[str, str]] = None,
66
+ sampler: Optional["Sampler"] = None,
67
+ endpoint: Optional[str] = None,
68
+ timeout_millis: Optional[int] = None,
69
+ pre_shutdown_timeout_millis: Optional[int] = 2000,
70
+ filter: Optional[str] = None,
71
+ instrumentation_library: Optional[InstrumentationLibrary] = None,
72
+ ) -> "Config":
73
+ """
74
+ Initializes a new `Config`.
75
+
76
+ :param span_limits: The limits to apply to span exports.
77
+ :param resource: The OpenTelemetry resource to attach to all exported spans.
78
+ :param metadata_map: A map of metadata to attach to all exported spans. This is a map of key value pairs
79
+ that may be set as gRPC metadata by the tonic library.
80
+ :param sampler: The sampling strategy to use. See documentation for `Sampler` for more information.
81
+ :param endpoint: The endpoint to export to. This should be a valid URL. If not specified, this should be
82
+ specified by environment variables (see `Config` documentation).
83
+ :param timeout_millis: The timeout for each request, in milliseconds. If not specified, this should be
84
+ specified by environment variables (see `Config` documentation).
85
+ :param pre_shutdown_timeout_millis: The timeout to wait before shutting down the OTLP exporter in milliseconds.
86
+ This timeout is necessary to ensure all traces from `tracing_subscriber` to make it to the OpenTelemetry
87
+ layer, which may be effectively force flushed. It is enforced on the `Tracing` context manager exit.
88
+ :param filter: A filter string to use for this layer. This uses the same format as the
89
+ `tracing_subscriber::filter::EnvFilter
90
+ <https://docs.rs/tracing-subscriber/latest/tracing_subscriber/filter/struct.EnvFilter.html>`_.
91
+ In summary, each directive takes the form `target[span{field=value}]=level`, where `target` is roughly the
92
+ Rust namespace and _only_ `level` is required.
93
+
94
+ If not specified, this will first check the `PYO3_TRACING_SUBSCRIBER_ENV_FILTER` environment variable
95
+ and then `RUST_LOG` environment variable. If all of these values are empty, no spans will be exported.
96
+ :param instrumentation_library: Information about the library providing the tracing instrumentation.
97
+ """
98
+ ...
99
+
100
+ if TYPE_CHECKING:
101
+ from typing import List, Union
102
+
103
+ ResourceValueArray = Union[List[bool], List[int], List[float], List[str]]
104
+ """
105
+ An array of `ResourceValue`s. This array is homogenous, so all values must be of the same type.
106
+ """
107
+
108
+ ResourceValue= Union[bool, int, float, str, ResourceValueArray]
109
+ """
110
+ A value that can be added to a `Resource`.
111
+ """
112
+
113
+ Sampler = Union[bool, float]
114
+ """
115
+ A `Sampler` is a representation of the sampling strategy to use. If this is a `bool`, it will
116
+ either sample all traces (`True`) or none of them (`False`). If this is a `float`, it will sample
117
+ traces at the given rate.
118
+ """
@@ -0,0 +1,18 @@
1
+ # *****************************************************************************
2
+ # * AUTO-GENERATED CODE *
3
+ # * *
4
+ # * This code was generated by the `pyo3-tracing-subscriber` crate. Any *
5
+ # * modifications to this file should be made to the script or the generation *
6
+ # * process that produced this code. Specifically, see: *
7
+ # * `pyo3_tracing_subscriber::stubs::write_stub_files` *
8
+ # * *
9
+ # * Do not manually edit this file, as your changes may be overwritten the *
10
+ # * next time the code is generated. *
11
+ # *****************************************************************************
12
+
13
+ from qcs_sdk._tracing_subscriber.layers import otel_otlp_file
14
+
15
+
16
+ __doc__ = otel_otlp_file.__doc__
17
+ __all__ = getattr(otel_otlp_file, "__all__", [])
18
+
@@ -0,0 +1,38 @@
1
+ # *****************************************************************************
2
+ # * AUTO-GENERATED CODE *
3
+ # * *
4
+ # * This code was generated by the `pyo3-tracing-subscriber` crate. Any *
5
+ # * modifications to this file should be made to the script or the generation *
6
+ # * process that produced this code. Specifically, see: *
7
+ # * `pyo3_tracing_subscriber::stubs::write_stub_files` *
8
+ # * *
9
+ # * Do not manually edit this file, as your changes may be overwritten the *
10
+ # * next time the code is generated. *
11
+ # *****************************************************************************
12
+
13
+ from typing import Optional, final
14
+ from qcs_sdk._tracing_subscriber.common import InstrumentationLibrary
15
+
16
+
17
+ @final
18
+ class Config:
19
+ """
20
+ A configuration for `opentelemetry-stdout <https://docs.rs/opentelemetry-stdout/latest/opentelemetry_stdout/>`_
21
+ layer.
22
+ """
23
+
24
+ def __new__(cls, file_path: Optional[str] = None, filter: Optional[str] = None, instrumentation_library: Optional[InstrumentationLibrary] = None) -> "Config":
25
+ """
26
+ :param file_path: The path to the file to write to. If not specified, defaults to stdout.
27
+ :param filter: A filter string to use for this layer. This uses the same format as the
28
+ `tracing_subscriber::filter::EnvFilter
29
+ <https://docs.rs/tracing-subscriber/latest/tracing_subscriber/filter/struct.EnvFilter.html>`_.
30
+ In summary, each directive takes the form `target[span{field=value}]=level`, where `target` is
31
+ roughly the Rust namespace and _only_ `level` is required.
32
+
33
+ If not specified, this will first check the `PYO3_TRACING_SUBSCRIBER_ENV_FILTER` environment variable
34
+ and then `RUST_LOG` environment variable. If all of these values are empty, no spans will be exported.
35
+ :param instrumentation_library: Information about the library providing the tracing instrumentation.
36
+ """
37
+ ...
38
+
@@ -0,0 +1,18 @@
1
+ # *****************************************************************************
2
+ # * AUTO-GENERATED CODE *
3
+ # * *
4
+ # * This code was generated by the `pyo3-tracing-subscriber` crate. Any *
5
+ # * modifications to this file should be made to the script or the generation *
6
+ # * process that produced this code. Specifically, see: *
7
+ # * `pyo3_tracing_subscriber::stubs::write_stub_files` *
8
+ # * *
9
+ # * Do not manually edit this file, as your changes may be overwritten the *
10
+ # * next time the code is generated. *
11
+ # *****************************************************************************
12
+
13
+ from qcs_sdk._tracing_subscriber import subscriber
14
+
15
+
16
+ __doc__ = subscriber.__doc__
17
+ __all__ = getattr(subscriber, "__all__", [])
18
+
@@ -0,0 +1,25 @@
1
+ # *****************************************************************************
2
+ # * AUTO-GENERATED CODE *
3
+ # * *
4
+ # * This code was generated by the `pyo3-tracing-subscriber` crate. Any *
5
+ # * modifications to this file should be made to the script or the generation *
6
+ # * process that produced this code. Specifically, see: *
7
+ # * `pyo3_tracing_subscriber::stubs::write_stub_files` *
8
+ # * *
9
+ # * Do not manually edit this file, as your changes may be overwritten the *
10
+ # * next time the code is generated. *
11
+ # *****************************************************************************
12
+
13
+ from typing import final
14
+
15
+ from .. import layers
16
+
17
+ @final
18
+ class Config:
19
+ """
20
+ Configuration for the tracing subscriber. Currently, this only requires a single layer to be
21
+ set on the `tracing_subscriber::Registry`.
22
+ """
23
+
24
+ def __new__(cls, layer: layers.Config | None = None) -> "Config": ...
25
+
qcs_sdk/client.pyi ADDED
@@ -0,0 +1,124 @@
1
+ # This file is automatically generated by pyo3_stub_gen
2
+ # ruff: noqa: E501, F401
3
+
4
+ import builtins
5
+ import collections.abc
6
+ import typing
7
+ from qcs_api_client_common.configuration import OAuthSession
8
+ from qcs_sdk import QcsSdkError
9
+
10
+ class BuildClientError(ClientError):
11
+ r"""
12
+ Errors encountered while building the QCS API client configuration manually.
13
+ """
14
+ ...
15
+
16
+ class ClientError(QcsSdkError):
17
+ r"""
18
+ Errors encountered while interacting with a QCS API client.
19
+ """
20
+ ...
21
+
22
+ class LoadClientError(ClientError):
23
+ r"""
24
+ Errors encountered while loading the QCS API client configuration from the environment configuration.
25
+ """
26
+ ...
27
+
28
+ @typing.final
29
+ class QCSClient:
30
+ r"""
31
+ A client providing helper functionality for accessing QCS APIs
32
+ """
33
+ @property
34
+ def api_url(self) -> builtins.str:
35
+ r"""
36
+ URL to access the QCS API.
37
+ """
38
+ @property
39
+ def grpc_api_url(self) -> builtins.str:
40
+ r"""
41
+ URL to access the QCS gRPC API.
42
+ """
43
+ @property
44
+ def oauth_session(self) -> OAuthSession:
45
+ r"""
46
+ Get a copy of the OAuth session.
47
+ """
48
+ @property
49
+ def quilc_url(self) -> builtins.str:
50
+ r"""
51
+ URL to access the ``quilc`` compiler.
52
+ """
53
+ @property
54
+ def qvm_url(self) -> builtins.str:
55
+ r"""
56
+ URL to access the QVM.
57
+ """
58
+ def __eq__(self, other: builtins.object) -> builtins.bool: ...
59
+ def __new__(cls, oauth_session: typing.Optional[OAuthSession] = None, api_url: typing.Optional[builtins.str] = None, grpc_api_url: typing.Optional[builtins.str] = None, quilc_url: typing.Optional[builtins.str] = None, qvm_url: typing.Optional[builtins.str] = None) -> QCSClient:
60
+ r"""
61
+ Manually construct a `QCSClient`.
62
+
63
+ Prefer to use `QCSClient.load` to construct an environment-based profile.
64
+ """
65
+ def get_oauth_session_async(self) -> collections.abc.Awaitable[typing.Any]:
66
+ r"""
67
+ Get a copy of the OAuth session in an async context.
68
+ """
69
+ @staticmethod
70
+ def load(profile_name: typing.Optional[builtins.str] = None) -> QCSClient:
71
+ r"""
72
+ Create a `QCSClient` configuration using an environment-based configuration.
73
+
74
+ :param `profile_name`: The QCS setting's profile name to use. If ``None``, the default value configured in your environment is used.
75
+
76
+ :raises `LoadClientError`: If there is an issue loading the profile details from the environment.
77
+ """
78
+ @staticmethod
79
+ def load_with_login(profile_name: typing.Optional[builtins.str] = None) -> QCSClient:
80
+ r"""
81
+ Create a `QCSClient` configuration using an environment-based configuration.
82
+
83
+ If credentials are not found or stale, a PKCE login redirect flow will be initialized.
84
+ Note that this opens up a TCP port on your system to accept a browser HTTP redirect,
85
+ so you should not use this in environments where that is not possible,
86
+ such as hosted `JupyterLab` sessions.
87
+
88
+ :param `profile_name`: The QCS setting's profile name to use. If ``None``, the default value configured in your environment is used.
89
+
90
+ :raises `LoadClientError`: If there is an issue loading the profile details from the environment or if the PKCE login flow fails.
91
+
92
+ See the [QCS documentation](https://docs.rigetti.com/qcs/references/qcs-client-configuration#environment-variables-and-configuration-files)
93
+ for more details.
94
+ """
95
+ @staticmethod
96
+ def load_with_login_async(profile_name: typing.Optional[builtins.str] = None) -> collections.abc.Awaitable[QCSClient]:
97
+ r"""
98
+ Create a `QCSClient` configuration using an environment-based configuration.
99
+
100
+ If credentials are not found or stale, a PKCE login redirect flow will be initialized.
101
+ Note that this opens up a TCP port on your system to accept a browser HTTP redirect,
102
+ so you should not use this in environments where that is not possible,
103
+ such as hosted `JupyterLab` sessions.
104
+
105
+ :param `profile_name`: The QCS setting's profile name to use. If ``None``, the default value configured in your environment is used.
106
+
107
+ :raises `LoadClientError`: If there is an issue loading the profile details from the environment or if the PKCE login flow fails.
108
+
109
+ See the [QCS documentation](https://docs.rigetti.com/qcs/references/qcs-client-configuration#environment-variables-and-configuration-files)
110
+ for more details.
111
+ """
112
+
113
+ class RPCQQuilcError(ClientError):
114
+ r"""
115
+ Errors when compiling with RPCQ client.
116
+ """
117
+ ...
118
+
119
+ class TokenError(ClientError):
120
+ r"""
121
+ Errors that can occur when managing authorization tokens.
122
+ """
123
+ ...
124
+
@@ -0,0 +1,5 @@
1
+ # This file is automatically generated by pyo3_stub_gen
2
+ # ruff: noqa: E501, F401
3
+
4
+ from . import quilc
5
+