qiskit.pulse.library.cos¶
- cos(duration, amp, freq=None, phase=0, name=None)[Quellcode]¶
Generates cosine wave
Waveform
.For \(A=\)
amp
, \(\omega=\)freq
, and \(\phi=\)phase
, applies the midpoint sampling strategy to generate a discrete pulse sampled from the continuous function:\[f(x) = A \cos(2 \pi \omega x + \phi)\]- Parameter
duration (
int
) – Duration of pulse. Must be greater than zero.amp (
complex
) – Pulse amplitude.freq (
Optional
[float
]) – Pulse frequency, units of 1/dt. IfNone
defaults to single cycle.phase (
float
) – Pulse phase.name (
Optional
[str
]) – Name of pulse.
- Rückgabetyp