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.Square
qiskit.pulse.library.Square(duration, amp, phase, freq=None, angle=0.0, name=None, limit_amplitude=None)
A square wave pulse.
The envelope of the pulse is given by:
where , and is the sign function with the convention .
Parameters
- duration (int |ParameterExpression) – Pulse length in terms of the sampling period dt.
- amp (float |ParameterExpression) – The magnitude of the amplitude of the square wave. Wave range is [-amp,`amp`].
- phase (float |ParameterExpression) – The phase of the square wave (note that this is not equivalent to the angle of the complex amplitude).
- freq (ParameterExpression |float | None) – The frequency of the square wave, in terms of 1 over sampling period. If not provided defaults to a single cycle (i.e :math:’frac{1}{text{duration}}’). The frequency is limited to the range (the Nyquist frequency).
- angle (ParameterExpression |float | None) – The angle in radians of the complex phase factor uniformly scaling the pulse. Default value 0.
- name (str | None) – Display name for this pulse envelope.
- limit_amplitude (bool | None) – If
True
, then limit the amplitude of the waveform to 1. The default isTrue
and the amplitude is constrained to 1.
Returns
ScalableSymbolicPulse instance.
Return type
ScalableSymbolicPulse
Was this page helpful?
Report a bug or request content on GitHub.