Skip to content

Commit

Permalink
Update src/qibolab/_core/native.py
Browse files Browse the repository at this point in the history
Co-authored-by: Stavros Efthymiou <[email protected]>
  • Loading branch information
ElStabilini and stavros11 authored Nov 26, 2024
1 parent 2078fd9 commit 88d0fd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qibolab/_core/native.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ def R(self, theta: float = np.pi, phi: float = 0.0) -> PulseSequence:
``theta`` will be the angle of the rotation, while ``phi`` the angle that the rotation axis forms with x axis.
"""
if self.RX90 != None:
return rotation(self.RX, 2 * theta, phi)
if self.RX90 is not None:
return rotation(self.RX90, 2 * theta, phi)
assert self.RX is not None
return rotation(self.RX, theta, phi)

Expand Down

0 comments on commit 88d0fd1

Please sign in to comment.