Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 1.56 KB

README_waveform_tools.md

File metadata and controls

36 lines (29 loc) · 1.56 KB

Waveform Tools

Introduction


This package includes tools for creating waveforms.

Functions


  • drag_gaussian_pulse_waveforms - Creates Gaussian based DRAG waveforms that compensate for the leakage and for the AC stark shift.
  • drag_cosine_pulse_waveforms - Creates Cosine based DRAG waveforms that compensate for the leakage and for the AC stark shift.
  • flattop_gaussian_waveform - Creates a waveform with a flat top and a gaussian rise/fall.
  • flattop_cosine_waveform - Creates a waveform with a flat top and a cosine rise/fall.
  • flattop_tanh_waveform - Creates a waveform with a flat top and a tanh rise/fall.
  • flattop_blackman_waveform - Creates a waveform with a flat top and a Blackman rise/fall.
  • blackman_integral_waveform - Creates a Blackman integral waveform.

Example use case

Example of parameters and how the waveforms can be defined:

from qualang_tools.config.waveform_tools import *
drag_len = 16  # length of pulse in ns
drag_amp = 0.1  # amplitude of pulse in Volts
drag_del_f = 0e6  # Detuning frequency in Hz
drag_alpha = 1  # DRAG coefficient
drag_delta = -200e6 * 2 * np.pi  # in Hz

# DRAG Gaussian envelope:
drag_gauss_I_wf, drag_gauss_Q_wf = drag_gaussian_pulse_waveforms(drag_amp, drag_len, drag_len / 5, drag_alpha, drag_delta, drag_del_f, subtracted=False)  # pi pulse

# DRAG Cosine envelope:
drag_cos_I_wf, drag_cos_Q_wf = drag_cosine_pulse_waveforms(drag_amp, drag_len, drag_alpha, drag_delta, drag_del_f)  # pi pulse

# Flattop Cosine
flattop_cosine = flattop_cosine_waveform(0.2, 100, 5)