1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
# This file is automatically generated by pyo3_stub_gen
# ruff: noqa: E501, F401
r"""
Options for compiling programs through the Q-CTRL API.
Options here are specially authorized and are not generally available to the client.
"""
...
r"""
Options for configuring Riverlane features prior to execution.
Options here are specially authorized and are not generally available to the client.
"""
...
r"""
Errors raised due to failure to translate a program.
"""
...
r"""
Options available for Quil program translation.
This wraps [`ApiTranslationOptions`] in order to improve the user experience,
because the structs auto-generated by `prost` can be clumsy to use directly.
"""
r"""
Get the backend used for translation
"""
...
r"""
Implements `__repr__` for Python in terms of the Rust
[`Debug`](std::fmt::Debug) implementation.
"""
r"""
Serialize these translation options into the Protocol Buffer format.
"""
r"""
Use the first-generation translation backend available on QCS since 2018.
"""
r"""
Use the second-generation translation backend available on QCS since 2023.
"""
r"""
Compile the program through Q-CTRL's API prior to translation.
The client should generally leave the `q_ctrl` compile options unset
as it is specially authorized and not generally available.
"""
r"""
Configure Riverlane features prior to execution.
Options here are specially authorized and are not generally available to the client.
"""
r"""
Use the v1 backend for translation, available on QCS since 2018.
"""
r"""
Use the v2 backend for translation, available on QCS since 2023.
:param `prepend_default_calibrations`: If False, do not prepend the default calibrations to the translated program.
:param `passive_reset_delay_seconds`: The delay between passive resets, in seconds.
:param `allow_unchecked_pointer_arithmetic`: If True, disable runtime memory bounds checking. Only available to certain users.
:param `allow_frame_redefinition`: If True, allow defined frames to differ from Rigetti defaults. Only available to certain users. Otherwise, only ``INITIAL-FREQUENCY`` and ``CHANNEL-DELAY`` may be modified.
"""
r"""
The result of a call to [`translate`] which provides information about the translated program.
"""
r"""
The translated program.
"""
r"""
A mapping from the program's memory references to the key used to index the results map.
"""
r"""
The backend used for translation.
"""
= ...
r"""
The first-generation translation backend available on QCS since 2018.
"""
= ...
r"""
The second-generation translation backend available on QCS since 2023.
"""
r"""
Retrieve the calibration data used for client-side Quil-T generation.
:param `quantum_processor_id`: The ID of the quantum processor.
:param `client`: The ``Qcs`` client to use. Creates one using environment configuration if unset - see https://docs.rigetti.com/qcs/references/qcs-client-configuration
:param `timeout`: Maximum duration to wait for API calls to complete, in seconds. Defaults to 10 seconds.
:returns: The Quil calibration program for the requested quantum processor.
:raises `LoadClientError`: If there is an issue loading the QCS Client configuration.
:raises `TranslationError`: If there was a problem fetching Quil-T calibrations.
"""
r"""
Retrieve the calibration data used for client-side Quil-T generation.
:param `quantum_processor_id`: The ID of the quantum processor.
:param `client`: The ``Qcs`` client to use. Creates one using environment configuration if unset - see https://docs.rigetti.com/qcs/references/qcs-client-configuration
:param `timeout`: Maximum duration to wait for API calls to complete, in seconds. Defaults to 10 seconds.
:returns: The Quil calibration program for the requested quantum processor.
:raises `LoadClientError`: If there is an issue loading the QCS Client configuration.
:raises `TranslationError`: If there was a problem fetching Quil-T calibrations.
"""
r"""
Translates a native Quil program into an executable program.
:param `native_quil`: A Quil program.
:param `num_shots`: The number of shots to perform.
:param `quantum_processor_id`: The ID of the quantum processor the executable will run on (e.g. "Aspen-M-2").
:param `client`: The ``Qcs`` client to use. Creates one using environment configuration if unset - see https://docs.rigetti.com/qcs/references/qcs-client-configuration
:param `translation_options`: Optional translation options.
:raises `LoadClientError`: If there is an issue loading the QCS Client configuration.
:raises `TranslationError`: If the `native_quil` program could not be translated.
"""
r"""
Translates a native Quil program into an executable program.
:param `native_quil`: A Quil program.
:param `num_shots`: The number of shots to perform.
:param `quantum_processor_id`: The ID of the quantum processor the executable will run on (e.g. "Aspen-M-2").
:param `client`: The ``Qcs`` client to use. Creates one using environment configuration if unset - see https://docs.rigetti.com/qcs/references/qcs-client-configuration
:param `translation_options`: Optional translation options.
:raises `LoadClientError`: If there is an issue loading the QCS Client configuration.
:raises `TranslationError`: If the `native_quil` program could not be translated.
"""