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

@@ -36,6 +36,9 @@ class CompileStage(str, Enum):
36
36
  """
37
37
  NONE = 'none'
38
38
  DECOMPOSITION = 'decomposition'
39
+ MAPPING = 'mapping'
40
+ OPTIMIZATION = 'optimization'
41
+ ROUTING = 'routing'
39
42
 
40
43
  @classmethod
41
44
  def from_json(cls, json_str: str) -> Self:
@@ -13,7 +13,7 @@ language governing permissions and limitations under the License.
13
13
  """
14
14
 
15
15
  from abc import ABC, abstractmethod
16
- from typing import Any, Dict, List
16
+ from typing import Any, Dict, List, Optional
17
17
 
18
18
  from compute_api_client.models.backend_type import BackendType
19
19
  from pydantic import BaseModel
@@ -22,7 +22,8 @@ from pydantic import BaseModel
22
22
  class ExecuteCircuitResult(BaseModel):
23
23
  """Result of executing a quantum circuit."""
24
24
 
25
- results: Dict[str, float]
25
+ results: Dict[str, int]
26
+ raw_data: Optional[List[str]]
26
27
  shots_requested: int
27
28
  shots_done: int
28
29
 
@@ -38,7 +39,7 @@ class QuantumInterface(ABC):
38
39
 
39
40
  @abstractmethod
40
41
  def execute_circuit(
41
- self, circuit: str, number_of_shots: int
42
+ self, circuit: str, number_of_shots: int, raw_data_enabled: bool = False
42
43
  ) -> ExecuteCircuitResult:
43
44
  """Execute a quantum circuit."""
44
45
  raise NotImplementedError
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: qi-compute-api-client
3
- Version: 0.45.0
3
+ Version: 0.46.0
4
4
  Summary: An API client for the Compute Job Manager of Quantum Inspire.
5
5
  License: Apache-2.0
6
6
  Author: Quantum Inspire
@@ -130,7 +130,7 @@ compute_api_client/models/batch_job_status.py,sha256=5RUAIBC_ZKrkno2pM3KXSyLA5BB
130
130
  compute_api_client/models/commit.py,sha256=n7E2FeCSYGoxR2GA-Iaynon5WgCbyme5_eXqngV5GVE,2813
131
131
  compute_api_client/models/commit_in.py,sha256=ABzzJRUP9FEc2y6AxRmWUFRxT_KJSH7X_TIfLpLdfLk,2475
132
132
  compute_api_client/models/compile_payload.py,sha256=8r_LnOC892r7MhT83qNLUoF8so9ZDwHK3yzZJsdTUX4,2838
133
- compute_api_client/models/compile_stage.py,sha256=qgHZA576Rij7HB_RwrunR4kdJ_G2_YmqpFzI-12L8l4,867
133
+ compute_api_client/models/compile_stage.py,sha256=dj8U5jnwohb_hgWo40qXukDvl1CUIh3oKXhYcQT44WQ,949
134
134
  compute_api_client/models/domain.py,sha256=74HU4E_VPU84i7035NxJArBJW87yo-MS-YSoT1J7-Ac,875
135
135
  compute_api_client/models/file.py,sha256=PBxeUINDtmevly7zqwWTbg_1gKq21c5__HlGSfD5jqk,3381
136
136
  compute_api_client/models/file_in.py,sha256=MWC-9renc5TKWJ5C-xSEWa7jmtm8xlL0YmcWOa0axRo,3397
@@ -188,10 +188,10 @@ qi2_shared/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
188
188
  qi2_shared/authentication.py,sha256=zTnbB9SIGowSZgetlyXj8NNM3p2beQ3fQo4R0lTrjk8,2550
189
189
  qi2_shared/client.py,sha256=vK_VC5V9p2cy02GeVXh0lKxqhMrM3lzUSRtts1CvF-A,1591
190
190
  qi2_shared/hybrid/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
191
- qi2_shared/hybrid/quantum_interface.py,sha256=wC6Y5D4Bu7vDmBPKVGQe_3qfkz4DlvOwi_31TnLA80w,1373
191
+ qi2_shared/hybrid/quantum_interface.py,sha256=3_XynjDHwt96fOqYKjuv30I5QU8DE2vU03pT0jVAqOg,1447
192
192
  qi2_shared/pagination.py,sha256=sypb9tSsi_7A1D9WoaUEuo7Xyfci8gG2QCX8XSIb7rI,1844
193
193
  qi2_shared/settings.py,sha256=x2wNv8nzftMFb-5K7wKvhfJVxQn0YYlZ_Guu6DHm_qU,2384
194
- qi_compute_api_client-0.45.0.dist-info/LICENSE.md,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
195
- qi_compute_api_client-0.45.0.dist-info/METADATA,sha256=NZMztdyfnLjRk52AOMQ7szRKU5ifbipwzomEA9U2AR4,20595
196
- qi_compute_api_client-0.45.0.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
197
- qi_compute_api_client-0.45.0.dist-info/RECORD,,
194
+ qi_compute_api_client-0.46.0.dist-info/LICENSE.md,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
195
+ qi_compute_api_client-0.46.0.dist-info/METADATA,sha256=paGYZVCFj_3XQwDp5UaRZgM1ztCcgmmFPfcdQG7Vlq8,20595
196
+ qi_compute_api_client-0.46.0.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
197
+ qi_compute_api_client-0.46.0.dist-info/RECORD,,