qiskit.pulse.library.constant¶
- constant(duration, amp, name=None)[source]¶
Generates constant-sampled
Waveform
.For \(A=\)
amp
, samples from the function:\[f(x) = A\]- Parameters
duration (
int
) -- Duration of pulse. Must be greater than zero.amp (
complex
) -- Complex pulse amplitude.name (
Optional
[str
]) -- Name of pulse.
- Return type