Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added RX90 native gate and modified R method #1103

Merged
merged 3 commits into from
Nov 28, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 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,8 +80,11 @@ 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.
"""
assert self.RX is not None
return rotation(self.RX, theta, phi)
if self.RX90 != None:
return rotation(self.RX, 2 * theta, phi)
ElStabilini marked this conversation as resolved.
Show resolved Hide resolved
else:
assert self.RX is not None
return rotation(self.RX, theta, phi)
ElStabilini marked this conversation as resolved.
Show resolved Hide resolved


class TwoQubitNatives(NativeContainer):
Expand Down