iqm-client 25.5.0__py3-none-any.whl → 26.0.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.
- iqm/iqm_client/iqm_client.py +1 -1
- iqm/iqm_client/models.py +30 -31
- iqm/qiskit_iqm/iqm_job.py +1 -1
- {iqm_client-25.5.0.dist-info → iqm_client-26.0.0.dist-info}/METADATA +1 -1
- {iqm_client-25.5.0.dist-info → iqm_client-26.0.0.dist-info}/RECORD +10 -10
- {iqm_client-25.5.0.dist-info → iqm_client-26.0.0.dist-info}/AUTHORS.rst +0 -0
- {iqm_client-25.5.0.dist-info → iqm_client-26.0.0.dist-info}/LICENSE.txt +0 -0
- {iqm_client-25.5.0.dist-info → iqm_client-26.0.0.dist-info}/WHEEL +0 -0
- {iqm_client-25.5.0.dist-info → iqm_client-26.0.0.dist-info}/entry_points.txt +0 -0
- {iqm_client-25.5.0.dist-info → iqm_client-26.0.0.dist-info}/top_level.txt +0 -0
iqm/iqm_client/iqm_client.py
CHANGED
|
@@ -806,7 +806,7 @@ class IQMClient:
|
|
|
806
806
|
start_time = datetime.now()
|
|
807
807
|
while (datetime.now() - start_time).total_seconds() < timeout_secs:
|
|
808
808
|
status = self.get_run_status(job_id).status
|
|
809
|
-
if status in Status.terminal_statuses() | {Status.
|
|
809
|
+
if status in Status.terminal_statuses() | {Status.EXECUTION_PENDING, Status.COMPILATION_ENDED}:
|
|
810
810
|
return self.get_run(job_id)
|
|
811
811
|
time.sleep(SECONDS_BETWEEN_CALLS)
|
|
812
812
|
raise APITimeoutError(f"The job compilation didn't finish in {timeout_secs} seconds.")
|
iqm/iqm_client/models.py
CHANGED
|
@@ -1009,41 +1009,40 @@ class Metadata(BaseModel):
|
|
|
1009
1009
|
class Status(str, Enum):
|
|
1010
1010
|
"""Status of a job."""
|
|
1011
1011
|
|
|
1012
|
+
# Received by the server
|
|
1012
1013
|
RECEIVED = "received"
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
"""The job has finished executing and is pending post-processing."""
|
|
1039
|
-
POST_PROCESSING = "post_processing"
|
|
1040
|
-
"""The job results is being post-processed."""
|
|
1014
|
+
|
|
1015
|
+
# Validating the job
|
|
1016
|
+
|
|
1017
|
+
VALIDATION_STARTED = "validation_started"
|
|
1018
|
+
VALIDATION_ENDED = "validation_ended"
|
|
1019
|
+
|
|
1020
|
+
FETCH_CALIBRATION_STARTED = "fetch_calibration_started"
|
|
1021
|
+
FETCH_CALIBRATION_ENDED = "fetch_calibration_ended"
|
|
1022
|
+
|
|
1023
|
+
# Running PulLA
|
|
1024
|
+
COMPILATION_STARTED = "compilation_started"
|
|
1025
|
+
COMPILATION_ENDED = "compilation_ended"
|
|
1026
|
+
|
|
1027
|
+
# Executing sweep
|
|
1028
|
+
SAVE_SWEEP_METADATA_STARTED = "save_sweep_metadata_started"
|
|
1029
|
+
SAVE_SWEEP_METADATA_ENDED = "save_sweep_metadata_ended"
|
|
1030
|
+
EXECUTION_PENDING = "execution_pending"
|
|
1031
|
+
EXECUTION_STARTED = "execution_started"
|
|
1032
|
+
EXECUTION_ENDED = "execution_ended"
|
|
1033
|
+
EXECUTION_STAGE_COMPLETED = "execution_completed"
|
|
1034
|
+
|
|
1035
|
+
# Extracting artifacts from results
|
|
1036
|
+
POST_PROCESSING_STARTED = "post_processing_started"
|
|
1037
|
+
POST_PROCESSING_ENDED = "post_processing_ended"
|
|
1038
|
+
|
|
1041
1039
|
READY = "ready"
|
|
1042
|
-
|
|
1040
|
+
|
|
1041
|
+
# Job failed, can happen at any stage
|
|
1043
1042
|
FAILED = "failed"
|
|
1044
|
-
|
|
1043
|
+
|
|
1044
|
+
# Job aborted
|
|
1045
1045
|
ABORTED = "aborted"
|
|
1046
|
-
"""User cancelled the execution."""
|
|
1047
1046
|
PENDING_DELETION = "pending deletion"
|
|
1048
1047
|
"""Job is set to be deleted."""
|
|
1049
1048
|
DELETION_FAILED = "deletion failed"
|
iqm/qiskit_iqm/iqm_job.py
CHANGED
|
@@ -227,7 +227,7 @@ class IQMJob(JobV1):
|
|
|
227
227
|
return JobStatus.DONE
|
|
228
228
|
|
|
229
229
|
result = self._client.get_run_status(uuid.UUID(self._job_id))
|
|
230
|
-
if result.status == Status.
|
|
230
|
+
if result.status == Status.EXECUTION_PENDING:
|
|
231
231
|
return JobStatus.RUNNING
|
|
232
232
|
if result.status == Status.READY:
|
|
233
233
|
return JobStatus.DONE
|
|
@@ -21,8 +21,8 @@ iqm/iqm_client/__init__.py,sha256=D-8W54EcQIxk_1JZo_86GYlR1YitHhPIiFwwLJ2IfGE,14
|
|
|
21
21
|
iqm/iqm_client/api.py,sha256=V57vslYSn5g1IgXWtWuxp3hD1DbY18dKUexRdxEuX78,8268
|
|
22
22
|
iqm/iqm_client/authentication.py,sha256=4MO7VRIH1cIkjidIDqGfnemvc04UHEAfs-sZWXwBcLw,12258
|
|
23
23
|
iqm/iqm_client/errors.py,sha256=ty2P-sg80zlAoL3_kC3PlprgDUv4PI-KFhmmxaaapS0,1429
|
|
24
|
-
iqm/iqm_client/iqm_client.py,sha256=
|
|
25
|
-
iqm/iqm_client/models.py,sha256=
|
|
24
|
+
iqm/iqm_client/iqm_client.py,sha256=ekh4GLKo7LGKrCTzdU2dCRmhhAGsMIB0ijvw9wc_cNo,50028
|
|
25
|
+
iqm/iqm_client/models.py,sha256=xoT4Ho0AQl8YheNRUhAcuShyF6HpNowiF5OOt29ZaWE,49740
|
|
26
26
|
iqm/iqm_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
27
27
|
iqm/iqm_client/transpile.py,sha256=-iIZaxaTaQLy6pMkRG15VN8X1ZE_iNhX3pjsNjqg6P8,36935
|
|
28
28
|
iqm/iqm_client/util.py,sha256=FLRUhhi0YDxomVtilCVPJLixyijFtU10PVefIx-eelw,1516
|
|
@@ -36,7 +36,7 @@ iqm/qiskit_iqm/__init__.py,sha256=Mv9V_r8ZcmGC8Ke5S8-7yLOx02vjZ1qiVx8mtbOpwnY,14
|
|
|
36
36
|
iqm/qiskit_iqm/iqm_backend.py,sha256=LhyhccB9u_Y4lyFTzAQkYfX7CI_hbBx3CQHwbwR3wlA,13975
|
|
37
37
|
iqm/qiskit_iqm/iqm_circuit.py,sha256=fFQW8SRlgZjqZUOLfyuJhhXEDp5I1jopFWa1k4rb7ac,1384
|
|
38
38
|
iqm/qiskit_iqm/iqm_circuit_validation.py,sha256=88cwQsqWbN0qNumwe1lRiLXyrQgYzIj5EhNFf_oauLE,1652
|
|
39
|
-
iqm/qiskit_iqm/iqm_job.py,sha256=
|
|
39
|
+
iqm/qiskit_iqm/iqm_job.py,sha256=qHC0rID-SwvAtZWH7wOjMtBoAUke8z0L6V9yobgQxm4,11466
|
|
40
40
|
iqm/qiskit_iqm/iqm_move_layout.py,sha256=pHqV1G4bri3rFEsMBN6FrtQ0FXVNQG-Ymm4v7zdnilQ,10787
|
|
41
41
|
iqm/qiskit_iqm/iqm_naive_move_pass.py,sha256=zH2GHH85cRspRvWb8vPbweUo1e-FG8sMbDgEMqxmVJY,12359
|
|
42
42
|
iqm/qiskit_iqm/iqm_provider.py,sha256=aZG3OfbG1YT9584p1EtIPuSvl6Z8Vdx_3GlHasRzmqg,15842
|
|
@@ -56,10 +56,10 @@ iqm/qiskit_iqm/fake_backends/fake_apollo.py,sha256=eT2vd3kQBi1rrvxCpePymBCfFK84d
|
|
|
56
56
|
iqm/qiskit_iqm/fake_backends/fake_deneb.py,sha256=RzQXmLXmBARDiMKVxk5Aw9fVbc6IYlW0A5jibk9iYD0,3156
|
|
57
57
|
iqm/qiskit_iqm/fake_backends/fake_garnet.py,sha256=GI0xafTCj1Um09qVuccO6GPOGBm6ygul_O40Wu220Ys,5555
|
|
58
58
|
iqm/qiskit_iqm/fake_backends/iqm_fake_backend.py,sha256=wJtfsxjPYbDKmzaz5R4AuaXvvPHa21WyPtRgNctL9eY,16785
|
|
59
|
-
iqm_client-
|
|
60
|
-
iqm_client-
|
|
61
|
-
iqm_client-
|
|
62
|
-
iqm_client-
|
|
63
|
-
iqm_client-
|
|
64
|
-
iqm_client-
|
|
65
|
-
iqm_client-
|
|
59
|
+
iqm_client-26.0.0.dist-info/AUTHORS.rst,sha256=qsxeK5A3-B_xK3hNbhFHEIkoHNpo7sdzYyRTs7Bdtm8,795
|
|
60
|
+
iqm_client-26.0.0.dist-info/LICENSE.txt,sha256=2DXrmQtVVUV9Fc9RBFJidMiTEaQlG2oAtlC9PMrEwTk,11333
|
|
61
|
+
iqm_client-26.0.0.dist-info/METADATA,sha256=VYczoNuDWVRM2KUgdDJs4m78vo0hQaAWOy3FJNY5ERo,17079
|
|
62
|
+
iqm_client-26.0.0.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
|
|
63
|
+
iqm_client-26.0.0.dist-info/entry_points.txt,sha256=Kk2qfRwk8vbIJ7qCAvmaUogfRRn6t92_hBFhe6kqAE4,1317
|
|
64
|
+
iqm_client-26.0.0.dist-info/top_level.txt,sha256=NB4XRfyDS6_wG9gMsyX-9LTU7kWnTQxNvkbzIxGv3-c,4
|
|
65
|
+
iqm_client-26.0.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|