Skip to main contentIBM Quantum Documentation

qiskit.pulse.library.Square

qiskit.pulse.library.Square(duration, amp, phase, freq=None, angle=0.0, name=None, limit_amplitude=None) GitHub(opens in a new tab)

A square wave pulse.

The envelope of the pulse is given by:

f(x)=Asign[sin(2πx×freq+phase)],0<=x<durationf(x) = \text{A}\text{sign}\left[\sin \left(2\pi x\times\text{freq}+\text{phase}\right)\right] , 0 <= x < duration

where A=amp×exp(i×angle)\text{A} = \text{amp} \times\exp\left(i\times\text{angle}\right), and sign\text{sign} is the sign function with the convention sign(0)=1\text{sign}\left(0\right)=1.

Parameters

Returns

ScalableSymbolicPulse instance.

Return type

ScalableSymbolicPulse

Was this page helpful?