pub enum CirculantError {
Show 16 variants
EmptyGenerator,
DimensionMismatch {
expected: usize,
got: usize,
},
InvalidFftSize(usize),
InvalidBlockStructure(String),
NotNormalized(String),
InvalidCoinDimension {
expected: usize,
got: usize,
},
PositionOutOfBounds {
position: usize,
size: usize,
},
InvalidKernel(String),
ImageDimensionMismatch {
expected: (usize, usize),
got: (usize, usize),
},
NotHermitian,
InvalidTime(String),
VisualizationError(String),
InvalidWalkParameters(String),
InvalidTensorShape {
expected: Vec<usize>,
got: Vec<usize>,
},
InvalidTensorDimension {
expected: usize,
got: usize,
},
ReshapeFailed(String),
}Expand description
Errors that can occur during circulant matrix operations.
Variants§
EmptyGenerator
The generator vector is empty.
DimensionMismatch
Dimension mismatch between matrix and vector.
InvalidFftSize(usize)
Invalid size for FFT (must be positive).
InvalidBlockStructure(String)
Block structure is invalid.
NotNormalized(String)
Quantum state is not normalized.
InvalidCoinDimension
Invalid coin dimension.
PositionOutOfBounds
Position out of bounds.
InvalidKernel(String)
Invalid kernel dimensions.
ImageDimensionMismatch
Image dimension mismatch.
NotHermitian
Hamiltonian is not Hermitian.
InvalidTime(String)
Time parameter invalid.
VisualizationError(String)
Visualization error.
InvalidWalkParameters(String)
Invalid walk parameters.
InvalidTensorShape
Invalid tensor shape.
InvalidTensorDimension
Invalid tensor dimension.
ReshapeFailed(String)
Reshape operation failed.
Trait Implementations§
Source§impl Clone for CirculantError
impl Clone for CirculantError
Source§fn clone(&self) -> CirculantError
fn clone(&self) -> CirculantError
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 CirculantError
impl Debug for CirculantError
Source§impl Display for CirculantError
impl Display for CirculantError
Source§impl Error for CirculantError
impl Error for CirculantError
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()
Source§impl From<CirculantError> for PyErr
impl From<CirculantError> for PyErr
Source§fn from(err: CirculantError) -> Self
fn from(err: CirculantError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CirculantError
impl PartialEq for CirculantError
impl StructuralPartialEq for CirculantError
Auto Trait Implementations§
impl Freeze for CirculantError
impl RefUnwindSafe for CirculantError
impl Send for CirculantError
impl Sync for CirculantError
impl Unpin for CirculantError
impl UnwindSafe for CirculantError
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