qi-compute-api-client 0.52.0__py3-none-any.whl → 0.53.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.

@@ -337,6 +337,8 @@ class BackendTypesApi:
337
337
  max_number_of_shots: Optional[StrictInt] = None,
338
338
  enabled: Optional[StrictBool] = None,
339
339
  identifier: Optional[StrictStr] = None,
340
+ protocol_version__isnull: Optional[StrictBool] = None,
341
+ protocol_version: Optional[StrictInt] = None,
340
342
  sort_by: Annotated[Optional[StrictStr], Field(description="The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.")] = None,
341
343
  latest: Annotated[Optional[StrictBool], Field(description="If True gets the most recently created object.")] = None,
342
344
  page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
@@ -384,6 +386,10 @@ class BackendTypesApi:
384
386
  :type enabled: bool
385
387
  :param identifier:
386
388
  :type identifier: str
389
+ :param protocol_version__isnull:
390
+ :type protocol_version__isnull: bool
391
+ :param protocol_version:
392
+ :type protocol_version: int
387
393
  :param sort_by: The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.
388
394
  :type sort_by: str
389
395
  :param latest: If True gets the most recently created object.
@@ -428,6 +434,8 @@ class BackendTypesApi:
428
434
  max_number_of_shots=max_number_of_shots,
429
435
  enabled=enabled,
430
436
  identifier=identifier,
437
+ protocol_version__isnull=protocol_version__isnull,
438
+ protocol_version=protocol_version,
431
439
  sort_by=sort_by,
432
440
  latest=latest,
433
441
  page=page,
@@ -470,6 +478,8 @@ class BackendTypesApi:
470
478
  max_number_of_shots: Optional[StrictInt] = None,
471
479
  enabled: Optional[StrictBool] = None,
472
480
  identifier: Optional[StrictStr] = None,
481
+ protocol_version__isnull: Optional[StrictBool] = None,
482
+ protocol_version: Optional[StrictInt] = None,
473
483
  sort_by: Annotated[Optional[StrictStr], Field(description="The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.")] = None,
474
484
  latest: Annotated[Optional[StrictBool], Field(description="If True gets the most recently created object.")] = None,
475
485
  page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
@@ -517,6 +527,10 @@ class BackendTypesApi:
517
527
  :type enabled: bool
518
528
  :param identifier:
519
529
  :type identifier: str
530
+ :param protocol_version__isnull:
531
+ :type protocol_version__isnull: bool
532
+ :param protocol_version:
533
+ :type protocol_version: int
520
534
  :param sort_by: The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.
521
535
  :type sort_by: str
522
536
  :param latest: If True gets the most recently created object.
@@ -561,6 +575,8 @@ class BackendTypesApi:
561
575
  max_number_of_shots=max_number_of_shots,
562
576
  enabled=enabled,
563
577
  identifier=identifier,
578
+ protocol_version__isnull=protocol_version__isnull,
579
+ protocol_version=protocol_version,
564
580
  sort_by=sort_by,
565
581
  latest=latest,
566
582
  page=page,
@@ -603,6 +619,8 @@ class BackendTypesApi:
603
619
  max_number_of_shots: Optional[StrictInt] = None,
604
620
  enabled: Optional[StrictBool] = None,
605
621
  identifier: Optional[StrictStr] = None,
622
+ protocol_version__isnull: Optional[StrictBool] = None,
623
+ protocol_version: Optional[StrictInt] = None,
606
624
  sort_by: Annotated[Optional[StrictStr], Field(description="The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.")] = None,
607
625
  latest: Annotated[Optional[StrictBool], Field(description="If True gets the most recently created object.")] = None,
608
626
  page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
@@ -650,6 +668,10 @@ class BackendTypesApi:
650
668
  :type enabled: bool
651
669
  :param identifier:
652
670
  :type identifier: str
671
+ :param protocol_version__isnull:
672
+ :type protocol_version__isnull: bool
673
+ :param protocol_version:
674
+ :type protocol_version: int
653
675
  :param sort_by: The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.
654
676
  :type sort_by: str
655
677
  :param latest: If True gets the most recently created object.
@@ -694,6 +716,8 @@ class BackendTypesApi:
694
716
  max_number_of_shots=max_number_of_shots,
695
717
  enabled=enabled,
696
718
  identifier=identifier,
719
+ protocol_version__isnull=protocol_version__isnull,
720
+ protocol_version=protocol_version,
697
721
  sort_by=sort_by,
698
722
  latest=latest,
699
723
  page=page,
@@ -731,6 +755,8 @@ class BackendTypesApi:
731
755
  max_number_of_shots,
732
756
  enabled,
733
757
  identifier,
758
+ protocol_version__isnull,
759
+ protocol_version,
734
760
  sort_by,
735
761
  latest,
736
762
  page,
@@ -808,6 +834,14 @@ class BackendTypesApi:
808
834
 
809
835
  _query_params.append(('identifier', identifier))
810
836
 
837
+ if protocol_version__isnull is not None:
838
+
839
+ _query_params.append(('protocol_version__isnull', protocol_version__isnull))
840
+
841
+ if protocol_version is not None:
842
+
843
+ _query_params.append(('protocol_version', protocol_version))
844
+
811
845
  if sort_by is not None:
812
846
 
813
847
  _query_params.append(('sort_by', sort_by))
@@ -21,6 +21,7 @@ Name | Type | Description | Notes
21
21
  **max_number_of_shots** | **int** | |
22
22
  **enabled** | **bool** | |
23
23
  **identifier** | **str** | |
24
+ **protocol_version** | **int** | | [optional]
24
25
 
25
26
  ## Example
26
27
 
@@ -19,6 +19,7 @@ Name | Type | Description | Notes
19
19
  **max_number_of_shots** | **int** | | [optional]
20
20
  **enabled** | **bool** | | [optional]
21
21
  **identifier** | **str** | | [optional]
22
+ **protocol_version** | **int** | | [optional]
22
23
 
23
24
  ## Example
24
25
 
@@ -93,7 +93,7 @@ Name | Type | Description | Notes
93
93
  [[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)
94
94
 
95
95
  # **read_backend_types_backend_types_get**
96
- > 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, enabled=enabled, identifier=identifier, sort_by=sort_by, latest=latest, page=page, size=size)
96
+ > 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, enabled=enabled, identifier=identifier, protocol_version__isnull=protocol_version__isnull, protocol_version=protocol_version, sort_by=sort_by, latest=latest, page=page, size=size)
97
97
 
98
98
  List backend types
99
99
 
@@ -134,6 +134,8 @@ async with compute_api_client.ApiClient(configuration) as api_client:
134
134
  max_number_of_shots = 56 # int | (optional)
135
135
  enabled = True # bool | (optional)
136
136
  identifier = 'identifier_example' # str | (optional)
137
+ protocol_version__isnull = True # bool | (optional)
138
+ protocol_version = 56 # int | (optional)
137
139
  sort_by = 'sort_by_example' # str | The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'. (optional)
138
140
  latest = True # bool | If True gets the most recently created object. (optional)
139
141
  page = 1 # int | Page number (optional) (default to 1)
@@ -141,7 +143,7 @@ async with compute_api_client.ApiClient(configuration) as api_client:
141
143
 
142
144
  try:
143
145
  # List backend types
144
- 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, enabled=enabled, identifier=identifier, sort_by=sort_by, latest=latest, page=page, size=size)
146
+ 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, enabled=enabled, identifier=identifier, protocol_version__isnull=protocol_version__isnull, protocol_version=protocol_version, sort_by=sort_by, latest=latest, page=page, size=size)
145
147
  print("The response of BackendTypesApi->read_backend_types_backend_types_get:\n")
146
148
  pprint(api_response)
147
149
  except Exception as e:
@@ -167,6 +169,8 @@ Name | Type | Description | Notes
167
169
  **max_number_of_shots** | **int**| | [optional]
168
170
  **enabled** | **bool**| | [optional]
169
171
  **identifier** | **str**| | [optional]
172
+ **protocol_version__isnull** | **bool**| | [optional]
173
+ **protocol_version** | **int**| | [optional]
170
174
  **sort_by** | **str**| The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'. | [optional]
171
175
  **latest** | **bool**| If True gets the most recently created object. | [optional]
172
176
  **page** | **int**| Page number | [optional] [default to 1]
@@ -18,7 +18,7 @@ import re # noqa: F401
18
18
  import json
19
19
 
20
20
 
21
- from typing import Any, ClassVar, Dict, List
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
22
  from pydantic import BaseModel, StrictBool, StrictInt, StrictStr
23
23
  from pydantic import Field
24
24
  from typing_extensions import Annotated
@@ -49,7 +49,8 @@ class BackendType(BaseModel):
49
49
  max_number_of_shots: StrictInt
50
50
  enabled: StrictBool
51
51
  identifier: Annotated[str, Field(strict=True, max_length=32)]
52
- __properties: ClassVar[List[str]] = ["id", "name", "infrastructure", "description", "image_id", "is_hardware", "supports_raw_data", "features", "default_compiler_config", "gateset", "topology", "nqubits", "status", "default_number_of_shots", "max_number_of_shots", "enabled", "identifier"]
52
+ protocol_version: Optional[StrictInt] = None
53
+ __properties: ClassVar[List[str]] = ["id", "name", "infrastructure", "description", "image_id", "is_hardware", "supports_raw_data", "features", "default_compiler_config", "gateset", "topology", "nqubits", "status", "default_number_of_shots", "max_number_of_shots", "enabled", "identifier", "protocol_version"]
53
54
 
54
55
  model_config = {
55
56
  "populate_by_name": True,
@@ -87,6 +88,11 @@ class BackendType(BaseModel):
87
88
  },
88
89
  exclude_none=True,
89
90
  )
91
+ # set to None if protocol_version (nullable) is None
92
+ # and model_fields_set contains the field
93
+ if self.protocol_version is None and "protocol_version" in self.model_fields_set:
94
+ _dict['protocol_version'] = None
95
+
90
96
  return _dict
91
97
 
92
98
  @classmethod
@@ -115,7 +121,8 @@ class BackendType(BaseModel):
115
121
  "default_number_of_shots": obj.get("default_number_of_shots"),
116
122
  "max_number_of_shots": obj.get("max_number_of_shots"),
117
123
  "enabled": obj.get("enabled"),
118
- "identifier": obj.get("identifier")
124
+ "identifier": obj.get("identifier"),
125
+ "protocol_version": obj.get("protocol_version")
119
126
  })
120
127
  return _obj
121
128
 
@@ -46,7 +46,8 @@ class BackendTypePatch(BaseModel):
46
46
  max_number_of_shots: Optional[StrictInt] = None
47
47
  enabled: Optional[StrictBool] = None
48
48
  identifier: Optional[Annotated[str, Field(strict=True, max_length=32)]] = None
49
- __properties: ClassVar[List[str]] = ["name", "infrastructure", "description", "image_id", "is_hardware", "supports_raw_data", "features", "default_compiler_config", "gateset", "topology", "nqubits", "default_number_of_shots", "max_number_of_shots", "enabled", "identifier"]
49
+ protocol_version: Optional[StrictInt] = None
50
+ __properties: ClassVar[List[str]] = ["name", "infrastructure", "description", "image_id", "is_hardware", "supports_raw_data", "features", "default_compiler_config", "gateset", "topology", "nqubits", "default_number_of_shots", "max_number_of_shots", "enabled", "identifier", "protocol_version"]
50
51
 
51
52
  model_config = {
52
53
  "populate_by_name": True,
@@ -159,6 +160,11 @@ class BackendTypePatch(BaseModel):
159
160
  if self.identifier is None and "identifier" in self.model_fields_set:
160
161
  _dict['identifier'] = None
161
162
 
163
+ # set to None if protocol_version (nullable) is None
164
+ # and model_fields_set contains the field
165
+ if self.protocol_version is None and "protocol_version" in self.model_fields_set:
166
+ _dict['protocol_version'] = None
167
+
162
168
  return _dict
163
169
 
164
170
  @classmethod
@@ -185,7 +191,8 @@ class BackendTypePatch(BaseModel):
185
191
  "default_number_of_shots": obj.get("default_number_of_shots"),
186
192
  "max_number_of_shots": obj.get("max_number_of_shots"),
187
193
  "enabled": obj.get("enabled"),
188
- "identifier": obj.get("identifier")
194
+ "identifier": obj.get("identifier"),
195
+ "protocol_version": obj.get("protocol_version")
189
196
  })
190
197
  return _obj
191
198
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: qi-compute-api-client
3
- Version: 0.52.0
3
+ Version: 0.53.0
4
4
  Summary: An API client for the Compute Job Manager of Quantum Inspire.
5
5
  Project-URL: Repository, https://github.com/QuTech-Delft/compute-api-client
6
6
  Author-email: Quantum Inspire <support@quantum-inspire.eu>
@@ -8,7 +8,7 @@ compute_api_client/api/__init__.py,sha256=c0okte7rJ_FIjMajgwLD08jM0z1TjYJOhKcAvX
8
8
  compute_api_client/api/algorithms_api.py,sha256=Iq3X7347R8ZsF3hDoIlEA8girl0ww_k1orMPMc6ygDE,59489
9
9
  compute_api_client/api/auth_config_api.py,sha256=O7XDoKk6-bWyUJkfiiOZRbb8OuDv_H0xvcs_XFfAGG8,10356
10
10
  compute_api_client/api/backend_api.py,sha256=zNX_CYAm-6IrCuR7hlgHOCTwOkR1YQXn-3Ck9VUsCK8,57958
11
- compute_api_client/api/backend_types_api.py,sha256=TQ1uYewholbQzkZANuGwml8YFrhcGOawYZkMwRFtPLM,43038
11
+ compute_api_client/api/backend_types_api.py,sha256=yeKZRQ1e7YzPGiug6ZoyU1HW7Ileq2VjsaGe4IG807o,44548
12
12
  compute_api_client/api/batch_jobs_api.py,sha256=V-HYrI6Lnrc6E7BhHNUwolZRLhLdTnSMZk3C9psQML8,84401
13
13
  compute_api_client/api/commits_api.py,sha256=ETcosKPwE8EYr_wd3rZItlmJqLtuSu8E2CpJt0t5y_0,57560
14
14
  compute_api_client/api/files_api.py,sha256=eItVegQVnni7AK2yyT_6Paj4WB01vUwM8fIwxwJEZuk,47862
@@ -36,9 +36,9 @@ compute_api_client/docs/BackendApi.md,sha256=KWld3mvfxlP_ZiYNSHxNNCkMSwuSnbKy9aF
36
36
  compute_api_client/docs/BackendIn.md,sha256=7_drRygOUPHFWjrvAJGo7WwmcyK6EeRnlSnA6WtTCu0,978
37
37
  compute_api_client/docs/BackendPatch.md,sha256=xET1pnI8JStGhtHm7qT-1zv7RCuKl2CUIKtYueWq72U,927
38
38
  compute_api_client/docs/BackendStatus.md,sha256=ofnS843IHCIxoywjJJ01GP90Gn1XedAm5xR8TONmUbk,292
39
- compute_api_client/docs/BackendType.md,sha256=EJOPUUqnetJSYAEKtLeC9ow4wnZJfwpF69DL2KA2CHc,1430
40
- compute_api_client/docs/BackendTypePatch.md,sha256=HxzKzCTPlzAct8O9yPJ7vT0wp57HyObJjFdFUCbBBME,1587
41
- compute_api_client/docs/BackendTypesApi.md,sha256=C-3ApAjR_eN-hfSoxx0N-NnYLnc70tUmygaQ6o4Npkw,10678
39
+ compute_api_client/docs/BackendType.md,sha256=ijL2wGsTKr3KnQQXsPOJ7qi0BDURy-SGzfwrkNLPs_c,1478
40
+ compute_api_client/docs/BackendTypePatch.md,sha256=5y6b-yYLnjsxWHf15KnzaIvOsDoX4wPRp3V6uxRKeXM,1635
41
+ compute_api_client/docs/BackendTypesApi.md,sha256=RWl3P4WljTIqQhcQcSQuKEnZalMwD0JABo5sS7j9wAQ,11058
42
42
  compute_api_client/docs/BackendWithAuthentication.md,sha256=u9lZh4FusMtOuV53yc0QXHdnTas-4HNC06NyDh8E1Go,1256
43
43
  compute_api_client/docs/BatchJob.md,sha256=IozaJI2zAL1zo_zmuI-RIKvLGK68KkyW53AH4jbIaIs,1210
44
44
  compute_api_client/docs/BatchJobIn.md,sha256=9-nP1Xgnzd5tfvo8WmandUWR8IY-2pMeZyW0HveKZEU,847
@@ -121,8 +121,8 @@ compute_api_client/models/backend.py,sha256=cZ_q1zzW6t9hDF-Llu2Zm8bgVQLvef0qFWLI
121
121
  compute_api_client/models/backend_in.py,sha256=9XK17112GvDxH2jAJpedX7z4kQ4oNr14EsCQ5dmGsEk,2957
122
122
  compute_api_client/models/backend_patch.py,sha256=QMKRJkxMIRiIc4dFQscqIJFe5zgCU11cm_6d_rnKOaE,2556
123
123
  compute_api_client/models/backend_status.py,sha256=kLo5B4ZGtYuzRRADnxAdxeurPJYD_0TzJq69rYAnWGA,918
124
- compute_api_client/models/backend_type.py,sha256=nUXQzM-e7Nz7A3hJYNYDQ9hD1Yp6WW4GCpfI3rHkG80,4212
125
- compute_api_client/models/backend_type_patch.py,sha256=piDIi9afvfbQNOLIg-pwmjgyCwSA0UVWEww3a83aQEc,7749
124
+ compute_api_client/models/backend_type.py,sha256=leRlNXbi3ZQe4aJ7pkKohnjZy0N9YIpYMy2xRpFshfc,4599
125
+ compute_api_client/models/backend_type_patch.py,sha256=8wAgnV8YAJD7D70QD2GCTXDOtZ6OB2KoizbYXH_YUUI,8126
126
126
  compute_api_client/models/backend_with_authentication.py,sha256=Zc62u-GsghnQnWu8KYAqNcF9WA60uPYxqMnGtYeJkdc,3243
127
127
  compute_api_client/models/batch_job.py,sha256=OWedWfSa23U5qDT9SELxtHdrQEuSlDbdhcMCC9bIa58,4388
128
128
  compute_api_client/models/batch_job_in.py,sha256=K2HVli0JZyLf_sVQbP6J7b5PyQUAwM6TbFpPTEbEdmY,2391
@@ -191,7 +191,7 @@ qi2_shared/settings.py,sha256=x2wNv8nzftMFb-5K7wKvhfJVxQn0YYlZ_Guu6DHm_qU,2384
191
191
  qi2_shared/utils.py,sha256=uD7Unuhoze3DWcz6NKvAmSMkiVO1vrlhO-zZEy1-89g,381
192
192
  qi2_shared/hybrid/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
193
193
  qi2_shared/hybrid/quantum_interface.py,sha256=3_XynjDHwt96fOqYKjuv30I5QU8DE2vU03pT0jVAqOg,1447
194
- qi_compute_api_client-0.52.0.dist-info/METADATA,sha256=OgoFZ-ibxyZn7OInGJ0Rn13p3-Q_REl3MDcPJ8yt9Hc,28528
195
- qi_compute_api_client-0.52.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
196
- qi_compute_api_client-0.52.0.dist-info/licenses/LICENSE.md,sha256=aNrwtY65Glxv8qK2ZkJ_V4zq7SyY8CfLa-vo9wBpTQY,10723
197
- qi_compute_api_client-0.52.0.dist-info/RECORD,,
194
+ qi_compute_api_client-0.53.0.dist-info/METADATA,sha256=FREHh4CZukIglH1r6l1Y_SYg7meiqS4giIPB74o65Z8,28528
195
+ qi_compute_api_client-0.53.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
196
+ qi_compute_api_client-0.53.0.dist-info/licenses/LICENSE.md,sha256=aNrwtY65Glxv8qK2ZkJ_V4zq7SyY8CfLa-vo9wBpTQY,10723
197
+ qi_compute_api_client-0.53.0.dist-info/RECORD,,