qi-compute-api-client 0.33.0__py3-none-any.whl → 0.35.0__py3-none-any.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.
Potentially problematic release.
This version of qi-compute-api-client might be problematic. Click here for more details.
- compute_api_client/__init__.py +1 -0
- compute_api_client/api/__init__.py +1 -0
- compute_api_client/api/backend_types_api.py +17 -0
- compute_api_client/api/health_api.py +290 -0
- compute_api_client/docs/BackendType.md +3 -1
- compute_api_client/docs/BackendTypesApi.md +4 -2
- compute_api_client/docs/HealthApi.md +71 -0
- compute_api_client/models/backend_type.py +7 -3
- {qi_compute_api_client-0.33.0.dist-info → qi_compute_api_client-0.35.0.dist-info}/METADATA +3 -2
- {qi_compute_api_client-0.33.0.dist-info → qi_compute_api_client-0.35.0.dist-info}/RECORD +12 -10
- {qi_compute_api_client-0.33.0.dist-info → qi_compute_api_client-0.35.0.dist-info}/LICENSE.md +0 -0
- {qi_compute_api_client-0.33.0.dist-info → qi_compute_api_client-0.35.0.dist-info}/WHEEL +0 -0
compute_api_client/__init__.py
CHANGED
|
@@ -24,6 +24,7 @@ from compute_api_client.api.batch_jobs_api import BatchJobsApi
|
|
|
24
24
|
from compute_api_client.api.commits_api import CommitsApi
|
|
25
25
|
from compute_api_client.api.files_api import FilesApi
|
|
26
26
|
from compute_api_client.api.final_results_api import FinalResultsApi
|
|
27
|
+
from compute_api_client.api.health_api import HealthApi
|
|
27
28
|
from compute_api_client.api.jobs_api import JobsApi
|
|
28
29
|
from compute_api_client.api.languages_api import LanguagesApi
|
|
29
30
|
from compute_api_client.api.members_api import MembersApi
|
|
@@ -8,6 +8,7 @@ from compute_api_client.api.batch_jobs_api import BatchJobsApi
|
|
|
8
8
|
from compute_api_client.api.commits_api import CommitsApi
|
|
9
9
|
from compute_api_client.api.files_api import FilesApi
|
|
10
10
|
from compute_api_client.api.final_results_api import FinalResultsApi
|
|
11
|
+
from compute_api_client.api.health_api import HealthApi
|
|
11
12
|
from compute_api_client.api.jobs_api import JobsApi
|
|
12
13
|
from compute_api_client.api.languages_api import LanguagesApi
|
|
13
14
|
from compute_api_client.api.members_api import MembersApi
|
|
@@ -328,6 +328,7 @@ class BackendTypesApi:
|
|
|
328
328
|
description: Optional[StrictStr] = None,
|
|
329
329
|
image_id: Optional[StrictStr] = None,
|
|
330
330
|
is_hardware: Optional[StrictBool] = None,
|
|
331
|
+
nqubits: Optional[StrictInt] = None,
|
|
331
332
|
status: Optional[BackendStatus] = None,
|
|
332
333
|
default_number_of_shots: Optional[StrictInt] = None,
|
|
333
334
|
max_number_of_shots: Optional[StrictInt] = None,
|
|
@@ -364,6 +365,8 @@ class BackendTypesApi:
|
|
|
364
365
|
:type image_id: str
|
|
365
366
|
:param is_hardware:
|
|
366
367
|
:type is_hardware: bool
|
|
368
|
+
:param nqubits:
|
|
369
|
+
:type nqubits: int
|
|
367
370
|
:param status:
|
|
368
371
|
:type status: BackendStatus
|
|
369
372
|
:param default_number_of_shots:
|
|
@@ -407,6 +410,7 @@ class BackendTypesApi:
|
|
|
407
410
|
description=description,
|
|
408
411
|
image_id=image_id,
|
|
409
412
|
is_hardware=is_hardware,
|
|
413
|
+
nqubits=nqubits,
|
|
410
414
|
status=status,
|
|
411
415
|
default_number_of_shots=default_number_of_shots,
|
|
412
416
|
max_number_of_shots=max_number_of_shots,
|
|
@@ -445,6 +449,7 @@ class BackendTypesApi:
|
|
|
445
449
|
description: Optional[StrictStr] = None,
|
|
446
450
|
image_id: Optional[StrictStr] = None,
|
|
447
451
|
is_hardware: Optional[StrictBool] = None,
|
|
452
|
+
nqubits: Optional[StrictInt] = None,
|
|
448
453
|
status: Optional[BackendStatus] = None,
|
|
449
454
|
default_number_of_shots: Optional[StrictInt] = None,
|
|
450
455
|
max_number_of_shots: Optional[StrictInt] = None,
|
|
@@ -481,6 +486,8 @@ class BackendTypesApi:
|
|
|
481
486
|
:type image_id: str
|
|
482
487
|
:param is_hardware:
|
|
483
488
|
:type is_hardware: bool
|
|
489
|
+
:param nqubits:
|
|
490
|
+
:type nqubits: int
|
|
484
491
|
:param status:
|
|
485
492
|
:type status: BackendStatus
|
|
486
493
|
:param default_number_of_shots:
|
|
@@ -524,6 +531,7 @@ class BackendTypesApi:
|
|
|
524
531
|
description=description,
|
|
525
532
|
image_id=image_id,
|
|
526
533
|
is_hardware=is_hardware,
|
|
534
|
+
nqubits=nqubits,
|
|
527
535
|
status=status,
|
|
528
536
|
default_number_of_shots=default_number_of_shots,
|
|
529
537
|
max_number_of_shots=max_number_of_shots,
|
|
@@ -562,6 +570,7 @@ class BackendTypesApi:
|
|
|
562
570
|
description: Optional[StrictStr] = None,
|
|
563
571
|
image_id: Optional[StrictStr] = None,
|
|
564
572
|
is_hardware: Optional[StrictBool] = None,
|
|
573
|
+
nqubits: Optional[StrictInt] = None,
|
|
565
574
|
status: Optional[BackendStatus] = None,
|
|
566
575
|
default_number_of_shots: Optional[StrictInt] = None,
|
|
567
576
|
max_number_of_shots: Optional[StrictInt] = None,
|
|
@@ -598,6 +607,8 @@ class BackendTypesApi:
|
|
|
598
607
|
:type image_id: str
|
|
599
608
|
:param is_hardware:
|
|
600
609
|
:type is_hardware: bool
|
|
610
|
+
:param nqubits:
|
|
611
|
+
:type nqubits: int
|
|
601
612
|
:param status:
|
|
602
613
|
:type status: BackendStatus
|
|
603
614
|
:param default_number_of_shots:
|
|
@@ -641,6 +652,7 @@ class BackendTypesApi:
|
|
|
641
652
|
description=description,
|
|
642
653
|
image_id=image_id,
|
|
643
654
|
is_hardware=is_hardware,
|
|
655
|
+
nqubits=nqubits,
|
|
644
656
|
status=status,
|
|
645
657
|
default_number_of_shots=default_number_of_shots,
|
|
646
658
|
max_number_of_shots=max_number_of_shots,
|
|
@@ -674,6 +686,7 @@ class BackendTypesApi:
|
|
|
674
686
|
description,
|
|
675
687
|
image_id,
|
|
676
688
|
is_hardware,
|
|
689
|
+
nqubits,
|
|
677
690
|
status,
|
|
678
691
|
default_number_of_shots,
|
|
679
692
|
max_number_of_shots,
|
|
@@ -726,6 +739,10 @@ class BackendTypesApi:
|
|
|
726
739
|
|
|
727
740
|
_query_params.append(('is_hardware', is_hardware))
|
|
728
741
|
|
|
742
|
+
if nqubits is not None:
|
|
743
|
+
|
|
744
|
+
_query_params.append(('nqubits', nqubits))
|
|
745
|
+
|
|
729
746
|
if status is not None:
|
|
730
747
|
|
|
731
748
|
_query_params.append(('status', status.value))
|
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Quantum Inspire 2
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import io
|
|
16
|
+
import warnings
|
|
17
|
+
|
|
18
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
19
|
+
from typing import Dict, List, Optional, Tuple, Union, Any
|
|
20
|
+
|
|
21
|
+
try:
|
|
22
|
+
from typing import Annotated
|
|
23
|
+
except ImportError:
|
|
24
|
+
from typing_extensions import Annotated
|
|
25
|
+
|
|
26
|
+
from typing import Any
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
from compute_api_client.api_client import ApiClient
|
|
30
|
+
from compute_api_client.api_response import ApiResponse
|
|
31
|
+
from compute_api_client.rest import RESTResponseType
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class HealthApi:
|
|
35
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
36
|
+
Ref: https://openapi-generator.tech
|
|
37
|
+
|
|
38
|
+
Do not edit the class manually.
|
|
39
|
+
"""
|
|
40
|
+
|
|
41
|
+
def __init__(self, api_client=None) -> None:
|
|
42
|
+
if api_client is None:
|
|
43
|
+
api_client = ApiClient.get_default()
|
|
44
|
+
self.api_client = api_client
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
@validate_call
|
|
48
|
+
async def healthz_healthz_get(
|
|
49
|
+
self,
|
|
50
|
+
_request_timeout: Union[
|
|
51
|
+
None,
|
|
52
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
53
|
+
Tuple[
|
|
54
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
55
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
56
|
+
]
|
|
57
|
+
] = None,
|
|
58
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
59
|
+
_content_type: Optional[StrictStr] = None,
|
|
60
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
61
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
62
|
+
) -> object:
|
|
63
|
+
"""Report health
|
|
64
|
+
|
|
65
|
+
Health endpoint.
|
|
66
|
+
|
|
67
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
68
|
+
number provided, it will be total request
|
|
69
|
+
timeout. It can also be a pair (tuple) of
|
|
70
|
+
(connection, read) timeouts.
|
|
71
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
72
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
73
|
+
request; this effectively ignores the
|
|
74
|
+
authentication in the spec for a single request.
|
|
75
|
+
:type _request_auth: dict, optional
|
|
76
|
+
:param _content_type: force content-type for the request.
|
|
77
|
+
:type _content_type: str, Optional
|
|
78
|
+
:param _headers: set to override the headers for a single
|
|
79
|
+
request; this effectively ignores the headers
|
|
80
|
+
in the spec for a single request.
|
|
81
|
+
:type _headers: dict, optional
|
|
82
|
+
:param _host_index: set to override the host_index for a single
|
|
83
|
+
request; this effectively ignores the host_index
|
|
84
|
+
in the spec for a single request.
|
|
85
|
+
:type _host_index: int, optional
|
|
86
|
+
:return: Returns the result object.
|
|
87
|
+
""" # noqa: E501
|
|
88
|
+
|
|
89
|
+
_param = self._healthz_healthz_get_serialize(
|
|
90
|
+
_request_auth=_request_auth,
|
|
91
|
+
_content_type=_content_type,
|
|
92
|
+
_headers=_headers,
|
|
93
|
+
_host_index=_host_index
|
|
94
|
+
)
|
|
95
|
+
|
|
96
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
97
|
+
'200': "object"
|
|
98
|
+
|
|
99
|
+
}
|
|
100
|
+
response_data = await self.api_client.call_api(
|
|
101
|
+
*_param,
|
|
102
|
+
_request_timeout=_request_timeout
|
|
103
|
+
)
|
|
104
|
+
await response_data.read()
|
|
105
|
+
return self.api_client.response_deserialize(
|
|
106
|
+
response_data=response_data,
|
|
107
|
+
response_types_map=_response_types_map,
|
|
108
|
+
).data
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
@validate_call
|
|
112
|
+
async def healthz_healthz_get_with_http_info(
|
|
113
|
+
self,
|
|
114
|
+
_request_timeout: Union[
|
|
115
|
+
None,
|
|
116
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
117
|
+
Tuple[
|
|
118
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
119
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
120
|
+
]
|
|
121
|
+
] = None,
|
|
122
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
123
|
+
_content_type: Optional[StrictStr] = None,
|
|
124
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
125
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
126
|
+
) -> ApiResponse[object]:
|
|
127
|
+
"""Report health
|
|
128
|
+
|
|
129
|
+
Health endpoint.
|
|
130
|
+
|
|
131
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
132
|
+
number provided, it will be total request
|
|
133
|
+
timeout. It can also be a pair (tuple) of
|
|
134
|
+
(connection, read) timeouts.
|
|
135
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
136
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
137
|
+
request; this effectively ignores the
|
|
138
|
+
authentication in the spec for a single request.
|
|
139
|
+
:type _request_auth: dict, optional
|
|
140
|
+
:param _content_type: force content-type for the request.
|
|
141
|
+
:type _content_type: str, Optional
|
|
142
|
+
:param _headers: set to override the headers for a single
|
|
143
|
+
request; this effectively ignores the headers
|
|
144
|
+
in the spec for a single request.
|
|
145
|
+
:type _headers: dict, optional
|
|
146
|
+
:param _host_index: set to override the host_index for a single
|
|
147
|
+
request; this effectively ignores the host_index
|
|
148
|
+
in the spec for a single request.
|
|
149
|
+
:type _host_index: int, optional
|
|
150
|
+
:return: Returns the result object.
|
|
151
|
+
""" # noqa: E501
|
|
152
|
+
|
|
153
|
+
_param = self._healthz_healthz_get_serialize(
|
|
154
|
+
_request_auth=_request_auth,
|
|
155
|
+
_content_type=_content_type,
|
|
156
|
+
_headers=_headers,
|
|
157
|
+
_host_index=_host_index
|
|
158
|
+
)
|
|
159
|
+
|
|
160
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
161
|
+
'200': "object"
|
|
162
|
+
|
|
163
|
+
}
|
|
164
|
+
response_data = await self.api_client.call_api(
|
|
165
|
+
*_param,
|
|
166
|
+
_request_timeout=_request_timeout
|
|
167
|
+
)
|
|
168
|
+
await response_data.read()
|
|
169
|
+
return self.api_client.response_deserialize(
|
|
170
|
+
response_data=response_data,
|
|
171
|
+
response_types_map=_response_types_map,
|
|
172
|
+
)
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
@validate_call
|
|
176
|
+
async def healthz_healthz_get_without_preload_content(
|
|
177
|
+
self,
|
|
178
|
+
_request_timeout: Union[
|
|
179
|
+
None,
|
|
180
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
181
|
+
Tuple[
|
|
182
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
183
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
184
|
+
]
|
|
185
|
+
] = None,
|
|
186
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
187
|
+
_content_type: Optional[StrictStr] = None,
|
|
188
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
189
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
190
|
+
) -> RESTResponseType:
|
|
191
|
+
"""Report health
|
|
192
|
+
|
|
193
|
+
Health endpoint.
|
|
194
|
+
|
|
195
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
196
|
+
number provided, it will be total request
|
|
197
|
+
timeout. It can also be a pair (tuple) of
|
|
198
|
+
(connection, read) timeouts.
|
|
199
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
200
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
201
|
+
request; this effectively ignores the
|
|
202
|
+
authentication in the spec for a single request.
|
|
203
|
+
:type _request_auth: dict, optional
|
|
204
|
+
:param _content_type: force content-type for the request.
|
|
205
|
+
:type _content_type: str, Optional
|
|
206
|
+
:param _headers: set to override the headers for a single
|
|
207
|
+
request; this effectively ignores the headers
|
|
208
|
+
in the spec for a single request.
|
|
209
|
+
:type _headers: dict, optional
|
|
210
|
+
:param _host_index: set to override the host_index for a single
|
|
211
|
+
request; this effectively ignores the host_index
|
|
212
|
+
in the spec for a single request.
|
|
213
|
+
:type _host_index: int, optional
|
|
214
|
+
:return: Returns the result object.
|
|
215
|
+
""" # noqa: E501
|
|
216
|
+
|
|
217
|
+
_param = self._healthz_healthz_get_serialize(
|
|
218
|
+
_request_auth=_request_auth,
|
|
219
|
+
_content_type=_content_type,
|
|
220
|
+
_headers=_headers,
|
|
221
|
+
_host_index=_host_index
|
|
222
|
+
)
|
|
223
|
+
|
|
224
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
225
|
+
'200': "object"
|
|
226
|
+
|
|
227
|
+
}
|
|
228
|
+
response_data = await self.api_client.call_api(
|
|
229
|
+
*_param,
|
|
230
|
+
_request_timeout=_request_timeout
|
|
231
|
+
)
|
|
232
|
+
return response_data.response
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
def _healthz_healthz_get_serialize(
|
|
236
|
+
self,
|
|
237
|
+
_request_auth,
|
|
238
|
+
_content_type,
|
|
239
|
+
_headers,
|
|
240
|
+
_host_index,
|
|
241
|
+
) -> Tuple:
|
|
242
|
+
|
|
243
|
+
_host = None
|
|
244
|
+
|
|
245
|
+
_collection_formats: Dict[str, str] = {
|
|
246
|
+
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
_path_params: Dict[str, str] = {}
|
|
250
|
+
_query_params: List[Tuple[str, str]] = []
|
|
251
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
252
|
+
_form_params: List[Tuple[str, str]] = []
|
|
253
|
+
_files: Dict[str, str] = {}
|
|
254
|
+
_body_params: Optional[bytes] = None
|
|
255
|
+
|
|
256
|
+
# process the path parameters
|
|
257
|
+
# process the query parameters
|
|
258
|
+
# process the header parameters
|
|
259
|
+
# process the form parameters
|
|
260
|
+
# process the body parameter
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
# set the HTTP header `Accept`
|
|
264
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
265
|
+
[
|
|
266
|
+
'application/json'
|
|
267
|
+
]
|
|
268
|
+
)
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
# authentication setting
|
|
272
|
+
_auth_settings: List[str] = [
|
|
273
|
+
]
|
|
274
|
+
|
|
275
|
+
return self.api_client.param_serialize(
|
|
276
|
+
method='GET',
|
|
277
|
+
resource_path='/healthz',
|
|
278
|
+
path_params=_path_params,
|
|
279
|
+
query_params=_query_params,
|
|
280
|
+
header_params=_header_params,
|
|
281
|
+
body=_body_params,
|
|
282
|
+
post_params=_form_params,
|
|
283
|
+
files=_files,
|
|
284
|
+
auth_settings=_auth_settings,
|
|
285
|
+
collection_formats=_collection_formats,
|
|
286
|
+
_host=_host,
|
|
287
|
+
_request_auth=_request_auth
|
|
288
|
+
)
|
|
289
|
+
|
|
290
|
+
|
|
@@ -12,7 +12,9 @@ Name | Type | Description | Notes
|
|
|
12
12
|
**is_hardware** | **bool** | |
|
|
13
13
|
**features** | **List[str]** | |
|
|
14
14
|
**default_compiler_config** | **object** | |
|
|
15
|
-
**
|
|
15
|
+
**gateset** | **List[str]** | |
|
|
16
|
+
**topology** | **List[List[int]]** | |
|
|
17
|
+
**nqubits** | **int** | |
|
|
16
18
|
**status** | [**BackendStatus**](BackendStatus.md) | |
|
|
17
19
|
**default_number_of_shots** | **int** | |
|
|
18
20
|
**max_number_of_shots** | **int** | |
|
|
@@ -85,7 +85,7 @@ Name | Type | Description | Notes
|
|
|
85
85
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
86
86
|
|
|
87
87
|
# **read_backend_types_backend_types_get**
|
|
88
|
-
> PageBackendType read_backend_types_backend_types_get(id=id, name=name, infrastructure=infrastructure, description=description, image_id=image_id, is_hardware=is_hardware, status=status, default_number_of_shots=default_number_of_shots, max_number_of_shots=max_number_of_shots, sort_by=sort_by, latest=latest, page=page, size=size)
|
|
88
|
+
> PageBackendType read_backend_types_backend_types_get(id=id, name=name, infrastructure=infrastructure, description=description, image_id=image_id, is_hardware=is_hardware, nqubits=nqubits, status=status, default_number_of_shots=default_number_of_shots, max_number_of_shots=max_number_of_shots, sort_by=sort_by, latest=latest, page=page, size=size)
|
|
89
89
|
|
|
90
90
|
List backend types
|
|
91
91
|
|
|
@@ -126,6 +126,7 @@ async with compute_api_client.ApiClient(configuration) as api_client:
|
|
|
126
126
|
description = 'description_example' # str | (optional)
|
|
127
127
|
image_id = 'image_id_example' # str | (optional)
|
|
128
128
|
is_hardware = True # bool | (optional)
|
|
129
|
+
nqubits = 56 # int | (optional)
|
|
129
130
|
status = compute_api_client.BackendStatus() # BackendStatus | (optional)
|
|
130
131
|
default_number_of_shots = 56 # int | (optional)
|
|
131
132
|
max_number_of_shots = 56 # int | (optional)
|
|
@@ -136,7 +137,7 @@ async with compute_api_client.ApiClient(configuration) as api_client:
|
|
|
136
137
|
|
|
137
138
|
try:
|
|
138
139
|
# List backend types
|
|
139
|
-
api_response = await api_instance.read_backend_types_backend_types_get(id=id, name=name, infrastructure=infrastructure, description=description, image_id=image_id, is_hardware=is_hardware, status=status, default_number_of_shots=default_number_of_shots, max_number_of_shots=max_number_of_shots, sort_by=sort_by, latest=latest, page=page, size=size)
|
|
140
|
+
api_response = await api_instance.read_backend_types_backend_types_get(id=id, name=name, infrastructure=infrastructure, description=description, image_id=image_id, is_hardware=is_hardware, nqubits=nqubits, status=status, default_number_of_shots=default_number_of_shots, max_number_of_shots=max_number_of_shots, sort_by=sort_by, latest=latest, page=page, size=size)
|
|
140
141
|
print("The response of BackendTypesApi->read_backend_types_backend_types_get:\n")
|
|
141
142
|
pprint(api_response)
|
|
142
143
|
except Exception as e:
|
|
@@ -155,6 +156,7 @@ Name | Type | Description | Notes
|
|
|
155
156
|
**description** | **str**| | [optional]
|
|
156
157
|
**image_id** | **str**| | [optional]
|
|
157
158
|
**is_hardware** | **bool**| | [optional]
|
|
159
|
+
**nqubits** | **int**| | [optional]
|
|
158
160
|
**status** | [**BackendStatus**](.md)| | [optional]
|
|
159
161
|
**default_number_of_shots** | **int**| | [optional]
|
|
160
162
|
**max_number_of_shots** | **int**| | [optional]
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# compute_api_client.HealthApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**healthz_healthz_get**](HealthApi.md#healthz_healthz_get) | **GET** /healthz | Report health
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
# **healthz_healthz_get**
|
|
11
|
+
> object healthz_healthz_get()
|
|
12
|
+
|
|
13
|
+
Report health
|
|
14
|
+
|
|
15
|
+
Health endpoint.
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
|
|
19
|
+
```python
|
|
20
|
+
import time
|
|
21
|
+
import os
|
|
22
|
+
import compute_api_client
|
|
23
|
+
from compute_api_client.rest import ApiException
|
|
24
|
+
from pprint import pprint
|
|
25
|
+
|
|
26
|
+
# Defining the host is optional and defaults to http://localhost
|
|
27
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
28
|
+
configuration = compute_api_client.Configuration(
|
|
29
|
+
host = "http://localhost"
|
|
30
|
+
)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
# Enter a context with an instance of the API client
|
|
34
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
35
|
+
# Create an instance of the API class
|
|
36
|
+
api_instance = compute_api_client.HealthApi(api_client)
|
|
37
|
+
|
|
38
|
+
try:
|
|
39
|
+
# Report health
|
|
40
|
+
api_response = await api_instance.healthz_healthz_get()
|
|
41
|
+
print("The response of HealthApi->healthz_healthz_get:\n")
|
|
42
|
+
pprint(api_response)
|
|
43
|
+
except Exception as e:
|
|
44
|
+
print("Exception when calling HealthApi->healthz_healthz_get: %s\n" % e)
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
### Parameters
|
|
50
|
+
This endpoint does not need any parameter.
|
|
51
|
+
|
|
52
|
+
### Return type
|
|
53
|
+
|
|
54
|
+
**object**
|
|
55
|
+
|
|
56
|
+
### Authorization
|
|
57
|
+
|
|
58
|
+
No authorization required
|
|
59
|
+
|
|
60
|
+
### HTTP request headers
|
|
61
|
+
|
|
62
|
+
- **Content-Type**: Not defined
|
|
63
|
+
- **Accept**: application/json
|
|
64
|
+
|
|
65
|
+
### HTTP response details
|
|
66
|
+
| Status code | Description | Response headers |
|
|
67
|
+
|-------------|-------------|------------------|
|
|
68
|
+
**200** | Successful Response | - |
|
|
69
|
+
|
|
70
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
71
|
+
|
|
@@ -40,11 +40,13 @@ class BackendType(BaseModel):
|
|
|
40
40
|
is_hardware: StrictBool
|
|
41
41
|
features: List[StrictStr]
|
|
42
42
|
default_compiler_config: Union[str, Any]
|
|
43
|
-
|
|
43
|
+
gateset: List[StrictStr]
|
|
44
|
+
topology: List[List[StrictInt]]
|
|
45
|
+
nqubits: StrictInt
|
|
44
46
|
status: BackendStatus
|
|
45
47
|
default_number_of_shots: StrictInt
|
|
46
48
|
max_number_of_shots: StrictInt
|
|
47
|
-
__properties: ClassVar[List[str]] = ["id", "name", "infrastructure", "description", "image_id", "is_hardware", "features", "default_compiler_config", "
|
|
49
|
+
__properties: ClassVar[List[str]] = ["id", "name", "infrastructure", "description", "image_id", "is_hardware", "features", "default_compiler_config", "gateset", "topology", "nqubits", "status", "default_number_of_shots", "max_number_of_shots"]
|
|
48
50
|
|
|
49
51
|
model_config = {
|
|
50
52
|
"populate_by_name": True,
|
|
@@ -102,7 +104,9 @@ class BackendType(BaseModel):
|
|
|
102
104
|
"is_hardware": obj.get("is_hardware"),
|
|
103
105
|
"features": obj.get("features"),
|
|
104
106
|
"default_compiler_config": obj.get("default_compiler_config"),
|
|
105
|
-
"
|
|
107
|
+
"gateset": obj.get("gateset"),
|
|
108
|
+
"topology": obj.get("topology"),
|
|
109
|
+
"nqubits": obj.get("nqubits"),
|
|
106
110
|
"status": obj.get("status"),
|
|
107
111
|
"default_number_of_shots": obj.get("default_number_of_shots"),
|
|
108
112
|
"max_number_of_shots": obj.get("max_number_of_shots")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: qi-compute-api-client
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.35.0
|
|
4
4
|
Summary: An API client for the Compute Job Manager of Quantum Inspire.
|
|
5
5
|
Home-page: https://github.com/QuTech-Delft/compute-api-client
|
|
6
6
|
License: Apache-2.0
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.10
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.11
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
-
Requires-Dist: aiohttp (>=3.
|
|
18
|
+
Requires-Dist: aiohttp (>=3.10.5,<4.0.0)
|
|
19
19
|
Requires-Dist: python-dateutil (>=2.8.2,<3.0.0)
|
|
20
20
|
Requires-Dist: urllib3 (>=1.25.3,<2.0.0)
|
|
21
21
|
Project-URL: Repository, https://github.com/QuTech-Delft/compute-api-client
|
|
@@ -123,6 +123,7 @@ Class | Method | HTTP request | Description
|
|
|
123
123
|
*FinalResultsApi* | [**create_final_result_final_results_post**](compute_api_client/docs/FinalResultsApi.md#create_final_result_final_results_post) | **POST** /final_results | Create final result
|
|
124
124
|
*FinalResultsApi* | [**read_final_result_by_job_id_final_results_job_job_id_get**](compute_api_client/docs/FinalResultsApi.md#read_final_result_by_job_id_final_results_job_job_id_get) | **GET** /final_results/job/{job_id} | Retrieve final result by job ID
|
|
125
125
|
*FinalResultsApi* | [**read_final_result_final_results_id_get**](compute_api_client/docs/FinalResultsApi.md#read_final_result_final_results_id_get) | **GET** /final_results/{id} | Retrieve final result
|
|
126
|
+
*HealthApi* | [**healthz_healthz_get**](compute_api_client/docs/HealthApi.md#healthz_healthz_get) | **GET** /healthz | Report health
|
|
126
127
|
*JobsApi* | [**create_job_jobs_post**](compute_api_client/docs/JobsApi.md#create_job_jobs_post) | **POST** /jobs | Create job
|
|
127
128
|
*JobsApi* | [**delete_job_jobs_id_delete**](compute_api_client/docs/JobsApi.md#delete_job_jobs_id_delete) | **DELETE** /jobs/{id} | Destroy job
|
|
128
129
|
*JobsApi* | [**read_job_jobs_id_get**](compute_api_client/docs/JobsApi.md#read_job_jobs_id_get) | **GET** /jobs/{id} | Retrieve job
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
compute_api_client/__init__.py,sha256=
|
|
2
|
-
compute_api_client/api/__init__.py,sha256=
|
|
1
|
+
compute_api_client/__init__.py,sha256=PPvcbRzgr9QBIFU8dThwoJSJ-3Wvvwi61xCPYGxZ2vs,6160
|
|
2
|
+
compute_api_client/api/__init__.py,sha256=r1XAqXSWdvgMGLPSoqbjUEHsf6p2tYHMg7Aejad7u24,1199
|
|
3
3
|
compute_api_client/api/algorithms_api.py,sha256=Iq3X7347R8ZsF3hDoIlEA8girl0ww_k1orMPMc6ygDE,59489
|
|
4
4
|
compute_api_client/api/backend_api.py,sha256=zNX_CYAm-6IrCuR7hlgHOCTwOkR1YQXn-3Ck9VUsCK8,57958
|
|
5
|
-
compute_api_client/api/backend_types_api.py,sha256=
|
|
5
|
+
compute_api_client/api/backend_types_api.py,sha256=RV57i8F30r4aMVYpRNaBLKtmIb0TcUikn6d82rSBuhM,30054
|
|
6
6
|
compute_api_client/api/batch_jobs_api.py,sha256=OB9EsaNpLvr80Tq3CUkNoJlwrO4CnDnVBeHne3FVJa8,83892
|
|
7
7
|
compute_api_client/api/commits_api.py,sha256=5V_qvBwjVK9ALOQ3sEgdBw0uKtypUBkhha9dQO4tGVY,46742
|
|
8
8
|
compute_api_client/api/files_api.py,sha256=N4xCc9gK17IJi-wZt9t9RCraJB6DCkHm-wAj1ZUYXlM,46808
|
|
9
9
|
compute_api_client/api/final_results_api.py,sha256=zfr4Yn44Q5KhNSHAk2aC_ZfLa1yASHHq3D3_MJ3ToNg,31894
|
|
10
|
+
compute_api_client/api/health_api.py,sha256=7oW14fRdmsHaQjlTUXMCksFb7wfmKybQhL6zqiFa2bg,10223
|
|
10
11
|
compute_api_client/api/jobs_api.py,sha256=Pr-nutBW3a7eeymnoPUJRLWrFFb_lVyRi50_k4aZv4M,62808
|
|
11
12
|
compute_api_client/api/languages_api.py,sha256=J9XI0q_60UaBfaemtV4XdgelkEDUqjx6WUTLjb-XJ4k,25756
|
|
12
13
|
compute_api_client/api/members_api.py,sha256=tCywXFQoJPF0BnJ_Da4lEyM4XD9BPLTCjYkjWkpfNAw,45684
|
|
@@ -30,8 +31,8 @@ compute_api_client/docs/BackendApi.md,sha256=KWld3mvfxlP_ZiYNSHxNNCkMSwuSnbKy9aF
|
|
|
30
31
|
compute_api_client/docs/BackendIn.md,sha256=7_drRygOUPHFWjrvAJGo7WwmcyK6EeRnlSnA6WtTCu0,978
|
|
31
32
|
compute_api_client/docs/BackendPatch.md,sha256=xET1pnI8JStGhtHm7qT-1zv7RCuKl2CUIKtYueWq72U,927
|
|
32
33
|
compute_api_client/docs/BackendStatus.md,sha256=ofnS843IHCIxoywjJJ01GP90Gn1XedAm5xR8TONmUbk,292
|
|
33
|
-
compute_api_client/docs/BackendType.md,sha256=
|
|
34
|
-
compute_api_client/docs/BackendTypesApi.md,sha256=
|
|
34
|
+
compute_api_client/docs/BackendType.md,sha256=mHhQKSZ7a-8g02F5vOsfosavoTaYcsVvw3J4ZAlNaR4,1320
|
|
35
|
+
compute_api_client/docs/BackendTypesApi.md,sha256=hfKaNCifgyNLw2p1f68ggQNmBOSsmO8TePhNkRnnJxA,7306
|
|
35
36
|
compute_api_client/docs/BackendWithAuthentication.md,sha256=u9lZh4FusMtOuV53yc0QXHdnTas-4HNC06NyDh8E1Go,1256
|
|
36
37
|
compute_api_client/docs/BatchJob.md,sha256=IozaJI2zAL1zo_zmuI-RIKvLGK68KkyW53AH4jbIaIs,1210
|
|
37
38
|
compute_api_client/docs/BatchJobIn.md,sha256=9-nP1Xgnzd5tfvo8WmandUWR8IY-2pMeZyW0HveKZEU,847
|
|
@@ -50,6 +51,7 @@ compute_api_client/docs/FinalResultIn.md,sha256=9RSstFSQ08-we_4TtoEAP1_KIq6FBdft
|
|
|
50
51
|
compute_api_client/docs/FinalResultsApi.md,sha256=V7X34yAWXZMlUBhPgC7EKhW_TXenIlhYR84PiH3kG9A,8167
|
|
51
52
|
compute_api_client/docs/HTTPNotFoundError.md,sha256=1GluS5OAVTk1qNrQwBOb29eQiNMJnCXyJk-0oKf-Rlc,936
|
|
52
53
|
compute_api_client/docs/HTTPValidationError.md,sha256=MRdybtO0HOeFCN3Zk221Q6XH6fw1Qyg8J9KLPn38tI4,1006
|
|
54
|
+
compute_api_client/docs/HealthApi.md,sha256=K1eWpfCF0AIbMsi0mAvFnIW-xjnnJvoQoyDQf7vyKEE,1825
|
|
53
55
|
compute_api_client/docs/Job.md,sha256=gXYcbGXDIqOTNuf9kHJJqmK7d9IrWIdsqLznizkrBNk,1048
|
|
54
56
|
compute_api_client/docs/JobIn.md,sha256=zN8pXLT1iGJg0o--iOfTZCm8Qj3UWApejFaASJ5AM8s,847
|
|
55
57
|
compute_api_client/docs/JobPatch.md,sha256=YadPzV_CU2oygKaaw8FJuikEo4M6QqO5uR628w1bKf4,827
|
|
@@ -114,7 +116,7 @@ compute_api_client/models/backend.py,sha256=cZ_q1zzW6t9hDF-Llu2Zm8bgVQLvef0qFWLI
|
|
|
114
116
|
compute_api_client/models/backend_in.py,sha256=9XK17112GvDxH2jAJpedX7z4kQ4oNr14EsCQ5dmGsEk,2957
|
|
115
117
|
compute_api_client/models/backend_patch.py,sha256=QMKRJkxMIRiIc4dFQscqIJFe5zgCU11cm_6d_rnKOaE,2556
|
|
116
118
|
compute_api_client/models/backend_status.py,sha256=kLo5B4ZGtYuzRRADnxAdxeurPJYD_0TzJq69rYAnWGA,918
|
|
117
|
-
compute_api_client/models/backend_type.py,sha256=
|
|
119
|
+
compute_api_client/models/backend_type.py,sha256=pmWZ5eB04Ol_dLlA9BMoPfo9pq8QYIxj9_ruvIkkfzs,3895
|
|
118
120
|
compute_api_client/models/backend_with_authentication.py,sha256=Zc62u-GsghnQnWu8KYAqNcF9WA60uPYxqMnGtYeJkdc,3243
|
|
119
121
|
compute_api_client/models/batch_job.py,sha256=OWedWfSa23U5qDT9SELxtHdrQEuSlDbdhcMCC9bIa58,4388
|
|
120
122
|
compute_api_client/models/batch_job_in.py,sha256=K2HVli0JZyLf_sVQbP6J7b5PyQUAwM6TbFpPTEbEdmY,2391
|
|
@@ -174,7 +176,7 @@ compute_api_client/models/user.py,sha256=WD1QyiqRlyObnK61QRE2NUCyY5Oc9ejeNcOGopm
|
|
|
174
176
|
compute_api_client/models/user_in.py,sha256=gMWrBylb3ihoc-bm-K7AG9w3iWGn_ROV14wZnGlJU30,3330
|
|
175
177
|
compute_api_client/models/validation_error.py,sha256=HWliEU5aNn3CkND3c0MxJf0D8bUJmE3HKncfUCKDk5o,2941
|
|
176
178
|
compute_api_client/rest.py,sha256=-N7fantOYHH5Ot97NOHm2ouAUuw4kdqbnOvCtf25H7g,5836
|
|
177
|
-
qi_compute_api_client-0.
|
|
178
|
-
qi_compute_api_client-0.
|
|
179
|
-
qi_compute_api_client-0.
|
|
180
|
-
qi_compute_api_client-0.
|
|
179
|
+
qi_compute_api_client-0.35.0.dist-info/LICENSE.md,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
180
|
+
qi_compute_api_client-0.35.0.dist-info/METADATA,sha256=5wmg_Z6ssa8h71E--c_nmn71B382FG-rSmMFp-CcCrw,19940
|
|
181
|
+
qi_compute_api_client-0.35.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
182
|
+
qi_compute_api_client-0.35.0.dist-info/RECORD,,
|
{qi_compute_api_client-0.33.0.dist-info → qi_compute_api_client-0.35.0.dist-info}/LICENSE.md
RENAMED
|
File without changes
|
|
File without changes
|