pub enum PrecisionLevel {
Single,
Double,
Extended,
Mixed,
}Expand description
Available precision levels for quantum computations
Variants§
Single
Single precision (f32) - fastest but least accurate
Double
Double precision (f64) - standard accuracy
Extended
Extended precision - highest accuracy but slowest
Mixed
Mixed precision - adaptive based on operation
Implementations§
Source§impl PrecisionLevel
impl PrecisionLevel
Sourcepub fn decimal_digits(self) -> usize
pub fn decimal_digits(self) -> usize
Get the number of significant decimal digits for this precision level
Sourcepub fn performance_factor(self) -> f64
pub fn performance_factor(self) -> f64
Get relative performance factor (1.0 = baseline double precision)
Trait Implementations§
Source§impl Clone for PrecisionLevel
impl Clone for PrecisionLevel
Source§fn clone(&self) -> PrecisionLevel
fn clone(&self) -> PrecisionLevel
Returns a duplicate 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 PrecisionLevel
impl Debug for PrecisionLevel
Source§impl Hash for PrecisionLevel
impl Hash for PrecisionLevel
Source§impl Ord for PrecisionLevel
impl Ord for PrecisionLevel
Source§fn cmp(&self, other: &PrecisionLevel) -> Ordering
fn cmp(&self, other: &PrecisionLevel) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PrecisionLevel
impl PartialEq for PrecisionLevel
Source§impl PartialOrd for PrecisionLevel
impl PartialOrd for PrecisionLevel
impl Copy for PrecisionLevel
impl Eq for PrecisionLevel
impl StructuralPartialEq for PrecisionLevel
Auto Trait Implementations§
impl Freeze for PrecisionLevel
impl RefUnwindSafe for PrecisionLevel
impl Send for PrecisionLevel
impl Sync for PrecisionLevel
impl Unpin for PrecisionLevel
impl UnwindSafe for PrecisionLevel
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more