Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.

qiskit.pulse.library.constant

constant(duration, amp, name=None)

GitHub

Generates constant-sampled Waveform.

For A=A= amp, samples from the function:

f(x)=Af(x) = A

Parameters

  • duration (int) – Duration of pulse. Must be greater than zero.
  • amp (complex) – Complex pulse amplitude.
  • name (str | None) – Name of pulse.

Return type

Waveform

Was this page helpful?
Report a bug or request content on GitHub.