pub enum QearError {
Show 13 variants
ReservoirInit(String),
ReservoirEvolution(String),
QuantumState(String),
AttentionComputation(String),
FeatureExtraction(String),
TimeSeries(String),
Training(String),
DimensionMismatch {
expected: usize,
got: usize,
},
InvalidParameter {
name: String,
reason: String,
},
NumericalInstability(String),
InsufficientData {
needed: usize,
got: usize,
},
NotTrained(String),
Serialization(String),
}Expand description
Main error type for QEAR operations.
Variants§
ReservoirInit(String)
Error during reservoir initialization.
ReservoirEvolution(String)
Error during reservoir state evolution.
QuantumState(String)
Error in quantum state operations.
AttentionComputation(String)
Error during attention computation.
FeatureExtraction(String)
Error during feature extraction.
TimeSeries(String)
Error in time series processing.
Training(String)
Error during training.
DimensionMismatch
Dimension mismatch error.
InvalidParameter
Invalid parameter error.
NumericalInstability(String)
Numerical instability error.
InsufficientData
Insufficient data error.
NotTrained(String)
Not trained error.
Serialization(String)
Serialization error.
Implementations§
Source§impl QearError
impl QearError
Sourcepub fn reservoir_init(msg: impl Into<String>) -> Self
pub fn reservoir_init(msg: impl Into<String>) -> Self
Create a new reservoir initialization error.
Sourcepub fn reservoir_evolution(msg: impl Into<String>) -> Self
pub fn reservoir_evolution(msg: impl Into<String>) -> Self
Create a new reservoir evolution error.
Sourcepub fn quantum_state(msg: impl Into<String>) -> Self
pub fn quantum_state(msg: impl Into<String>) -> Self
Create a new quantum state error.
Sourcepub fn attention_computation(msg: impl Into<String>) -> Self
pub fn attention_computation(msg: impl Into<String>) -> Self
Create a new attention computation error.
Sourcepub fn feature_extraction(msg: impl Into<String>) -> Self
pub fn feature_extraction(msg: impl Into<String>) -> Self
Create a new feature extraction error.
Sourcepub fn time_series(msg: impl Into<String>) -> Self
pub fn time_series(msg: impl Into<String>) -> Self
Create a new time series error.
Sourcepub fn dimension_mismatch(expected: usize, got: usize) -> Self
pub fn dimension_mismatch(expected: usize, got: usize) -> Self
Create a new dimension mismatch error.
Sourcepub fn invalid_parameter(
name: impl Into<String>,
reason: impl Into<String>,
) -> Self
pub fn invalid_parameter( name: impl Into<String>, reason: impl Into<String>, ) -> Self
Create a new invalid parameter error.
Sourcepub fn numerical_instability(msg: impl Into<String>) -> Self
pub fn numerical_instability(msg: impl Into<String>) -> Self
Create a new numerical instability error.
Sourcepub fn insufficient_data(needed: usize, got: usize) -> Self
pub fn insufficient_data(needed: usize, got: usize) -> Self
Create a new insufficient data error.
Sourcepub fn not_trained(msg: impl Into<String>) -> Self
pub fn not_trained(msg: impl Into<String>) -> Self
Create a new not trained error.