Skip to content

Commit 1e760d6

Browse files
committed
when creating a rotation from a SingleQubtNatives instance, make sure that the returned gates are unique instances
without this, when running AllXY gates such as X9-Yp had the same UUID. This caused problems with the qblox driver
1 parent d3bc9a7 commit 1e760d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/qibolab/_core/native.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ def R(self, theta: float = np.pi, phi: float = 0.0) -> PulseSequence:
9494
``theta`` will be the angle of the rotation, while ``phi`` the angle that the rotation axis forms with x axis.
9595
"""
9696
if self.RX90 is not None:
97-
return rotation(self.RX90, theta, phi, rx90=True)
97+
return rotation(self.RX90(), theta, phi, rx90=True)
9898
assert self.RX is not None
99-
return rotation(self.RX, theta, phi)
99+
return rotation(self.RX(), theta, phi)
100100

101101

102102
class TwoQubitNatives(NativeContainer):

0 commit comments

Comments
 (0)