iqm-client 29.3.0__py3-none-any.whl → 29.5.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.
@@ -228,7 +228,7 @@ class IQMDevice(devices.Device):
228
228
  # If the device has computational resonators, we use a modified connection graph for routing
229
229
  # by adding edges between all qubits connected to the same resonator.
230
230
  move_routing = True
231
- graph = nx.Graph()
231
+ graph = nx.Graph() # type: ignore[var-annotated]
232
232
  for edge in self.metadata.nx_graph.edges:
233
233
  q, r = edge if edge[1] in self.resonators else edge[::-1]
234
234
  if r not in self.resonators:
@@ -55,7 +55,7 @@ class IQMDeviceMetadata(devices.DeviceMetadata):
55
55
  architecture: DynamicQuantumArchitecture | None = None,
56
56
  ):
57
57
  """Construct an IQMDeviceMetadata object."""
58
- nx_graph = nx.Graph()
58
+ nx_graph = nx.Graph() # type: ignore[var-annotated]
59
59
  for edge in connectivity:
60
60
  if len(edge) != 2:
61
61
  raise ValueError("Connectivity must be an iterable of 2-tuples.")
@@ -16,10 +16,11 @@ the Adonis native gateset and connectivity, and then executing it on a simulator
16
16
  """
17
17
 
18
18
  import cirq
19
- from demo_common import demo
20
19
  from iqm.cirq_iqm.devices import Adonis
21
20
  from iqm.cirq_iqm.extended_qasm_parser import circuit_from_qasm
22
21
 
22
+ from .demo_common import demo
23
+
23
24
 
24
25
  def demo_adonis(use_qsim: bool = False) -> None:
25
26
  """Run the demo using the Adonis architecture."""
@@ -16,10 +16,11 @@ the Apollo native gateset and connectivity, and then executing it on a simulator
16
16
  """
17
17
 
18
18
  import cirq
19
- from demo_common import demo
20
19
  from iqm.cirq_iqm.devices import Apollo
21
20
  from iqm.cirq_iqm.extended_qasm_parser import circuit_from_qasm
22
21
 
22
+ from .demo_common import demo
23
+
23
24
 
24
25
  def demo_apollo(use_qsim: bool = False) -> None:
25
26
  """Run the demo using the Apollo architecture."""
@@ -178,7 +178,8 @@ def demo(device: IQMDevice, circuit: cirq.Circuit, *, use_qsim: bool = False) ->
178
178
 
179
179
  # Initialize a ket-based simulator for evaluating the circuit
180
180
  if use_qsim:
181
- import qsimcirq
181
+ # FIXME: decide what to do with this implicit dependency to qsimcirq.
182
+ import qsimcirq # type:ignore[import-not-found]
182
183
 
183
184
  sim = qsimcirq.QSimSimulator()
184
185
  print("Using qsim.")
@@ -133,7 +133,7 @@ class IQMClient:
133
133
 
134
134
  self._station_control: StationControlInterface = init_station_control(
135
135
  root_url=url,
136
- get_token_callback=self._token_manager.get_bearer_token,
136
+ get_token_callback=self._token_manager.get_bearer_token, # type:ignore[arg-type]
137
137
  client_signature=client_signature,
138
138
  )
139
139
  self._api = APIConfig(url)
@@ -553,7 +553,7 @@ class IQMClient:
553
553
  calibration_set = quality_metrics.calibration_set
554
554
 
555
555
  return QualityMetricSet(
556
- **{
556
+ **{ # type:ignore[arg-type]
557
557
  "calibration_set_id": calibration_set.observation_set_id,
558
558
  "calibration_set_dut_label": calibration_set.dut_label,
559
559
  "calibration_set_number_of_observations": len(calibration_set.observation_ids),
@@ -619,9 +619,11 @@ class IQMClient:
619
619
 
620
620
  return CalibrationSet(
621
621
  calibration_set_id=calibration_set.observation_set_id,
622
- calibration_set_dut_label=calibration_set.dut_label,
622
+ calibration_set_dut_label=calibration_set.dut_label, # type:ignore[arg-type]
623
623
  calibration_set_created_timestamp=str(calibration_set.created_timestamp.isoformat()),
624
- calibration_set_end_timestamp=str(calibration_set.end_timestamp.isoformat()),
624
+ calibration_set_end_timestamp=""
625
+ if calibration_set.end_timestamp is None
626
+ else str(calibration_set.end_timestamp.isoformat()),
625
627
  calibration_set_is_invalid=calibration_set.invalid,
626
628
  observations={
627
629
  observation.dut_field: _observation_lite_to_json(observation) for observation in observations
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: iqm-client
3
- Version: 29.3.0
3
+ Version: 29.5.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
@@ -233,6 +233,7 @@ Requires-Dist: iqm-exa-common <27,>=26 ; extra == 'cli'
233
233
  Requires-Dist: click <9,>=8.1.6 ; extra == 'cli'
234
234
  Requires-Dist: jsonschema >=4.6.0 ; extra == 'cli'
235
235
  Requires-Dist: psutil >=5.9.2 ; extra == 'cli'
236
+ Requires-Dist: types-psutil ; extra == 'cli'
236
237
  Requires-Dist: python-daemon >=2.3.0 ; extra == 'cli'
237
238
  Provides-Extra: qiskit
238
239
  Requires-Dist: iqm-station-control-client <10,>=9 ; extra == 'qiskit'
@@ -10,18 +10,18 @@ iqm/cirq_iqm/devices/__init__.py,sha256=WxbvNAqmeoV4mNy9M9IpjwmyNDpAP7ec1XFdjN7w
10
10
  iqm/cirq_iqm/devices/adonis.py,sha256=ZWaA4_OfO6fBcrLYHONTjtW8aSlVq2nwy9IiW529gQw,1390
11
11
  iqm/cirq_iqm/devices/aphrodite.py,sha256=0K8zRo6gVVadQo7LJfs6laUVLzS3fNkrXMrPlwieyJ8,4018
12
12
  iqm/cirq_iqm/devices/apollo.py,sha256=_k7L45zyHZnpdZWMMXO6zci3XY3UEnBj2RmvxM6D7Mg,2238
13
- iqm/cirq_iqm/devices/iqm_device.py,sha256=8cVCJhy0YFLArYvajI7o8E2DbLNpimlak3yVaBW5BKw,15399
14
- iqm/cirq_iqm/devices/iqm_device_metadata.py,sha256=J_mBU6gJx34tcmX_He0c7nSV5Sb9o0pH3LtpcIblT60,7112
15
- iqm/cirq_iqm/examples/demo_adonis.py,sha256=rbLEs_CPO-J4OGnYLrlWismzVB6jT026F_X8epNxt0s,1726
16
- iqm/cirq_iqm/examples/demo_apollo.py,sha256=S9HEE_TzSRlh0lfv57c9lFmrJZzAZtnRAkXjfgMSSGU,1749
17
- iqm/cirq_iqm/examples/demo_common.py,sha256=9SUfl0vfbO_6NPOsYt3-OmBQ3jAuYWCLj6ASImD2bjM,8620
13
+ iqm/cirq_iqm/devices/iqm_device.py,sha256=PtYWBVfkXvtRH2kRpzwpTeGfgd8MgptXGSC3MAjlBGo,15430
14
+ iqm/cirq_iqm/devices/iqm_device_metadata.py,sha256=-6qnPa8Pp68ruYMzfHO_dlSDvakO25LxqHn68bHdQT0,7143
15
+ iqm/cirq_iqm/examples/demo_adonis.py,sha256=rPd8VYqccYijG6t92hfvKsk8RAaMGHOmm4JelYjt3rw,1728
16
+ iqm/cirq_iqm/examples/demo_apollo.py,sha256=vnDwcEXqEyew0cf4SDDQ2budP-giizSNJU3dgOw15H0,1751
17
+ iqm/cirq_iqm/examples/demo_common.py,sha256=l47o574xzIo8Ri5j-RGjY2NRNJN4IU6d6l0dcwDWRtM,8731
18
18
  iqm/cirq_iqm/examples/demo_iqm_execution.py,sha256=8eSl0jsVdIsxZtpocd223jhJ-89C4p7zjlfBV3_6sYk,2506
19
19
  iqm/cirq_iqm/examples/usage.ipynb,sha256=Kyfyu_MwqzTavHVNjgrWJo1tZPeJwTw7ExcU0MFYNRk,34208
20
20
  iqm/iqm_client/__init__.py,sha256=D-8W54EcQIxk_1JZo_86GYlR1YitHhPIiFwwLJ2IfGE,1411
21
21
  iqm/iqm_client/api.py,sha256=_c6OVuv2dyzBF7J2XlK_qxisTSPyOiI4gYokZPsuaJY,3083
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=blaTt4lBcgn8bpPkvS1-zCRxUWXBGIjGg5o5sUsynf8,39302
24
+ iqm/iqm_client/iqm_client.py,sha256=dZo6do3Q562X-wDTXdeLKzlTjjr_00J7CMU04ldYP-I,39450
25
25
  iqm/iqm_client/models.py,sha256=PdqpI_6MVCRzQozl6-qGD2LaR-gTdW0at8Lw5KcTBnU,50895
26
26
  iqm/iqm_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
27
  iqm/iqm_client/transpile.py,sha256=eEv9eY5QG94Lke7Xp6BkQapl1rvlmlVQ_IkQFopPNQ8,36981
@@ -31,7 +31,6 @@ iqm/iqm_client/cli/__init__.py,sha256=zzLDDz5rc3lJke3OKU8zxR5zQyQoM9oI2bLJ2YKk_z
31
31
  iqm/iqm_client/cli/auth.py,sha256=SCOZ6QHw9l8oE-A1QSYfAKYuqZxkZkYrwaNWzGFY1AU,6363
32
32
  iqm/iqm_client/cli/cli.py,sha256=YhTgOGrvNXPwCdCKHcwLHeE_6C3n91MxFhvgQYT78C4,28633
33
33
  iqm/iqm_client/cli/models.py,sha256=Hu-t6c_07Cth3AuQBo0CDTcWVQg1xbJCpy_94V0o64U,1199
34
- iqm/iqm_client/cli/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
35
34
  iqm/iqm_client/cli/token_manager.py,sha256=e8M3UihnawxGlajAw5AP6x4TEH5PaCRQ4ADNnRw4wUI,6967
36
35
  iqm/qiskit_iqm/__init__.py,sha256=Mv9V_r8ZcmGC8Ke5S8-7yLOx02vjZ1qiVx8mtbOpwnY,1420
37
36
  iqm/qiskit_iqm/iqm_backend.py,sha256=LhyhccB9u_Y4lyFTzAQkYfX7CI_hbBx3CQHwbwR3wlA,13975
@@ -57,10 +56,10 @@ iqm/qiskit_iqm/fake_backends/fake_apollo.py,sha256=eT2vd3kQBi1rrvxCpePymBCfFK84d
57
56
  iqm/qiskit_iqm/fake_backends/fake_deneb.py,sha256=RzQXmLXmBARDiMKVxk5Aw9fVbc6IYlW0A5jibk9iYD0,3156
58
57
  iqm/qiskit_iqm/fake_backends/fake_garnet.py,sha256=GI0xafTCj1Um09qVuccO6GPOGBm6ygul_O40Wu220Ys,5555
59
58
  iqm/qiskit_iqm/fake_backends/iqm_fake_backend.py,sha256=wJtfsxjPYbDKmzaz5R4AuaXvvPHa21WyPtRgNctL9eY,16785
60
- iqm_client-29.3.0.dist-info/AUTHORS.rst,sha256=qsxeK5A3-B_xK3hNbhFHEIkoHNpo7sdzYyRTs7Bdtm8,795
61
- iqm_client-29.3.0.dist-info/LICENSE.txt,sha256=2DXrmQtVVUV9Fc9RBFJidMiTEaQlG2oAtlC9PMrEwTk,11333
62
- iqm_client-29.3.0.dist-info/METADATA,sha256=AUHb_Wb7hc5_AXD27mtTyakTP1pdkVCIbW5oeKM335E,17545
63
- iqm_client-29.3.0.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
64
- iqm_client-29.3.0.dist-info/entry_points.txt,sha256=Kk2qfRwk8vbIJ7qCAvmaUogfRRn6t92_hBFhe6kqAE4,1317
65
- iqm_client-29.3.0.dist-info/top_level.txt,sha256=NB4XRfyDS6_wG9gMsyX-9LTU7kWnTQxNvkbzIxGv3-c,4
66
- iqm_client-29.3.0.dist-info/RECORD,,
59
+ iqm_client-29.5.0.dist-info/AUTHORS.rst,sha256=qsxeK5A3-B_xK3hNbhFHEIkoHNpo7sdzYyRTs7Bdtm8,795
60
+ iqm_client-29.5.0.dist-info/LICENSE.txt,sha256=2DXrmQtVVUV9Fc9RBFJidMiTEaQlG2oAtlC9PMrEwTk,11333
61
+ iqm_client-29.5.0.dist-info/METADATA,sha256=B7GAQP6rRMUHTb8SQJcB9qohQiCBXy6eYZFS2G1Ov4w,17590
62
+ iqm_client-29.5.0.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
63
+ iqm_client-29.5.0.dist-info/entry_points.txt,sha256=Kk2qfRwk8vbIJ7qCAvmaUogfRRn6t92_hBFhe6kqAE4,1317
64
+ iqm_client-29.5.0.dist-info/top_level.txt,sha256=NB4XRfyDS6_wG9gMsyX-9LTU7kWnTQxNvkbzIxGv3-c,4
65
+ iqm_client-29.5.0.dist-info/RECORD,,
File without changes