qiskit.pulse.library.GaussianSquareDrag
qiskit.pulse.library.GaussianSquareDrag(duration, amp, sigma, beta, width=None, angle=0.0, risefall_sigma_ratio=None, name=None, limit_amplitude=None)
A square pulse with a Drag shaped rise and fall
This pulse shape is similar to GaussianSquare
but uses Drag
for its rise and fall instead of Gaussian
. The addition of the DRAG component of the rise and fall is sometimes helpful in suppressing the spectral content of the pulse at frequencies near to, but slightly offset from, the fundamental frequency of the drive. When there is a spectator qubit close in frequency to the fundamental frequency, suppressing the drive at the spectator’s frequency can help avoid unwanted excitation of the spectator.
Exactly one of the risefall_sigma_ratio
and width
parameters has to be specified.
If risefall_sigma_ratio
is not None
and width
is None
:
If width
is not None and risefall_sigma_ratio
is None:
Gaussian and lifted gaussian curves can be written as:
From these, the lifted DRAG curve can be written as
The lifted gaussian square drag pulse is defined as:
where .
Parameters
- duration (int |ParameterExpression) – Pulse length in terms of the sampling period dt.
- amp (float |ParameterExpression) – The amplitude of the DRAG rise and fall and of the square pulse.
- sigma (float |ParameterExpression) – A measure of how wide or narrow the DRAG risefall is; see the class docstring for more details.
- beta (float |ParameterExpression) – The DRAG correction amplitude.
- width (ParameterExpression |float | None) – The duration of the embedded square pulse.
- angle (ParameterExpression |float | None) – The angle in radians of the complex phase factor uniformly scaling the pulse. Default value 0.
- risefall_sigma_ratio (ParameterExpression |float | None) – The ratio of each risefall duration to sigma.
- 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.
Raises
PulseError – When width and risefall_sigma_ratio are both empty or both non-empty.
Return type