pub enum QuantError {
CapacityExceeded {
requested: usize,
cap: usize,
},
NotNormalized {
norm: f64,
},
DimensionMismatch {
detail: String,
},
BadPauli {
pauli: String,
bad: char,
},
}Expand description
The closed catalogue of runtime errors. code() returns the stable
machine-readable diagnostic id.
Variants§
CapacityExceeded
axon-E0783 — the requested register exceeds the backend capacity.
NotNormalized
Amplitude encoding requires a unit-norm input (‖x‖₂ = 1).
DimensionMismatch
A shape mismatch (empty input, wrong rotation-vector / Pauli-string length for the register).
BadPauli
A Pauli string carries a char outside {I, X, Y, Z}.
Implementations§
Trait Implementations§
Source§impl Clone for QuantError
impl Clone for QuantError
Source§fn clone(&self) -> QuantError
fn clone(&self) -> QuantError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 QuantError
impl Debug for QuantError
Source§impl Display for QuantError
impl Display for QuantError
Source§impl PartialEq for QuantError
impl PartialEq for QuantError
impl StructuralPartialEq for QuantError
Auto Trait Implementations§
impl Freeze for QuantError
impl RefUnwindSafe for QuantError
impl Send for QuantError
impl Sync for QuantError
impl Unpin for QuantError
impl UnsafeUnpin for QuantError
impl UnwindSafe for QuantError
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