# boulderopalscaleup.common.ConstantWaveform

Source: https://docs.q-ctrl.com/references/boulder-opal-scale-up/boulderopalscaleup/common/ConstantWaveform

```python
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: $A$ is the amplitude and $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`](https://docs.q-ctrl.com/references/boulder-opal-scale-up/boulderopalscaleup/common/GaussianWaveform.md#boulderopalscaleup.common.GaussianWaveform)
: For shaped pulses with smooth edges

## Methods

|||
|----------------------------------------------------------------------------------------------------------------------------|----|
| [__init__](https://docs.q-ctrl.com/references/boulder-opal-scale-up/boulderopalscaleup/common/boulderopalscaleup.common.ConstantWaveform.__init__.md#boulderopalscaleup.common.ConstantWaveform.__init__)   |    |
| `show`                                                                                                                     |    |
