About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
qiskit.pulse.library.sech
sech(duration, amp, sigma, name=None, zero_ends=True)
Generates unnormalized sech Waveform
.
For amp
and sigma
, applies the midpoint
sampling strategy to generate a discrete pulse sampled from the continuous function:
with the center duration/2
.
If zero_ends==True
, each output sample is modified according to:
where is the value of the endpoint samples. This sets the endpoints to while preserving the amplitude at the center. If , is set to . By default, the endpoints are at x = -1, x = duration + 1
.
Parameters
- duration (
int
) – Duration of pulse. Must be greater than zero. - amp (
complex
) – Pulse amplitude at duration/2. - sigma (
float
) – Width (standard deviation) of pulse. - name (
Optional
[str
]) – Name of pulse. - zero_ends (
bool
) – If True, zero ends atx = -1, x = duration + 1
, but rescale to preserve amp.
Return type
Was this page helpful?
Report a bug or request content on GitHub.