pub enum PhaseAlgebraError {
WidthMismatch {
expected: usize,
actual: usize,
},
GeneratorWidth {
index: usize,
expected: usize,
actual: usize,
},
NonHermitianGenerator {
index: usize,
},
NonCommutingGenerators {
left: usize,
right: usize,
},
ContradictoryGenerator {
index: usize,
},
LogicalCount {
expected: usize,
x_count: usize,
z_count: usize,
},
LogicalWidth {
kind: &'static str,
index: usize,
expected: usize,
actual: usize,
},
NonHermitianLogical {
kind: &'static str,
index: usize,
},
NonCentralizingLogical {
kind: &'static str,
index: usize,
generator: usize,
},
LogicalCommutation {
left_kind: &'static str,
left_index: usize,
right_kind: &'static str,
right_index: usize,
expected_anticommutation: bool,
},
WitnessIndex {
index: usize,
count: usize,
},
}Expand description
Validation and query errors for the phase-aware API.
Variants§
WidthMismatch
GeneratorWidth
NonHermitianGenerator
NonCommutingGenerators
ContradictoryGenerator
LogicalCount
LogicalWidth
NonHermitianLogical
NonCentralizingLogical
LogicalCommutation
Fields
WitnessIndex
Trait Implementations§
Source§impl Clone for PhaseAlgebraError
impl Clone for PhaseAlgebraError
Source§impl Debug for PhaseAlgebraError
impl Debug for PhaseAlgebraError
Source§impl Display for PhaseAlgebraError
impl Display for PhaseAlgebraError
impl Eq for PhaseAlgebraError
Source§impl Error for PhaseAlgebraError
impl Error for PhaseAlgebraError
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 PartialEq for PhaseAlgebraError
impl PartialEq for PhaseAlgebraError
impl StructuralPartialEq for PhaseAlgebraError
Auto Trait Implementations§
impl Forget for PhaseAlgebraError
impl Freeze for PhaseAlgebraError
impl Move for PhaseAlgebraError
impl RefUnwindSafe for PhaseAlgebraError
impl Send for PhaseAlgebraError
impl Sync for PhaseAlgebraError
impl Unpin for PhaseAlgebraError
impl UnsafeUnpin for PhaseAlgebraError
impl UnwindSafe for PhaseAlgebraError
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