qiskit-documentation/docs/api/qiskit/0.43/qiskit.pulse.library.drag.mdx

44 lines
2.3 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: drag
description: API reference for qiskit.pulse.library.drag
in_page_toc_min_heading_level: 1
python_api_type: function
python_api_name: qiskit.pulse.library.drag
---
<span id="qiskit-pulse-library-drag" />
# qiskit.pulse.library.drag
<Function id="qiskit.pulse.library.drag" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.24/qiskit/pulse/library/discrete.py" signature="drag(duration, amp, sigma, beta, name=None, zero_ends=True)">
Generates Y-only correction DRAG [`Waveform`](qiskit.pulse.library.Waveform "qiskit.pulse.library.Waveform") for standard nonlinear oscillator (SNO) \[1].
For $A=$ `amp`, $\sigma=$ `sigma`, and $\beta=$ `beta`, applies the `midpoint` sampling strategy to generate a discrete pulse sampled from the continuous function:
$$
f(x) = g(x) + i \beta h(x),
$$
where $g(x)$ is the function sampled in [`gaussian()`](qiskit.pulse.library.gaussian "qiskit.pulse.library.gaussian"), and $h(x)$ is the function sampled in [`gaussian_deriv()`](qiskit.pulse.library.gaussian_deriv "qiskit.pulse.library.gaussian_deriv").
If `zero_ends == True`, the samples from $g(x)$ are remapped as in [`gaussian()`](qiskit.pulse.library.gaussian "qiskit.pulse.library.gaussian").
**References**
1. [*Gambetta, J. M., Motzoi, F., Merkel, S. T. & Wilhelm, F. K. “Analytic control methods for high-fidelity unitary operations in a weakly nonlinear oscillator.” Phys. Rev. A 83, 012308 (2011).*](http://dx.doi.org/10.1103/PhysRevA.83.012308)
**Parameters**
* **duration** (*int*) Duration of pulse. Must be greater than zero.
* **amp** (*complex*) Pulse amplitude at center `duration/2`.
* **sigma** (*float*) Width (standard deviation) of pulse.
* **beta** (*float*) Y correction amplitude. For the SNO this is $\beta=-\frac{\lambda_1^2}{4\Delta_2}$. Where $\lambda_1$ is the relative coupling strength between the first excited and second excited states and $\Delta_2$ is the detuning between the respective excited states.
* **name** (*str | None*) Name of pulse.
* **zero\_ends** (*bool*) If True, zero ends at `x = -1, x = duration + 1`, but rescale to preserve amp.
**Return type**
[*Waveform*](qiskit.pulse.library.Waveform "qiskit.pulse.library.waveform.Waveform")
</Function>