iqm-pulse 9.0__py3-none-any.whl → 9.2__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/pulse/builder.py CHANGED
@@ -34,6 +34,7 @@ import iqm.models.playlist.instructions as sc_instructions # TODO make SC use i
34
34
  from iqm.models.playlist.segment import Segment as SC_Schedule # iqm.models names are temporary
35
35
  from iqm.models.playlist.waveforms import to_canonical
36
36
 
37
+ from exa.common.helpers.yaml_helper import load_yaml
37
38
  from exa.common.qcm_data.chip_topology import ChipTopology, sort_components
38
39
  from iqm.pulse.base_utils import _dicts_differ, merge_dicts
39
40
  from iqm.pulse.gate_implementation import (
@@ -76,7 +77,6 @@ from iqm.pulse.utils import (
76
77
  _process_implementations,
77
78
  _validate_locus_defaults,
78
79
  _validate_op_attributes,
79
- load_yaml,
80
80
  )
81
81
 
82
82
  logger = logging.getLogger(__name__)
iqm/pulse/utils.py CHANGED
@@ -19,10 +19,9 @@ from __future__ import annotations
19
19
 
20
20
  from collections.abc import Iterable
21
21
  import copy
22
- from typing import Any, get_args, get_origin
22
+ from typing import get_args, get_origin
23
23
 
24
24
  import numpy as np
25
- from ruamel.yaml import YAML
26
25
 
27
26
  from exa.common.data.parameter import CollectionType, DataType
28
27
  from iqm.pulse.quantum_ops import QuantumOpTable
@@ -70,22 +69,6 @@ def map_waveform_param_types(type_hint: type) -> tuple[DataType, CollectionType]
70
69
  return (data_type, collection_type)
71
70
 
72
71
 
73
- def load_yaml(path: str) -> dict[str, Any]:
74
- """Load a YAML file from the given path, raise error if the file can't be loaded.
75
-
76
- Args:
77
- path: path to a YAML file
78
-
79
- Returns:
80
- contents of the YAML file as Python types
81
-
82
- """
83
- with open(path, encoding="utf-8") as f:
84
- yaml = YAML(typ="safe") # default, if not specified, is 'rt' (round-trip)
85
- data = yaml.load(f)
86
- return data
87
-
88
-
89
72
  def normalize_angle(angle: float) -> float:
90
73
  """Normalize the given angle to (-pi, pi].
91
74
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: iqm-pulse
3
- Version: 9.0
3
+ Version: 9.2
4
4
  Summary: A Python-based project for providing interface and implementations for control pulses.
5
5
  Author-email: IQM Finland Oy <info@meetiqm.com>
6
6
  License: Apache License
@@ -217,7 +217,6 @@ Requires-Dist: iqm-exa-common <27,>=26
217
217
  Requires-Dist: iqm-data-definitions <3.0,>=2.6
218
218
  Requires-Dist: python-rapidjson ==1.20
219
219
  Requires-Dist: jinja2 ==3.0.3
220
- Requires-Dist: ruamel.yaml ==0.17.32
221
220
  Requires-Dist: numpy <3.0,>=1.25.2
222
221
  Requires-Dist: scipy <1.16,>=1.11.4
223
222
 
@@ -1,12 +1,12 @@
1
1
  iqm/pulse/__init__.py,sha256=FxgHlv3bF8bQCREwOJ1yu_nsrfJq0g0HdovvT1wUnCI,881
2
2
  iqm/pulse/base_utils.py,sha256=tLbmnWGmHsjcA8QFCiqvHfgSJJNWS4AVTcD2y4M2ipU,2641
3
- iqm/pulse/builder.py,sha256=fY4FIMLLTUJWYMvH3B5OqKedHv5IewAu5z8wCwrXvxI,67113
3
+ iqm/pulse/builder.py,sha256=qSAdX-HuJIg_7JxzWeEPmQVDC9x_cEgcAFHQWzff0G8,67151
4
4
  iqm/pulse/circuit_operations.py,sha256=LhOcgSXVYUr6-JzI38uy3r14Bnra9Yu-Zlubg2l_MUA,22665
5
5
  iqm/pulse/gate_implementation.py,sha256=ThLgwXKM-cnoDpg7r3qm7l8_PhgsCcb-4eeuvggPc_w,33923
6
6
  iqm/pulse/quantum_ops.py,sha256=VxWOV_XD61JjQl0ugKhgY0TSOhg3CRwcrpLvpzIAcIQ,14732
7
7
  iqm/pulse/scheduler.py,sha256=jBi68_Y1RVNe3aDmP4wmudDs5vXCHZm-UXl3IpgNDDM,22738
8
8
  iqm/pulse/timebox.py,sha256=w3R6VafBXx_cGWrcvI_6x1e6JII_9v1vxQoRSGIjtXE,16591
9
- iqm/pulse/utils.py,sha256=-i_9hkMYEBK7RZv3fHy--BRzHgZoKyKUbHgHdAwT6og,8453
9
+ iqm/pulse/utils.py,sha256=HyTkMD0er_rZnvDZWM1WscOFxaxGMyRAW_Aw36b0Hdc,7998
10
10
  iqm/pulse/validation.py,sha256=-tZWrW201t4nbTQWeZ8M9DixzoN8B0Q63IP57BfDAz0,10733
11
11
  iqm/pulse/gates/__init__.py,sha256=2v1wRMyQlyzScBk2D3wit3C2qbPhUHpSJbGPfSUespY,12878
12
12
  iqm/pulse/gates/barrier.py,sha256=WhYV70lf4lh4Wa9UZuMk2lp9JbUQIu8lzewRC2P7pNE,2546
@@ -38,8 +38,8 @@ iqm/pulse/playlist/visualisation/templates/static/logo.png,sha256=rbfQZ6_UEaztpY
38
38
  iqm/pulse/playlist/visualisation/templates/static/moment.min.js,sha256=4iQZ6BVL4qNKlQ27TExEhBN1HFPvAvAMbFavKKosSWQ,53324
39
39
  iqm/pulse/playlist/visualisation/templates/static/vis-timeline-graph2d.min.css,sha256=svzNasPg1yR5gvEaRei2jg-n4Pc3sVyMUWeS6xRAh6U,19837
40
40
  iqm/pulse/playlist/visualisation/templates/static/vis-timeline-graph2d.min.js,sha256=OqCqCyA6JnxPz3PGXq_P_9VuSqWptgNt5Ev3T-xjefQ,570288
41
- iqm_pulse-9.0.dist-info/LICENSE.txt,sha256=R6Q7eUrLyoCQgWYorQ8WJmVmWKYU3dxA3jYUp0wwQAw,11332
42
- iqm_pulse-9.0.dist-info/METADATA,sha256=MuGGf17wrhao1fVpGyZ3ebX3fPuVDDm4-G1LJ8SLTRY,14557
43
- iqm_pulse-9.0.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
44
- iqm_pulse-9.0.dist-info/top_level.txt,sha256=NB4XRfyDS6_wG9gMsyX-9LTU7kWnTQxNvkbzIxGv3-c,4
45
- iqm_pulse-9.0.dist-info/RECORD,,
41
+ iqm_pulse-9.2.dist-info/LICENSE.txt,sha256=R6Q7eUrLyoCQgWYorQ8WJmVmWKYU3dxA3jYUp0wwQAw,11332
42
+ iqm_pulse-9.2.dist-info/METADATA,sha256=hhTVZDo0r8LKEq8CJPeomwBhrEU_2UMzAGL8doyeHkw,14520
43
+ iqm_pulse-9.2.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
44
+ iqm_pulse-9.2.dist-info/top_level.txt,sha256=NB4XRfyDS6_wG9gMsyX-9LTU7kWnTQxNvkbzIxGv3-c,4
45
+ iqm_pulse-9.2.dist-info/RECORD,,