pub enum QuantumError {
MargolousLevitinViolation {
min_time_s: f64,
requested_time_s: f64,
},
UncertaintyViolation {
product: f64,
hbar_half: f64,
},
DecoherenceExceeded {
decoherence_time_s: f64,
operation_time_s: f64,
},
EntanglementLost {
correlation: f64,
threshold: f64,
},
HardwareExceeded {
required: f64,
available: f64,
},
EnergyInfeasible {
required_ev: f64,
limit_ev: f64,
},
}Expand description
Quantum validation error types
Variants§
MargolousLevitinViolation
UncertaintyViolation
DecoherenceExceeded
EntanglementLost
HardwareExceeded
EnergyInfeasible
Trait Implementations§
Source§impl Debug for QuantumError
impl Debug for QuantumError
Source§impl Display for QuantumError
impl Display for QuantumError
Source§impl Error for QuantumError
impl Error for QuantumError
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 QuantumError
impl RefUnwindSafe for QuantumError
impl Send for QuantumError
impl Sync for QuantumError
impl Unpin for QuantumError
impl UnwindSafe for QuantumError
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