Skip to content

Commit

Permalink
Directly play from pulse
Browse files Browse the repository at this point in the history
  • Loading branch information
nulinspiratie committed Oct 18, 2024
1 parent 9bd7019 commit c88be57
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from abc import ABC, abstractmethod
from quam.components.pulses import Pulse
from quam.core import quam_dataclass, QuamComponent


Expand Down Expand Up @@ -35,9 +36,7 @@ class SinglePulseGateImplementation(SingleQubitGateImplementation):
"""

pulse: str
pulse: Pulse

def execute(self, amplitude_scale=None, duration=None):
self.qubit.play_pulse(
self.pulse_label, amplitude_scale=amplitude_scale, duration=duration
)
def execute(self, *, amplitude_scale=None, duration=None, **kwargs):
self.pulse.play(amplitude_scale=amplitude_scale, duration=duration, **kwargs)

0 comments on commit c88be57

Please sign in to comment.