pub struct DragGaussian {
pub duration: f64,
pub fwhm: f64,
pub t0: f64,
pub anh: f64,
pub alpha: f64,
pub sample_rate: f64,
pub scale: f64,
pub phase: f64,
pub detuning: f64,
}
Expand description
Creates a waveform with a DRAG-corrected Gaussian shape.
This is a Gaussian shape with an additional component proportional to the time derivative of the main Gaussian pulse.
See Motzoi F. et al., Phys. Rev. Lett., 103 (2009) 110501. for details.
Fields§
§duration: f64
Full duration of the pulse (s)
fwhm: f64
Full width half maximum of the pulse (s)
t0: f64
Center/offset for pulse centroid (s)
anh: f64
Qubit anharmonicity - sets rate of evolution for the imaginary term (Hz)
alpha: f64
DRAG parameter - controls strength of the imaginary term
sample_rate: f64
Generate samples at this rate (Hz)
scale: f64
Scale to apply to waveform envelope
phase: f64
Phase shift for entire waveform
detuning: f64
Explicit detuning to bake into iq values
Trait Implementations§
Source§impl Clone for DragGaussian
impl Clone for DragGaussian
Source§fn clone(&self) -> DragGaussian
fn clone(&self) -> DragGaussian
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DragGaussian
impl Debug for DragGaussian
Source§impl<'de> Deserialize<'de> for DragGaussian
impl<'de> Deserialize<'de> for DragGaussian
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DragGaussian
impl PartialEq for DragGaussian
Source§impl Serialize for DragGaussian
impl Serialize for DragGaussian
Source§impl WaveformTemplate for DragGaussian
impl WaveformTemplate for DragGaussian
fn into_iq_values(self) -> Vec<Complex64>
impl Copy for DragGaussian
impl StructuralPartialEq for DragGaussian
Auto Trait Implementations§
impl Freeze for DragGaussian
impl RefUnwindSafe for DragGaussian
impl Send for DragGaussian
impl Sync for DragGaussian
impl Unpin for DragGaussian
impl UnwindSafe for DragGaussian
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.