pub struct ErfSquare {
pub duration: f64,
pub risetime: f64,
pub sample_rate: f64,
pub pad_left: f64,
pub pad_right: f64,
pub positive_polarity: bool,
pub scale: f64,
pub phase: f64,
pub detuning: f64,
}
Expand description
Creates a waveform with a flat top and edges that are error functions (erfs).
Fields§
§duration: f64
Full duration of the pulse (s)
risetime: f64
Slope of erf shoulders (2x FWHM of erf in s)
sample_rate: f64
Generate wavform samples at this rate (Hz)
pad_left: f64
Length of zero padding to add to beginning of pulse (s)
pad_right: f64
Length of zero padding to add to end of pulse (s)
positive_polarity: bool
Toggle for positive/negative polarity
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 ErfSquare
impl<'de> Deserialize<'de> for ErfSquare
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 ErfSquare
impl WaveformTemplate for ErfSquare
fn into_iq_values(self) -> Vec<Complex64>
impl Copy for ErfSquare
impl StructuralPartialEq for ErfSquare
Auto Trait Implementations§
impl Freeze for ErfSquare
impl RefUnwindSafe for ErfSquare
impl Send for ErfSquare
impl Sync for ErfSquare
impl Unpin for ErfSquare
impl UnwindSafe for ErfSquare
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§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.