pub enum MitigationError {
InsufficientData {
required: usize,
provided: usize,
},
InvalidScaleFactor {
value: f64,
},
SingularMatrix,
InvalidProbability {
value: f64,
},
ExtrapolationFailed {
message: String,
},
CalibrationFetchFailed {
message: String,
},
AIModelError {
message: String,
},
DimensionMismatch {
expected: usize,
actual: usize,
},
NumericalInstability {
message: String,
},
}Expand description
Errors that can occur during error mitigation.
Variants§
InsufficientData
Insufficient data points for extrapolation
InvalidScaleFactor
Invalid scale factor
SingularMatrix
Calibration matrix is singular
InvalidProbability
Invalid probability (outside [0, 1])
ExtrapolationFailed
Extrapolation failed
CalibrationFetchFailed
Hardware calibration fetch failed
AIModelError
AI model error
DimensionMismatch
Dimension mismatch
NumericalInstability
Numerical instability
Trait Implementations§
Source§impl Debug for MitigationError
impl Debug for MitigationError
Source§impl Display for MitigationError
impl Display for MitigationError
Source§impl Error for MitigationError
impl Error for MitigationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for MitigationError
impl RefUnwindSafe for MitigationError
impl Send for MitigationError
impl Sync for MitigationError
impl Unpin for MitigationError
impl UnwindSafe for MitigationError
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