Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 45ecb34

Browse filesBrowse files
committed
[QI2-1619] ASM Support in compile
1 parent cbee970 commit 45ecb34
Copy full SHA for 45ecb34

File tree

Expand file treeCollapse file tree

7 files changed

+37
-7
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

7 files changed

+37
-7
lines changed
Open diff view settings
Collapse file

‎compute_api_client/api/backend_types_api.py‎

Copy file name to clipboardExpand all lines: compute_api_client/api/backend_types_api.py
+17Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ async def read_backend_types_backend_types_get(
336336
default_number_of_shots: Optional[StrictInt] = None,
337337
max_number_of_shots: Optional[StrictInt] = None,
338338
enabled: Optional[StrictBool] = None,
339+
identifier: Optional[StrictStr] = None,
339340
sort_by: Annotated[Optional[StrictStr], Field(description="The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.")] = None,
340341
latest: Annotated[Optional[StrictBool], Field(description="If True gets the most recently created object.")] = None,
341342
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
@@ -381,6 +382,8 @@ async def read_backend_types_backend_types_get(
381382
:type max_number_of_shots: int
382383
:param enabled:
383384
:type enabled: bool
385+
:param identifier:
386+
:type identifier: str
384387
:param sort_by: The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.
385388
:type sort_by: str
386389
:param latest: If True gets the most recently created object.
@@ -424,6 +427,7 @@ async def read_backend_types_backend_types_get(
424427
default_number_of_shots=default_number_of_shots,
425428
max_number_of_shots=max_number_of_shots,
426429
enabled=enabled,
430+
identifier=identifier,
427431
sort_by=sort_by,
428432
latest=latest,
429433
page=page,
@@ -465,6 +469,7 @@ async def read_backend_types_backend_types_get_with_http_info(
465469
default_number_of_shots: Optional[StrictInt] = None,
466470
max_number_of_shots: Optional[StrictInt] = None,
467471
enabled: Optional[StrictBool] = None,
472+
identifier: Optional[StrictStr] = None,
468473
sort_by: Annotated[Optional[StrictStr], Field(description="The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.")] = None,
469474
latest: Annotated[Optional[StrictBool], Field(description="If True gets the most recently created object.")] = None,
470475
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
@@ -510,6 +515,8 @@ async def read_backend_types_backend_types_get_with_http_info(
510515
:type max_number_of_shots: int
511516
:param enabled:
512517
:type enabled: bool
518+
:param identifier:
519+
:type identifier: str
513520
:param sort_by: The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.
514521
:type sort_by: str
515522
:param latest: If True gets the most recently created object.
@@ -553,6 +560,7 @@ async def read_backend_types_backend_types_get_with_http_info(
553560
default_number_of_shots=default_number_of_shots,
554561
max_number_of_shots=max_number_of_shots,
555562
enabled=enabled,
563+
identifier=identifier,
556564
sort_by=sort_by,
557565
latest=latest,
558566
page=page,
@@ -594,6 +602,7 @@ async def read_backend_types_backend_types_get_without_preload_content(
594602
default_number_of_shots: Optional[StrictInt] = None,
595603
max_number_of_shots: Optional[StrictInt] = None,
596604
enabled: Optional[StrictBool] = None,
605+
identifier: Optional[StrictStr] = None,
597606
sort_by: Annotated[Optional[StrictStr], Field(description="The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.")] = None,
598607
latest: Annotated[Optional[StrictBool], Field(description="If True gets the most recently created object.")] = None,
599608
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
@@ -639,6 +648,8 @@ async def read_backend_types_backend_types_get_without_preload_content(
639648
:type max_number_of_shots: int
640649
:param enabled:
641650
:type enabled: bool
651+
:param identifier:
652+
:type identifier: str
642653
:param sort_by: The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.
643654
:type sort_by: str
644655
:param latest: If True gets the most recently created object.
@@ -682,6 +693,7 @@ async def read_backend_types_backend_types_get_without_preload_content(
682693
default_number_of_shots=default_number_of_shots,
683694
max_number_of_shots=max_number_of_shots,
684695
enabled=enabled,
696+
identifier=identifier,
685697
sort_by=sort_by,
686698
latest=latest,
687699
page=page,
@@ -718,6 +730,7 @@ def _read_backend_types_backend_types_get_serialize(
718730
default_number_of_shots,
719731
max_number_of_shots,
720732
enabled,
733+
identifier,
721734
sort_by,
722735
latest,
723736
page,
@@ -791,6 +804,10 @@ def _read_backend_types_backend_types_get_serialize(
791804

792805
_query_params.append(('enabled', enabled))
793806

807+
if identifier is not None:
808+
809+
_query_params.append(('identifier', identifier))
810+
794811
if sort_by is not None:
795812

796813
_query_params.append(('sort_by', sort_by))
Collapse file

‎compute_api_client/docs/BackendType.md‎

Copy file name to clipboardExpand all lines: compute_api_client/docs/BackendType.md
+1Lines changed: 1 addition & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Name | Type | Description | Notes
2020
**default_number_of_shots** | **int** | |
2121
**max_number_of_shots** | **int** | |
2222
**enabled** | **bool** | |
23+
**identifier** | **str** | |
2324

2425
## Example
2526

Collapse file

‎compute_api_client/docs/BackendTypePatch.md‎

Copy file name to clipboardExpand all lines: compute_api_client/docs/BackendTypePatch.md
+1Lines changed: 1 addition & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Name | Type | Description | Notes
1818
**default_number_of_shots** | **int** | | [optional]
1919
**max_number_of_shots** | **int** | | [optional]
2020
**enabled** | **bool** | | [optional]
21+
**identifier** | **str** | | [optional]
2122

2223
## Example
2324

Collapse file

‎compute_api_client/docs/BackendTypesApi.md‎

Copy file name to clipboardExpand all lines: compute_api_client/docs/BackendTypesApi.md
+4-2Lines changed: 4 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Name | Type | Description | Notes
9393
[[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)
9494

9595
# **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, 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, sort_by=sort_by, latest=latest, page=page, size=size)
9797
9898
List backend types
9999

@@ -133,14 +133,15 @@ async with compute_api_client.ApiClient(configuration) as api_client:
133133
default_number_of_shots = 56 # int | (optional)
134134
max_number_of_shots = 56 # int | (optional)
135135
enabled = True # bool | (optional)
136+
identifier = 'identifier_example' # str | (optional)
136137
sort_by = 'sort_by_example' # str | The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'. (optional)
137138
latest = True # bool | If True gets the most recently created object. (optional)
138139
page = 1 # int | Page number (optional) (default to 1)
139140
size = 50 # int | Page size (optional) (default to 50)
140141

141142
try:
142143
# List backend types
143-
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, sort_by=sort_by, latest=latest, page=page, size=size)
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)
144145
print("The response of BackendTypesApi->read_backend_types_backend_types_get:\n")
145146
pprint(api_response)
146147
except Exception as e:
@@ -165,6 +166,7 @@ Name | Type | Description | Notes
165166
**default_number_of_shots** | **int**| | [optional]
166167
**max_number_of_shots** | **int**| | [optional]
167168
**enabled** | **bool**| | [optional]
169+
**identifier** | **str**| | [optional]
168170
**sort_by** | **str**| The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'. | [optional]
169171
**latest** | **bool**| If True gets the most recently created object. | [optional]
170172
**page** | **int**| Page number | [optional] [default to 1]
Collapse file

‎compute_api_client/models/backend_type.py‎

Copy file name to clipboardExpand all lines: compute_api_client/models/backend_type.py
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ class BackendType(BaseModel):
4848
default_number_of_shots: StrictInt
4949
max_number_of_shots: StrictInt
5050
enabled: StrictBool
51-
__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"]
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"]
5253

5354
model_config = {
5455
"populate_by_name": True,
@@ -113,7 +114,8 @@ def from_dict(cls, obj: Dict) -> Self:
113114
"status": obj.get("status"),
114115
"default_number_of_shots": obj.get("default_number_of_shots"),
115116
"max_number_of_shots": obj.get("max_number_of_shots"),
116-
"enabled": obj.get("enabled")
117+
"enabled": obj.get("enabled"),
118+
"identifier": obj.get("identifier")
117119
})
118120
return _obj
119121

Collapse file

‎compute_api_client/models/backend_type_patch.py‎

Copy file name to clipboardExpand all lines: compute_api_client/models/backend_type_patch.py
+9-2Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ class BackendTypePatch(BaseModel):
4545
default_number_of_shots: Optional[StrictInt] = None
4646
max_number_of_shots: Optional[StrictInt] = None
4747
enabled: Optional[StrictBool] = None
48-
__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"]
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"]
4950

5051
model_config = {
5152
"populate_by_name": True,
@@ -153,6 +154,11 @@ def to_dict(self) -> Dict[str, Any]:
153154
if self.enabled is None and "enabled" in self.model_fields_set:
154155
_dict['enabled'] = None
155156

157+
# set to None if identifier (nullable) is None
158+
# and model_fields_set contains the field
159+
if self.identifier is None and "identifier" in self.model_fields_set:
160+
_dict['identifier'] = None
161+
156162
return _dict
157163

158164
@classmethod
@@ -178,7 +184,8 @@ def from_dict(cls, obj: Dict) -> Self:
178184
"nqubits": obj.get("nqubits"),
179185
"default_number_of_shots": obj.get("default_number_of_shots"),
180186
"max_number_of_shots": obj.get("max_number_of_shots"),
181-
"enabled": obj.get("enabled")
187+
"enabled": obj.get("enabled"),
188+
"identifier": obj.get("identifier")
182189
})
183190
return _obj
184191

Collapse file

‎pyproject.toml‎

Copy file name to clipboardExpand all lines: pyproject.toml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "qi-compute-api-client"
3-
version = "0.51.0"
3+
version = "0.52.0"
44
description = "An API client for the Compute Job Manager of Quantum Inspire."
55
authors = [{ name = "Quantum Inspire", email = "support@quantum-inspire.eu" }]
66
requires-python = "~=3.9"

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.