Implemented pulse shaping for lime.

This commit is contained in:
jupfi 2023-07-24 08:21:00 +02:00
parent 46c167841b
commit 18e25155a3

View file

@ -21,7 +21,7 @@ class Function:
def __init__(self, expr) -> None:
self.parameters = []
self.expr = expr
self.resolution = 22e-9 * 16 # 1e-6
self.resolution = 16/30.72e6
self.start_x = -1
self.end_x = 1
@ -74,6 +74,10 @@ class Function:
mpl_widget.canvas.ax.set_ylabel("Magnitude")
return mpl_widget
def get_pulse_amplitude(self, pulse_length: float) -> np.array:
"""Returns the pulse amplitude in the time domain."""
return self.evaluate(pulse_length)
def add_parameter(self, parameter: "Function.Parameter"):
self.parameters.append(parameter)