iqm-client 25.4.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.
@@ -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.PENDING_EXECUTION, Status.COMPILED}:
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
- """Job has been received but nothing has been done about it."""
1014
- VALIDATING = "validating"
1015
- """Job is being validated."""
1016
- PROCESSING = "processing"
1017
- ACCEPTED = "accepted"
1018
- """Job has passed initial checks and will proceed to compilation."""
1019
- PREPARING_CALIBRATION = "preparing_calibration"
1020
- """The calibration is being prepared for the job."""
1021
- PENDING_COMPILATION = "pending_compilation"
1022
- """Job has been queued for compilation."""
1023
- COMPILING = "compiling"
1024
- """The job is being compiled."""
1025
- COMPILED = "compiled"
1026
- """Job has been compiled to a low-level representation."""
1027
- STORING_SWEEP_METADATA = "storing_sweep_metadata"
1028
- """Metadata about the sweep is being saved to the database."""
1029
- METADATA_STORED = "metadata_stored"
1030
- """Metadata has been successfully saved."""
1031
- PENDING_EXECUTION = "pending_execution"
1032
- """Job has been compiled and is queued for execution."""
1033
- EXECUTION_START = "execution_start"
1034
- """The job has begun execution on hardware."""
1035
- EXECUTION_END = "execution_end"
1036
- """The job has completed execution on hardware."""
1037
- PENDING_POST_PROCESSING = "pending_post_processing"
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
- """Job has been executed and results are available."""
1040
+
1041
+ # Job failed, can happen at any stage
1043
1042
  FAILED = "failed"
1044
- """Execution or compilation failed."""
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.PENDING_EXECUTION:
230
+ if result.status == Status.EXECUTION_PENDING:
231
231
  return JobStatus.RUNNING
232
232
  if result.status == Status.READY:
233
233
  return JobStatus.DONE
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: iqm-client
3
- Version: 25.4.0
3
+ Version: 26.0.0
4
4
  Summary: Client library for accessing an IQM quantum computer
5
5
  Author-email: IQM Finland Oy <developers@meetiqm.com>
6
6
  License: Apache License
@@ -216,7 +216,7 @@ Requires-Python: <3.13,>=3.10
216
216
  Description-Content-Type: text/x-rst
217
217
  License-File: LICENSE.txt
218
218
  License-File: AUTHORS.rst
219
- Requires-Dist: numpy <3.0,>=1.25.2
219
+ Requires-Dist: numpy <3.0,>=1.26.4
220
220
  Requires-Dist: packaging ==24.1
221
221
  Requires-Dist: pydantic <3.0,>=2.9.2
222
222
  Requires-Dist: requests ==2.32.3
@@ -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=SFImZk5DrAq51hr2G5sk242mO-8LYz-Mlc6Rc_JIuZE,50019
25
- iqm/iqm_client/models.py,sha256=YjlerNleeE1kOmzRsux-o02h7XSqv0u0KQEERufdxKk,50302
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=_JF2DANalsRu4b0r-XxMmTNOqmaShjp1rmU7h44DKRo,11466
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-25.4.0.dist-info/AUTHORS.rst,sha256=qsxeK5A3-B_xK3hNbhFHEIkoHNpo7sdzYyRTs7Bdtm8,795
60
- iqm_client-25.4.0.dist-info/LICENSE.txt,sha256=2DXrmQtVVUV9Fc9RBFJidMiTEaQlG2oAtlC9PMrEwTk,11333
61
- iqm_client-25.4.0.dist-info/METADATA,sha256=Ipu01b2XtcWWZ5KE9rMipahHIUR5vvBxgSfYHjrCvaA,17079
62
- iqm_client-25.4.0.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
63
- iqm_client-25.4.0.dist-info/entry_points.txt,sha256=Kk2qfRwk8vbIJ7qCAvmaUogfRRn6t92_hBFhe6kqAE4,1317
64
- iqm_client-25.4.0.dist-info/top_level.txt,sha256=NB4XRfyDS6_wG9gMsyX-9LTU7kWnTQxNvkbzIxGv3-c,4
65
- iqm_client-25.4.0.dist-info/RECORD,,
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,,