Skip to content

Commit

Permalink
Merge pull request #1103 from qiboteam/pi_half
Browse files Browse the repository at this point in the history
added RX90 native gate and modified R method
  • Loading branch information
stavros11 authored Nov 28, 2024
2 parents 13c94d4 + 88d0fd1 commit 1c2bdf4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/qibolab/_core/native.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ class SingleQubitNatives(NativeContainer):

RX: Optional[Native] = None
"""Pulse to drive the qubit from state 0 to state 1."""
RX90: Optional[Native] = None
"""Pulse to drive the qubit from state 0 to state +"""
RX12: Optional[Native] = None
"""Pulse to drive to qubit from state 1 to state 2."""
MZ: Optional[Native] = None
Expand All @@ -78,6 +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 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 1c2bdf4

Please sign in to comment.