iqm-client 29.0.0__py3-none-any.whl → 29.2.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.
@@ -457,7 +457,7 @@ class IQMClient:
457
457
  if status in Status.terminal_statuses() | {Status.PENDING_EXECUTION, Status.COMPILATION_ENDED}:
458
458
  return self.get_run(job_id)
459
459
  time.sleep(SECONDS_BETWEEN_CALLS)
460
- raise APITimeoutError(f"The job compilation didn't finish in {timeout_secs} seconds.")
460
+ raise APITimeoutError(f"The job {job_id} compilation didn't finish in {timeout_secs} seconds.")
461
461
 
462
462
  def wait_for_results(self, job_id: UUID, timeout_secs: float = DEFAULT_TIMEOUT_SECONDS) -> RunResult:
463
463
  """Poll results until a job is either ready, failed, aborted, or timed out.
@@ -483,7 +483,7 @@ class IQMClient:
483
483
  if status in Status.terminal_statuses():
484
484
  return self.get_run(job_id)
485
485
  time.sleep(SECONDS_BETWEEN_CALLS)
486
- raise APITimeoutError(f"The job didn't finish in {timeout_secs} seconds.")
486
+ raise APITimeoutError(f"The job {job_id} didn't finish in {timeout_secs} seconds.")
487
487
 
488
488
  def abort_job(self, job_id: UUID, *, timeout_secs: float = REQUESTS_TIMEOUT) -> None:
489
489
  """Abort a job that was submitted for execution.
@@ -72,7 +72,7 @@ class IQMNaiveResonatorMoving(TransformationPass):
72
72
  # TODO: Temporary hack to get the symbolic parameters to work: replace symbols with (inf, idx).
73
73
  # Replace symbolic parameters with indices and store the index to symbol mapping.
74
74
  symbolic_gates = {}
75
- symbolic_index = 0
75
+ symbolic_index = 0.0
76
76
  for node in dag.topological_op_nodes():
77
77
  # This only works for prx gates because that has two parameters
78
78
  # We use one to mark that it is a symbolic gate (np.inf) and the other to store the index.
@@ -127,7 +127,7 @@ class IQMNaiveResonatorMoving(TransformationPass):
127
127
  # This only works for prx gates because that has two parameters
128
128
  # We use one to mark that it is a symbolic gate (np.inf) and the other to store the index.
129
129
  if node.name == "r" and not np.isfinite(node.op.params[0]):
130
- new_dag.substitute_node(node, RGate(*symbolic_gates[int(node.op.params[1])]))
130
+ new_dag.substitute_node(node, RGate(*symbolic_gates[int(np.round(node.op.params[1]))]))
131
131
 
132
132
  # Update the final_layout with the correct bits.
133
133
  if "final_layout" in self.property_set:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: iqm-client
3
- Version: 29.0.0
3
+ Version: 29.2.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,7 +21,7 @@ iqm/iqm_client/__init__.py,sha256=D-8W54EcQIxk_1JZo_86GYlR1YitHhPIiFwwLJ2IfGE,14
21
21
  iqm/iqm_client/api.py,sha256=07K_vRtKv1EGNNVhMLsEYn0FCEXaGTp0uNtfmKc_0mY,3079
22
22
  iqm/iqm_client/authentication.py,sha256=kHFqPI6w3OAk9k5ioPxi-FrD2EP-vjn8Z_wZYccJVyE,12259
23
23
  iqm/iqm_client/errors.py,sha256=ty2P-sg80zlAoL3_kC3PlprgDUv4PI-KFhmmxaaapS0,1429
24
- iqm/iqm_client/iqm_client.py,sha256=J4HbYSbX_deXHMrfky2A6aa-XqcDp_AaawbOa0XwnmI,39284
24
+ iqm/iqm_client/iqm_client.py,sha256=blaTt4lBcgn8bpPkvS1-zCRxUWXBGIjGg5o5sUsynf8,39302
25
25
  iqm/iqm_client/models.py,sha256=X_RSjAcOC-ygALQYVQw0yPxXG5nv7-_oWMrW-thDwds,50850
26
26
  iqm/iqm_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
27
  iqm/iqm_client/transpile.py,sha256=eEv9eY5QG94Lke7Xp6BkQapl1rvlmlVQ_IkQFopPNQ8,36981
@@ -39,7 +39,7 @@ iqm/qiskit_iqm/iqm_circuit.py,sha256=fFQW8SRlgZjqZUOLfyuJhhXEDp5I1jopFWa1k4rb7ac
39
39
  iqm/qiskit_iqm/iqm_circuit_validation.py,sha256=5VSlgpS6sxZ4xYFxF8cJiFOrsC9FEW1vLqU77Ig55-w,1698
40
40
  iqm/qiskit_iqm/iqm_job.py,sha256=_JF2DANalsRu4b0r-XxMmTNOqmaShjp1rmU7h44DKRo,11466
41
41
  iqm/qiskit_iqm/iqm_move_layout.py,sha256=pHqV1G4bri3rFEsMBN6FrtQ0FXVNQG-Ymm4v7zdnilQ,10787
42
- iqm/qiskit_iqm/iqm_naive_move_pass.py,sha256=zH2GHH85cRspRvWb8vPbweUo1e-FG8sMbDgEMqxmVJY,12359
42
+ iqm/qiskit_iqm/iqm_naive_move_pass.py,sha256=-6UzY_U3SgCC9nWz21jR3AxnkFkX2LqYO79F3HliMGU,12371
43
43
  iqm/qiskit_iqm/iqm_provider.py,sha256=aZG3OfbG1YT9584p1EtIPuSvl6Z8Vdx_3GlHasRzmqg,15842
44
44
  iqm/qiskit_iqm/iqm_transpilation.py,sha256=2bwvVd8NwBRU6gwlPOsovhyAmUnm8thKokvkuCwfWC8,8915
45
45
  iqm/qiskit_iqm/move_gate.py,sha256=QU9RKKVvbGq33qcIi9AKLcvQVQMibkgW4ibjzk-oVy4,2808
@@ -57,10 +57,10 @@ iqm/qiskit_iqm/fake_backends/fake_apollo.py,sha256=eT2vd3kQBi1rrvxCpePymBCfFK84d
57
57
  iqm/qiskit_iqm/fake_backends/fake_deneb.py,sha256=RzQXmLXmBARDiMKVxk5Aw9fVbc6IYlW0A5jibk9iYD0,3156
58
58
  iqm/qiskit_iqm/fake_backends/fake_garnet.py,sha256=GI0xafTCj1Um09qVuccO6GPOGBm6ygul_O40Wu220Ys,5555
59
59
  iqm/qiskit_iqm/fake_backends/iqm_fake_backend.py,sha256=wJtfsxjPYbDKmzaz5R4AuaXvvPHa21WyPtRgNctL9eY,16785
60
- iqm_client-29.0.0.dist-info/AUTHORS.rst,sha256=qsxeK5A3-B_xK3hNbhFHEIkoHNpo7sdzYyRTs7Bdtm8,795
61
- iqm_client-29.0.0.dist-info/LICENSE.txt,sha256=2DXrmQtVVUV9Fc9RBFJidMiTEaQlG2oAtlC9PMrEwTk,11333
62
- iqm_client-29.0.0.dist-info/METADATA,sha256=B0oaX2CCnpcLDg648eyiQu7FJxdHUokki2a2pvuCpFU,17545
63
- iqm_client-29.0.0.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
64
- iqm_client-29.0.0.dist-info/entry_points.txt,sha256=Kk2qfRwk8vbIJ7qCAvmaUogfRRn6t92_hBFhe6kqAE4,1317
65
- iqm_client-29.0.0.dist-info/top_level.txt,sha256=NB4XRfyDS6_wG9gMsyX-9LTU7kWnTQxNvkbzIxGv3-c,4
66
- iqm_client-29.0.0.dist-info/RECORD,,
60
+ iqm_client-29.2.0.dist-info/AUTHORS.rst,sha256=qsxeK5A3-B_xK3hNbhFHEIkoHNpo7sdzYyRTs7Bdtm8,795
61
+ iqm_client-29.2.0.dist-info/LICENSE.txt,sha256=2DXrmQtVVUV9Fc9RBFJidMiTEaQlG2oAtlC9PMrEwTk,11333
62
+ iqm_client-29.2.0.dist-info/METADATA,sha256=dD9cTliTdmDH2Le9EBgbdh3-MCTKsrjUhBsXjNm4GFg,17545
63
+ iqm_client-29.2.0.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
64
+ iqm_client-29.2.0.dist-info/entry_points.txt,sha256=Kk2qfRwk8vbIJ7qCAvmaUogfRRn6t92_hBFhe6kqAE4,1317
65
+ iqm_client-29.2.0.dist-info/top_level.txt,sha256=NB4XRfyDS6_wG9gMsyX-9LTU7kWnTQxNvkbzIxGv3-c,4
66
+ iqm_client-29.2.0.dist-info/RECORD,,