pub struct StabilityParameters {
pub energy_tolerance: f64,
pub rho_gate: f64,
pub predicted_descent: Option<f64>,
pub mu: Option<f64>,
pub alpha: Option<f64>,
pub beta: Option<f64>,
pub delta: Option<f64>,
pub smoothness_l: Option<f64>,
pub eta: Option<f64>,
pub ultimate_floor: Option<f64>,
}Expand description
The kernel-facing stability parameters (PSP-8 StabilityParameters).
Fields§
§energy_tolerance: f64§rho_gate: f64Single descent tolerance for the gate.
predicted_descent: Option<f64>Advisory analytic decrease only; never relaxes rho_gate.
mu: Option<f64>Spectral, computed from the verification graph.
alpha: Option<f64>§beta: Option<f64>§delta: Option<f64>§smoothness_l: Option<f64>§eta: Option<f64>§ultimate_floor: Option<f64>Requires alpha, beta, delta, mu.
Implementations§
Trait Implementations§
Source§impl Clone for StabilityParameters
impl Clone for StabilityParameters
Source§fn clone(&self) -> StabilityParameters
fn clone(&self) -> StabilityParameters
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StabilityParameters
impl Debug for StabilityParameters
Source§impl<'de> Deserialize<'de> for StabilityParameters
impl<'de> Deserialize<'de> for StabilityParameters
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 StabilityParameters
impl PartialEq for StabilityParameters
Source§fn eq(&self, other: &StabilityParameters) -> bool
fn eq(&self, other: &StabilityParameters) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StabilityParameters
impl Serialize for StabilityParameters
impl StructuralPartialEq for StabilityParameters
Auto Trait Implementations§
impl Freeze for StabilityParameters
impl RefUnwindSafe for StabilityParameters
impl Send for StabilityParameters
impl Sync for StabilityParameters
impl Unpin for StabilityParameters
impl UnsafeUnpin for StabilityParameters
impl UnwindSafe for StabilityParameters
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> Scalar for T
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.