Square
- class qililab.Square(amplitude, duration)
Bases:
WaveformSquare (rectangular) waveform. Given by a constant height line.
- Parameters:
duration (
int) – Duration of the pulse (ns).amplitude (
float) – Maximum amplitude of the pulse.
Examples
To get the envelope of a square waveform, with
amplitudeequal toX, you need to do:import qililab as ql square_envelope = ql.Square(amplitude=X, duration=50).envelope()which for
Xbeing1.and0.75, look respectively like:
Methods
envelope([resolution])Constant amplitude envelope.
Get the duration of the waveform.
Attributes
yaml_tag