iqm-client 27.0.0__py3-none-any.whl → 28.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.PENDING_EXECUTION, 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
@@ -1011,33 +1011,35 @@ class Status(str, Enum):
1011
1011
 
1012
1012
  RECEIVED = "received"
1013
1013
  """Job has been received but nothing has been done about it."""
1014
- VALIDATING = "validating"
1014
+ VALIDATION_STARTED = "validation_started"
1015
1015
  """Job is being validated."""
1016
1016
  PROCESSING = "processing"
1017
- ACCEPTED = "accepted"
1017
+ VALIDATION_ENDED = "validation_ended"
1018
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"
1019
+ FETCH_CALIBRATION_STARTED = "fetch_calibration_started"
1020
+ """The calibration is being fetched for the job."""
1021
+ FETCH_CALIBRATION_ENDED = "fetch_calibration_ended"
1022
+ """Job has been fetched for the job."""
1023
+ COMPILATION_STARTED = "compilation_started"
1024
1024
  """The job is being compiled."""
1025
- COMPILED = "compiled"
1025
+ COMPILATION_ENDED = "compilation_ended"
1026
1026
  """Job has been compiled to a low-level representation."""
1027
- STORING_SWEEP_METADATA = "storing_sweep_metadata"
1027
+ SAVE_SWEEP_METADATA_STARTED = "save_sweep_metadata_started"
1028
1028
  """Metadata about the sweep is being saved to the database."""
1029
- METADATA_STORED = "metadata_stored"
1029
+ SAVE_SWEEP_METADATA_ENDED = "save_sweep_metadata_ended"
1030
1030
  """Metadata has been successfully saved."""
1031
1031
  PENDING_EXECUTION = "pending_execution"
1032
1032
  """Job has been compiled and is queued for execution."""
1033
- EXECUTION_START = "execution_start"
1033
+ EXECUTION_STARTED = "execution_started"
1034
1034
  """The job has begun execution on hardware."""
1035
- EXECUTION_END = "execution_end"
1035
+ EXECUTION_ENDED = "execution_ended"
1036
1036
  """The job has completed execution on hardware."""
1037
- PENDING_POST_PROCESSING = "pending_post_processing"
1037
+ POST_PROCESSING_PENDING = "post_processing_pending"
1038
1038
  """The job has finished executing and is pending post-processing."""
1039
- POST_PROCESSING = "post_processing"
1039
+ POST_PROCESSING_STARTED = "post_processing_started"
1040
1040
  """The job results is being post-processed."""
1041
+ POST_PROCESSING_ENDED = "post_processing_ended"
1042
+ """The job has been successfully post processed."""
1041
1043
  READY = "ready"
1042
1044
  """Job has been executed and results are available."""
1043
1045
  FAILED = "failed"
@@ -1053,6 +1055,14 @@ class Status(str, Enum):
1053
1055
  UNKNOWN = "unknown"
1054
1056
  """Job is in a state not recognized by this version of the client."""
1055
1057
 
1058
+ @classmethod
1059
+ def _missing_(cls, value: object) -> Any:
1060
+ """This is a backwards compatibility fix for resonance integration. Once Resonance has fixed this, and has been
1061
+ widely deployed, this can be removed. Ticket: QCLOUD-1311
1062
+ """
1063
+ if value == "pending execution":
1064
+ return cls.PENDING_EXECUTION
1065
+
1056
1066
  @classmethod
1057
1067
  def terminal_statuses(cls) -> set[Status]:
1058
1068
  """Statuses from which the execution can't continue."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: iqm-client
3
- Version: 27.0.0
3
+ Version: 28.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
@@ -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=pebXRxGivTeQptsiszNQwhKCqFxVLjSKKZjmU-RPmuQ,50028
25
+ iqm/iqm_client/models.py,sha256=3YTqdY_Ab6fHLiB1Rh8jem-TwiTdwZAI-Xf_5mfblEA,50890
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
@@ -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-27.0.0.dist-info/AUTHORS.rst,sha256=qsxeK5A3-B_xK3hNbhFHEIkoHNpo7sdzYyRTs7Bdtm8,795
60
- iqm_client-27.0.0.dist-info/LICENSE.txt,sha256=2DXrmQtVVUV9Fc9RBFJidMiTEaQlG2oAtlC9PMrEwTk,11333
61
- iqm_client-27.0.0.dist-info/METADATA,sha256=RzmWinP5wUrCri9WSO5Z2Gr8K-D_LEtyEVoHxBNNm-g,17079
62
- iqm_client-27.0.0.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
63
- iqm_client-27.0.0.dist-info/entry_points.txt,sha256=Kk2qfRwk8vbIJ7qCAvmaUogfRRn6t92_hBFhe6kqAE4,1317
64
- iqm_client-27.0.0.dist-info/top_level.txt,sha256=NB4XRfyDS6_wG9gMsyX-9LTU7kWnTQxNvkbzIxGv3-c,4
65
- iqm_client-27.0.0.dist-info/RECORD,,
59
+ iqm_client-28.0.0.dist-info/AUTHORS.rst,sha256=qsxeK5A3-B_xK3hNbhFHEIkoHNpo7sdzYyRTs7Bdtm8,795
60
+ iqm_client-28.0.0.dist-info/LICENSE.txt,sha256=2DXrmQtVVUV9Fc9RBFJidMiTEaQlG2oAtlC9PMrEwTk,11333
61
+ iqm_client-28.0.0.dist-info/METADATA,sha256=CmNaxqabNuEwVAircIfTnqA86ZcAh7cCG_QntBy3_jE,17079
62
+ iqm_client-28.0.0.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
63
+ iqm_client-28.0.0.dist-info/entry_points.txt,sha256=Kk2qfRwk8vbIJ7qCAvmaUogfRRn6t92_hBFhe6kqAE4,1317
64
+ iqm_client-28.0.0.dist-info/top_level.txt,sha256=NB4XRfyDS6_wG9gMsyX-9LTU7kWnTQxNvkbzIxGv3-c,4
65
+ iqm_client-28.0.0.dist-info/RECORD,,