iqm-pulse 9.4__py3-none-any.whl → 9.5__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/gates/__init__.py +2 -0
- iqm/pulse/gates/default_gates.py +2 -1
- iqm/pulse/gates/rz.py +21 -1
- {iqm_pulse-9.4.dist-info → iqm_pulse-9.5.dist-info}/METADATA +1 -1
- {iqm_pulse-9.4.dist-info → iqm_pulse-9.5.dist-info}/RECORD +8 -8
- {iqm_pulse-9.4.dist-info → iqm_pulse-9.5.dist-info}/LICENSE.txt +0 -0
- {iqm_pulse-9.4.dist-info → iqm_pulse-9.5.dist-info}/WHEEL +0 -0
- {iqm_pulse-9.4.dist-info → iqm_pulse-9.5.dist-info}/top_level.txt +0 -0
iqm/pulse/gates/__init__.py
CHANGED
|
@@ -66,6 +66,7 @@ from iqm.pulse.gates.reset import Reset_Conditional, Reset_Wait
|
|
|
66
66
|
from iqm.pulse.gates.rz import (
|
|
67
67
|
RZ_ACStarkShift_CosineRiseFall,
|
|
68
68
|
RZ_ACStarkShift_smoothConstant,
|
|
69
|
+
RZ_PRX_Composite,
|
|
69
70
|
RZ_Virtual,
|
|
70
71
|
get_unitary_rz,
|
|
71
72
|
)
|
|
@@ -88,6 +89,7 @@ _exposed_implementations: dict[str, type[GateImplementation]] = {
|
|
|
88
89
|
PRX_HdDragSX,
|
|
89
90
|
SXGate,
|
|
90
91
|
UGate,
|
|
92
|
+
RZ_PRX_Composite,
|
|
91
93
|
RZ_Virtual,
|
|
92
94
|
CZ_CRF_ACStarkCRF,
|
|
93
95
|
CZ_Slepian_ACStarkCRF,
|
iqm/pulse/gates/default_gates.py
CHANGED
|
@@ -47,6 +47,7 @@ from iqm.pulse.gates.prx import (
|
|
|
47
47
|
from iqm.pulse.gates.reset import Reset_Conditional, Reset_Wait
|
|
48
48
|
from iqm.pulse.gates.rz import (
|
|
49
49
|
RZ_ACStarkShift_CosineRiseFall,
|
|
50
|
+
RZ_PRX_Composite,
|
|
50
51
|
RZ_Virtual,
|
|
51
52
|
get_unitary_rz,
|
|
52
53
|
)
|
|
@@ -71,7 +72,7 @@ _default_implementations = {
|
|
|
71
72
|
},
|
|
72
73
|
"u": {"prx_u": UGate},
|
|
73
74
|
"sx": {"prx_sx": SXGate},
|
|
74
|
-
"rz": {"virtual": RZ_Virtual},
|
|
75
|
+
"rz": {"virtual": RZ_Virtual, "prx_composite": RZ_PRX_Composite},
|
|
75
76
|
"rz_physical": {"ac_stark_crf": RZ_ACStarkShift_CosineRiseFall},
|
|
76
77
|
"cz": {
|
|
77
78
|
"tgss": CZ_TruncatedGaussianSmoothedSquare,
|
iqm/pulse/gates/rz.py
CHANGED
|
@@ -32,6 +32,7 @@ import numpy as np
|
|
|
32
32
|
from exa.common.data.parameter import Parameter
|
|
33
33
|
from iqm.pulse.gate_implementation import (
|
|
34
34
|
SINGLE_COMPONENTS_WITH_DRIVE_LOCUS_MAPPING,
|
|
35
|
+
CompositeGate,
|
|
35
36
|
GateImplementation,
|
|
36
37
|
Locus,
|
|
37
38
|
OILCalibrationData,
|
|
@@ -46,7 +47,7 @@ from iqm.pulse.utils import normalize_angle, phase_transformation
|
|
|
46
47
|
if TYPE_CHECKING: # pragma: no cover
|
|
47
48
|
from iqm.pulse.builder import ScheduleBuilder
|
|
48
49
|
from iqm.pulse.quantum_ops import QuantumOp
|
|
49
|
-
|
|
50
|
+
from iqm.pulse.timebox import TimeBox
|
|
50
51
|
|
|
51
52
|
|
|
52
53
|
@lru_cache
|
|
@@ -245,3 +246,22 @@ class RZ_ACStarkShift_smoothConstant(
|
|
|
245
246
|
|
|
246
247
|
def __call__(self):
|
|
247
248
|
return super().__call__(angle=np.pi)
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
class RZ_PRX_Composite(CompositeGate):
|
|
252
|
+
"""RZ gate implemented as a sequence of PRX gates."""
|
|
253
|
+
|
|
254
|
+
registered_gates = ["prx"]
|
|
255
|
+
|
|
256
|
+
def __init__(self, parent, name, locus, calibration_data, builder):
|
|
257
|
+
super().__init__(parent, name, locus, calibration_data, builder)
|
|
258
|
+
|
|
259
|
+
def __call__(self, angle: float) -> TimeBox:
|
|
260
|
+
prx = self.build("prx", self.locus)
|
|
261
|
+
return TimeBox.composite(
|
|
262
|
+
[
|
|
263
|
+
prx.ry(np.pi / 2),
|
|
264
|
+
prx.rx(angle),
|
|
265
|
+
prx.ry(-np.pi / 2),
|
|
266
|
+
]
|
|
267
|
+
)
|
|
@@ -8,11 +8,11 @@ iqm/pulse/scheduler.py,sha256=jBi68_Y1RVNe3aDmP4wmudDs5vXCHZm-UXl3IpgNDDM,22738
|
|
|
8
8
|
iqm/pulse/timebox.py,sha256=w3R6VafBXx_cGWrcvI_6x1e6JII_9v1vxQoRSGIjtXE,16591
|
|
9
9
|
iqm/pulse/utils.py,sha256=HyTkMD0er_rZnvDZWM1WscOFxaxGMyRAW_Aw36b0Hdc,7998
|
|
10
10
|
iqm/pulse/validation.py,sha256=-tZWrW201t4nbTQWeZ8M9DixzoN8B0Q63IP57BfDAz0,10733
|
|
11
|
-
iqm/pulse/gates/__init__.py,sha256=
|
|
11
|
+
iqm/pulse/gates/__init__.py,sha256=zMz1jDQg6EFsTreNu0NyhOWpecWnbAntrvSlJQa7Xoo,12926
|
|
12
12
|
iqm/pulse/gates/barrier.py,sha256=WhYV70lf4lh4Wa9UZuMk2lp9JbUQIu8lzewRC2P7pNE,2546
|
|
13
13
|
iqm/pulse/gates/conditional.py,sha256=3tW5kVt2M2xaTJxaixTErU5DTe91F0uE9BN9kopBEkQ,6242
|
|
14
14
|
iqm/pulse/gates/cz.py,sha256=QgV-mn2aPDbfNplwEi18Lll4Zle-IELpn43IPM6Q_w8,20141
|
|
15
|
-
iqm/pulse/gates/default_gates.py,sha256=
|
|
15
|
+
iqm/pulse/gates/default_gates.py,sha256=kLNYjt-ZXYPvfBS1p8pi7e3gZz2UnMSWS4S2Xmj6omg,9413
|
|
16
16
|
iqm/pulse/gates/delay.py,sha256=nST9dY2JFp_mpKhiSfsYa5yL4hFKcNJSAyCzXjhauQg,3767
|
|
17
17
|
iqm/pulse/gates/enums.py,sha256=ATwb6vZYpfgQ1gQyFPW53JyIKrdAP3FPHm6jV-t9OAk,2532
|
|
18
18
|
iqm/pulse/gates/flux_multiplexer.py,sha256=lnlynR_SWM6Wp7RjVcyParCSNKacKargEC5lLF5jwKU,9692
|
|
@@ -20,7 +20,7 @@ iqm/pulse/gates/measure.py,sha256=VlcPufdl3tG2MNcRkUzKjBz5BFqVVqBOCn6-mPTRhoc,29
|
|
|
20
20
|
iqm/pulse/gates/move.py,sha256=yKY-Et4YJV0KmcDwN0yE3oHgDtLL-Xfgy1G_InsJN0U,17182
|
|
21
21
|
iqm/pulse/gates/prx.py,sha256=SaJHcVu-NURUBTF5LtmTwwK1qcCtXA89NA5VwJXBM1o,24504
|
|
22
22
|
iqm/pulse/gates/reset.py,sha256=ZgliZd2yVJZuVyeVt6qnnVTt3CGb-cLCIWmoq4nS4lk,7574
|
|
23
|
-
iqm/pulse/gates/rz.py,sha256=
|
|
23
|
+
iqm/pulse/gates/rz.py,sha256=6iQudKjEhze0DkGDY1GZIJ7IW1QqxL7Fy74lTrJ4o8s,9416
|
|
24
24
|
iqm/pulse/gates/sx.py,sha256=V8e94LHRLkXLjSSeuKxZQbhwgGDAWdQxsfhbYi4gtp8,1673
|
|
25
25
|
iqm/pulse/gates/u.py,sha256=2kmbTYprrkVP4EbwGXNZcT5lzInjjOAvq8vk0lw57YY,5256
|
|
26
26
|
iqm/pulse/playlist/__init__.py,sha256=XW-7Po_vCzhkk1Js06K8P-5srPpBuPHkqpc1yhL_Zx4,997
|
|
@@ -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.
|
|
42
|
-
iqm_pulse-9.
|
|
43
|
-
iqm_pulse-9.
|
|
44
|
-
iqm_pulse-9.
|
|
45
|
-
iqm_pulse-9.
|
|
41
|
+
iqm_pulse-9.5.dist-info/LICENSE.txt,sha256=R6Q7eUrLyoCQgWYorQ8WJmVmWKYU3dxA3jYUp0wwQAw,11332
|
|
42
|
+
iqm_pulse-9.5.dist-info/METADATA,sha256=NX869B0rRRNQsZlG_eF1nBj-GejOTkUSAXNdTclcj34,14520
|
|
43
|
+
iqm_pulse-9.5.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
|
|
44
|
+
iqm_pulse-9.5.dist-info/top_level.txt,sha256=NB4XRfyDS6_wG9gMsyX-9LTU7kWnTQxNvkbzIxGv3-c,4
|
|
45
|
+
iqm_pulse-9.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|