Skip to content

Commit ab6bcc8

Browse files
committed
[QI2-1248] Raw data
1 parent 336428d commit ab6bcc8

File tree

19 files changed

+107
-21
lines changed

19 files changed

+107
-21
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ Authentication schemes defined for the API:
226226

227227
- **Type**: OAuth
228228
- **Flow**: accessCode
229-
- **Authorization URL**: https://auth.qi2.quantum-inspire.com/realms/oidc_staging/protocol/openid-connect/auth
229+
- **Authorization URL**: https://auth.qi2.quantum-inspire.com/realms/oidc_development/protocol/openid-connect/auth
230230
- **Scopes**: N/A
231231

232232
<a id="backend"></a>

compute_api_client/api/backend_types_api.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,7 @@ async def read_backend_types_backend_types_get(
328328
description: Optional[StrictStr] = None,
329329
image_id: Optional[StrictStr] = None,
330330
is_hardware: Optional[StrictBool] = None,
331+
supports_raw_data: Optional[StrictBool] = None,
331332
nqubits: Optional[StrictInt] = None,
332333
status: Optional[BackendStatus] = None,
333334
default_number_of_shots: Optional[StrictInt] = None,
@@ -365,6 +366,8 @@ async def read_backend_types_backend_types_get(
365366
:type image_id: str
366367
:param is_hardware:
367368
:type is_hardware: bool
369+
:param supports_raw_data:
370+
:type supports_raw_data: bool
368371
:param nqubits:
369372
:type nqubits: int
370373
:param status:
@@ -410,6 +413,7 @@ async def read_backend_types_backend_types_get(
410413
description=description,
411414
image_id=image_id,
412415
is_hardware=is_hardware,
416+
supports_raw_data=supports_raw_data,
413417
nqubits=nqubits,
414418
status=status,
415419
default_number_of_shots=default_number_of_shots,
@@ -449,6 +453,7 @@ async def read_backend_types_backend_types_get_with_http_info(
449453
description: Optional[StrictStr] = None,
450454
image_id: Optional[StrictStr] = None,
451455
is_hardware: Optional[StrictBool] = None,
456+
supports_raw_data: Optional[StrictBool] = None,
452457
nqubits: Optional[StrictInt] = None,
453458
status: Optional[BackendStatus] = None,
454459
default_number_of_shots: Optional[StrictInt] = None,
@@ -486,6 +491,8 @@ async def read_backend_types_backend_types_get_with_http_info(
486491
:type image_id: str
487492
:param is_hardware:
488493
:type is_hardware: bool
494+
:param supports_raw_data:
495+
:type supports_raw_data: bool
489496
:param nqubits:
490497
:type nqubits: int
491498
:param status:
@@ -531,6 +538,7 @@ async def read_backend_types_backend_types_get_with_http_info(
531538
description=description,
532539
image_id=image_id,
533540
is_hardware=is_hardware,
541+
supports_raw_data=supports_raw_data,
534542
nqubits=nqubits,
535543
status=status,
536544
default_number_of_shots=default_number_of_shots,
@@ -570,6 +578,7 @@ async def read_backend_types_backend_types_get_without_preload_content(
570578
description: Optional[StrictStr] = None,
571579
image_id: Optional[StrictStr] = None,
572580
is_hardware: Optional[StrictBool] = None,
581+
supports_raw_data: Optional[StrictBool] = None,
573582
nqubits: Optional[StrictInt] = None,
574583
status: Optional[BackendStatus] = None,
575584
default_number_of_shots: Optional[StrictInt] = None,
@@ -607,6 +616,8 @@ async def read_backend_types_backend_types_get_without_preload_content(
607616
:type image_id: str
608617
:param is_hardware:
609618
:type is_hardware: bool
619+
:param supports_raw_data:
620+
:type supports_raw_data: bool
610621
:param nqubits:
611622
:type nqubits: int
612623
:param status:
@@ -652,6 +663,7 @@ async def read_backend_types_backend_types_get_without_preload_content(
652663
description=description,
653664
image_id=image_id,
654665
is_hardware=is_hardware,
666+
supports_raw_data=supports_raw_data,
655667
nqubits=nqubits,
656668
status=status,
657669
default_number_of_shots=default_number_of_shots,
@@ -686,6 +698,7 @@ def _read_backend_types_backend_types_get_serialize(
686698
description,
687699
image_id,
688700
is_hardware,
701+
supports_raw_data,
689702
nqubits,
690703
status,
691704
default_number_of_shots,
@@ -739,6 +752,10 @@ def _read_backend_types_backend_types_get_serialize(
739752

740753
_query_params.append(('is_hardware', is_hardware))
741754

755+
if supports_raw_data is not None:
756+
757+
_query_params.append(('supports_raw_data', supports_raw_data))
758+
742759
if nqubits is not None:
743760

744761
_query_params.append(('nqubits', nqubits))

compute_api_client/api/jobs_api.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -877,6 +877,7 @@ async def read_jobs_jobs_get(
877877
finished_at: Optional[datetime] = None,
878878
number_of_shots__isnull: Optional[StrictBool] = None,
879879
number_of_shots: Optional[StrictInt] = None,
880+
raw_data_enabled: Optional[StrictBool] = None,
880881
sort_by: Annotated[Optional[StrictStr], Field(description="The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.")] = None,
881882
latest: Annotated[Optional[StrictBool], Field(description="If True gets the most recently created object.")] = None,
882883
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
@@ -922,6 +923,8 @@ async def read_jobs_jobs_get(
922923
:type number_of_shots__isnull: bool
923924
:param number_of_shots:
924925
:type number_of_shots: int
926+
:param raw_data_enabled:
927+
:type raw_data_enabled: bool
925928
:param sort_by: The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.
926929
:type sort_by: str
927930
:param latest: If True gets the most recently created object.
@@ -965,6 +968,7 @@ async def read_jobs_jobs_get(
965968
finished_at=finished_at,
966969
number_of_shots__isnull=number_of_shots__isnull,
967970
number_of_shots=number_of_shots,
971+
raw_data_enabled=raw_data_enabled,
968972
sort_by=sort_by,
969973
latest=latest,
970974
page=page,
@@ -1006,6 +1010,7 @@ async def read_jobs_jobs_get_with_http_info(
10061010
finished_at: Optional[datetime] = None,
10071011
number_of_shots__isnull: Optional[StrictBool] = None,
10081012
number_of_shots: Optional[StrictInt] = None,
1013+
raw_data_enabled: Optional[StrictBool] = None,
10091014
sort_by: Annotated[Optional[StrictStr], Field(description="The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.")] = None,
10101015
latest: Annotated[Optional[StrictBool], Field(description="If True gets the most recently created object.")] = None,
10111016
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
@@ -1051,6 +1056,8 @@ async def read_jobs_jobs_get_with_http_info(
10511056
:type number_of_shots__isnull: bool
10521057
:param number_of_shots:
10531058
:type number_of_shots: int
1059+
:param raw_data_enabled:
1060+
:type raw_data_enabled: bool
10541061
:param sort_by: The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.
10551062
:type sort_by: str
10561063
:param latest: If True gets the most recently created object.
@@ -1094,6 +1101,7 @@ async def read_jobs_jobs_get_with_http_info(
10941101
finished_at=finished_at,
10951102
number_of_shots__isnull=number_of_shots__isnull,
10961103
number_of_shots=number_of_shots,
1104+
raw_data_enabled=raw_data_enabled,
10971105
sort_by=sort_by,
10981106
latest=latest,
10991107
page=page,
@@ -1135,6 +1143,7 @@ async def read_jobs_jobs_get_without_preload_content(
11351143
finished_at: Optional[datetime] = None,
11361144
number_of_shots__isnull: Optional[StrictBool] = None,
11371145
number_of_shots: Optional[StrictInt] = None,
1146+
raw_data_enabled: Optional[StrictBool] = None,
11381147
sort_by: Annotated[Optional[StrictStr], Field(description="The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.")] = None,
11391148
latest: Annotated[Optional[StrictBool], Field(description="If True gets the most recently created object.")] = None,
11401149
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
@@ -1180,6 +1189,8 @@ async def read_jobs_jobs_get_without_preload_content(
11801189
:type number_of_shots__isnull: bool
11811190
:param number_of_shots:
11821191
:type number_of_shots: int
1192+
:param raw_data_enabled:
1193+
:type raw_data_enabled: bool
11831194
:param sort_by: The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.
11841195
:type sort_by: str
11851196
:param latest: If True gets the most recently created object.
@@ -1223,6 +1234,7 @@ async def read_jobs_jobs_get_without_preload_content(
12231234
finished_at=finished_at,
12241235
number_of_shots__isnull=number_of_shots__isnull,
12251236
number_of_shots=number_of_shots,
1237+
raw_data_enabled=raw_data_enabled,
12261238
sort_by=sort_by,
12271239
latest=latest,
12281240
page=page,
@@ -1259,6 +1271,7 @@ def _read_jobs_jobs_get_serialize(
12591271
finished_at,
12601272
number_of_shots__isnull,
12611273
number_of_shots,
1274+
raw_data_enabled,
12621275
sort_by,
12631276
latest,
12641277
page,
@@ -1359,6 +1372,10 @@ def _read_jobs_jobs_get_serialize(
13591372

13601373
_query_params.append(('number_of_shots', number_of_shots))
13611374

1375+
if raw_data_enabled is not None:
1376+
1377+
_query_params.append(('raw_data_enabled', raw_data_enabled))
1378+
13621379
if sort_by is not None:
13631380

13641381
_query_params.append(('sort_by', sort_by))

compute_api_client/api/results_api.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -872,6 +872,7 @@ async def read_results_by_algorithm_id_results_algorithm_algorithm_id_get(
872872
shots_done__isnull: Optional[StrictBool] = None,
873873
shots_done: Optional[StrictInt] = None,
874874
results__isnull: Optional[StrictBool] = None,
875+
raw_data__isnull: Optional[StrictBool] = None,
875876
sort_by: Annotated[Optional[StrictStr], Field(description="The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.")] = None,
876877
latest: Annotated[Optional[StrictBool], Field(description="If True gets the most recently created object.")] = None,
877878
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
@@ -915,6 +916,8 @@ async def read_results_by_algorithm_id_results_algorithm_algorithm_id_get(
915916
:type shots_done: int
916917
:param results__isnull:
917918
:type results__isnull: bool
919+
:param raw_data__isnull:
920+
:type raw_data__isnull: bool
918921
:param sort_by: The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.
919922
:type sort_by: str
920923
:param latest: If True gets the most recently created object.
@@ -957,6 +960,7 @@ async def read_results_by_algorithm_id_results_algorithm_algorithm_id_get(
957960
shots_done__isnull=shots_done__isnull,
958961
shots_done=shots_done,
959962
results__isnull=results__isnull,
963+
raw_data__isnull=raw_data__isnull,
960964
sort_by=sort_by,
961965
latest=latest,
962966
page=page,
@@ -998,6 +1002,7 @@ async def read_results_by_algorithm_id_results_algorithm_algorithm_id_get_with_h
9981002
shots_done__isnull: Optional[StrictBool] = None,
9991003
shots_done: Optional[StrictInt] = None,
10001004
results__isnull: Optional[StrictBool] = None,
1005+
raw_data__isnull: Optional[StrictBool] = None,
10011006
sort_by: Annotated[Optional[StrictStr], Field(description="The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.")] = None,
10021007
latest: Annotated[Optional[StrictBool], Field(description="If True gets the most recently created object.")] = None,
10031008
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
@@ -1041,6 +1046,8 @@ async def read_results_by_algorithm_id_results_algorithm_algorithm_id_get_with_h
10411046
:type shots_done: int
10421047
:param results__isnull:
10431048
:type results__isnull: bool
1049+
:param raw_data__isnull:
1050+
:type raw_data__isnull: bool
10441051
:param sort_by: The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.
10451052
:type sort_by: str
10461053
:param latest: If True gets the most recently created object.
@@ -1083,6 +1090,7 @@ async def read_results_by_algorithm_id_results_algorithm_algorithm_id_get_with_h
10831090
shots_done__isnull=shots_done__isnull,
10841091
shots_done=shots_done,
10851092
results__isnull=results__isnull,
1093+
raw_data__isnull=raw_data__isnull,
10861094
sort_by=sort_by,
10871095
latest=latest,
10881096
page=page,
@@ -1124,6 +1132,7 @@ async def read_results_by_algorithm_id_results_algorithm_algorithm_id_get_withou
11241132
shots_done__isnull: Optional[StrictBool] = None,
11251133
shots_done: Optional[StrictInt] = None,
11261134
results__isnull: Optional[StrictBool] = None,
1135+
raw_data__isnull: Optional[StrictBool] = None,
11271136
sort_by: Annotated[Optional[StrictStr], Field(description="The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.")] = None,
11281137
latest: Annotated[Optional[StrictBool], Field(description="If True gets the most recently created object.")] = None,
11291138
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
@@ -1167,6 +1176,8 @@ async def read_results_by_algorithm_id_results_algorithm_algorithm_id_get_withou
11671176
:type shots_done: int
11681177
:param results__isnull:
11691178
:type results__isnull: bool
1179+
:param raw_data__isnull:
1180+
:type raw_data__isnull: bool
11701181
:param sort_by: The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.
11711182
:type sort_by: str
11721183
:param latest: If True gets the most recently created object.
@@ -1209,6 +1220,7 @@ async def read_results_by_algorithm_id_results_algorithm_algorithm_id_get_withou
12091220
shots_done__isnull=shots_done__isnull,
12101221
shots_done=shots_done,
12111222
results__isnull=results__isnull,
1223+
raw_data__isnull=raw_data__isnull,
12121224
sort_by=sort_by,
12131225
latest=latest,
12141226
page=page,
@@ -1245,6 +1257,7 @@ def _read_results_by_algorithm_id_results_algorithm_algorithm_id_get_serialize(
12451257
shots_done__isnull,
12461258
shots_done,
12471259
results__isnull,
1260+
raw_data__isnull,
12481261
sort_by,
12491262
latest,
12501263
page,
@@ -1321,6 +1334,10 @@ def _read_results_by_algorithm_id_results_algorithm_algorithm_id_get_serialize(
13211334

13221335
_query_params.append(('results__isnull', results__isnull))
13231336

1337+
if raw_data__isnull is not None:
1338+
1339+
_query_params.append(('raw_data__isnull', raw_data__isnull))
1340+
13241341
if sort_by is not None:
13251342

13261343
_query_params.append(('sort_by', sort_by))

compute_api_client/docs/BackendType.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
1010
**description** | **str** | |
1111
**image_id** | **str** | |
1212
**is_hardware** | **bool** | |
13+
**supports_raw_data** | **bool** | |
1314
**features** | **List[str]** | |
1415
**default_compiler_config** | **object** | |
1516
**gateset** | **List[str]** | |

compute_api_client/docs/BackendTypesApi.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Name | Type | Description | Notes
8585
[[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)
8686

8787
# **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, 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)
88+
> PageBackendType read_backend_types_backend_types_get(id=id, name=name, infrastructure=infrastructure, description=description, image_id=image_id, is_hardware=is_hardware, supports_raw_data=supports_raw_data, 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)
8989
9090
List backend types
9191

@@ -119,6 +119,7 @@ async with compute_api_client.ApiClient(configuration) as api_client:
119119
description = 'description_example' # str | (optional)
120120
image_id = 'image_id_example' # str | (optional)
121121
is_hardware = True # bool | (optional)
122+
supports_raw_data = True # bool | (optional)
122123
nqubits = 56 # int | (optional)
123124
status = compute_api_client.BackendStatus() # BackendStatus | (optional)
124125
default_number_of_shots = 56 # int | (optional)
@@ -130,7 +131,7 @@ async with compute_api_client.ApiClient(configuration) as api_client:
130131

131132
try:
132133
# List backend types
133-
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)
134+
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, supports_raw_data=supports_raw_data, 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)
134135
print("The response of BackendTypesApi->read_backend_types_backend_types_get:\n")
135136
pprint(api_response)
136137
except Exception as e:
@@ -149,6 +150,7 @@ Name | Type | Description | Notes
149150
**description** | **str**| | [optional]
150151
**image_id** | **str**| | [optional]
151152
**is_hardware** | **bool**| | [optional]
153+
**supports_raw_data** | **bool**| | [optional]
152154
**nqubits** | **int**| | [optional]
153155
**status** | [**BackendStatus**](.md)| | [optional]
154156
**default_number_of_shots** | **int**| | [optional]

compute_api_client/docs/Job.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
1313
**queued_at** | **datetime** | |
1414
**finished_at** | **datetime** | |
1515
**number_of_shots** | **int** | |
16+
**raw_data_enabled** | **bool** | |
1617

1718
## Example
1819

compute_api_client/docs/JobIn.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
77
**file_id** | **int** | |
88
**batch_job_id** | **int** | |
99
**number_of_shots** | **int** | | [optional]
10+
**raw_data_enabled** | **bool** | | [optional] [default to False]
1011

1112
## Example
1213

0 commit comments

Comments
 (0)