pub struct Gaussian {
pub duration: f64,
pub fwhm: f64,
pub t0: f64,
pub sample_rate: f64,
pub scale: f64,
pub phase: f64,
pub detuning: f64,
}
Expand description
Creates a waveform with a Gaussian shape.
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)
sample_rate: f64
Generate waveform 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<'de> Deserialize<'de> for Gaussian
impl<'de> Deserialize<'de> for Gaussian
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 WaveformTemplate for Gaussian
impl WaveformTemplate for Gaussian
fn into_iq_values(self) -> Vec<Complex64>
impl Copy for Gaussian
impl StructuralPartialEq for Gaussian
Auto Trait Implementations§
impl Freeze for Gaussian
impl RefUnwindSafe for Gaussian
impl Send for Gaussian
impl Sync for Gaussian
impl Unpin for Gaussian
impl UnwindSafe for Gaussian
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.