boulderopalscaleup.common.ConstantWaveform

class boulderopalscaleup.common.ConstantWaveform(duration_ns, amplitude, waveform_type='Constant')

A constant-amplitude pulse waveform.

This waveform maintains a constant amplitude value for the entire duration, producing a rectangular pulse shape.

Variables

  • duration_ns (int) – Duration of the waveform in nanoseconds. Must be positive. Typical values: 20-100 ns for gates, 1000-2000 ns for measurements.
  • amplitude (float) – Amplitude of the constant waveform. Dimensionless, typically normalized in the range [0, 1]. Common values: 0.1-0.4.
  • waveform_type (Literal [ "Constant" ]) – Type discriminator for serialization.

Notes

The waveform is mathematically defined as:

$$f(t) = A$$

where: AA is the amplitude and tin[0,textdurationns]t in [0, text{duration_ns}].

This is the simplest waveform type, useful for testing and basic pulse sequences where pulse shaping is not required.

SEE ALSO

GaussianWaveform : For shaped pulses with smooth edges

Methods

init
show

Was this useful?