pub struct AdaptivePrecisionManager { /* private fields */ }
Expand description
Adaptive precision manager
Implementations§
Source§impl AdaptivePrecisionManager
impl AdaptivePrecisionManager
Sourcepub fn determine_optimal_precision(
&mut self,
operation_name: &str,
input_size: usize,
target_accuracy: Option<f64>,
) -> PrecisionLevel
pub fn determine_optimal_precision( &mut self, operation_name: &str, input_size: usize, target_accuracy: Option<f64>, ) -> PrecisionLevel
Determine optimal precision for a specific operation
Sourcepub fn get_statistics(&self) -> &PrecisionStatistics
pub fn get_statistics(&self) -> &PrecisionStatistics
Get current precision statistics
Sourcepub fn reset_error_budget(&mut self)
pub fn reset_error_budget(&mut self)
Reset the error budget and statistics
Sourcepub fn within_error_budget(&self) -> bool
pub fn within_error_budget(&self) -> bool
Check if we’re within error budget
Sourcepub fn error_budget_utilization(&self) -> f64
pub fn error_budget_utilization(&self) -> f64
Get current error budget utilization (0.0 to 1.0)
Sourcepub fn set_operation_requirements(
&mut self,
operation_name: String,
requirements: PrecisionRequirements,
)
pub fn set_operation_requirements( &mut self, operation_name: String, requirements: PrecisionRequirements, )
Add custom precision requirements for an operation
Sourcepub fn suggest_circuit_precision(
&self,
circuit_operations: &[(String, usize)],
target_fidelity: f64,
) -> PrecisionLevel
pub fn suggest_circuit_precision( &self, circuit_operations: &[(String, usize)], target_fidelity: f64, ) -> PrecisionLevel
Suggest optimal precision level for a quantum circuit
Auto Trait Implementations§
impl Freeze for AdaptivePrecisionManager
impl RefUnwindSafe for AdaptivePrecisionManager
impl Send for AdaptivePrecisionManager
impl Sync for AdaptivePrecisionManager
impl Unpin for AdaptivePrecisionManager
impl UnwindSafe for AdaptivePrecisionManager
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> 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