Skip to main contentIBM Quantum Documentation
You are viewing the API reference for an old version of Qiskit SDK. Switch to latest version


sin(duration, amp, freq=None, phase=0, name=None)

GitHub(opens in a new tab)

Generates sine wave Waveform.

For A=A= amp, ω=\omega= freq, and ϕ=\phi= phase, applies the midpoint sampling strategy to generate a discrete pulse sampled from the continuous function:

f(x)=Asin(2πωx+ϕ)f(x) = A \sin(2 \pi \omega x + \phi)


  • duration (int) – Duration of pulse. Must be greater than zero.
  • amp (complex) – Pulse amplitude.
  • freq (Optional[float]) – Pulse frequency, units of 1/dt. If None defaults to single cycle.
  • phase (float) – Pulse phase.
  • name (Optional[str]) – Name of pulse.

Return type


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