Skip to main content

QecError

Enum QecError 

Source
pub enum QecError {
Show 77 variants FamilyVerificationFailed { report: String, }, UnsupportedCssConstructionSchemaVersion { version: u64, }, InvalidCssConstructionJson(String), UnknownCssConstruction { construction: String, }, InvalidCssConstruction { construction: String, reason: String, }, InvalidDirectionalRoute { route: String, reason: String, }, InvalidDirectionalCssSpec { reason: String, }, RowWidthMismatch { expected: usize, actual: usize, }, InvalidSymplecticRowWidth { width: usize, }, InvalidBinaryEntry { row: usize, col: usize, value: u8, }, InvalidColumnPermutation { reason: String, }, InvalidSparseRowsWidth { num_cols: usize, }, DuplicateSparseRowSupport { row: usize, support: usize, }, SparseRowSupportOutOfRange { row: usize, support: usize, num_cols: usize, }, SparseGf2RowCountMismatch { expected: usize, actual: usize, }, SparseGf2SupportOutOfRange { row: usize, support: usize, num_cols: usize, }, SparseGf2HorizontalRowMismatch { left_rows: usize, right_rows: usize, }, SparseGf2DimensionOverflow { operation: &'static str, }, InvalidBoundaryMapDimensions { domain_dimension: usize, codomain_dimension: usize, }, DuplicateBoundaryMapDimension { domain_dimension: usize, }, MissingBoundaryMap { domain_dimension: usize, }, BoundaryCompositionDimensionMismatch { lower_dimension: usize, upper_dimension: usize, lower_domain_cells: usize, upper_codomain_cells: usize, }, NonzeroBoundaryComposition { lower_dimension: usize, upper_dimension: usize, row: usize, support: Vec<usize>, }, InvalidFiniteGroupTable { reason: String, }, GroupOrderLimitExceeded { order: usize, max_order: usize, }, InvalidFiniteGroupElement { element: usize, order: usize, }, InvalidGroupAlgebraElementSupport { support: usize, order: usize, }, GroupAlgebraOrderMismatch { expected: usize, actual: usize, }, GroupAlgebraMatrixRowWidthMismatch { expected: usize, actual: usize, }, GroupAlgebraDimensionOverflow { operation: &'static str, }, InvalidRegularClassicalMatrixConfig { option: &'static str, reason: String, }, UnsupportedRegularClassicalMatrixAlgorithm { algorithm_version: u32, }, InvalidRandomTwoBlockSpec { option: &'static str, reason: String, }, InvalidRandomHgpSpec { option: &'static str, reason: String, }, UnsupportedRandomTwoBlockAlgorithm { algorithm_version: u32, }, RegularClassicalMatrixStubCountOverflow { side: &'static str, }, RegularClassicalMatrixStubCountMismatch { column_stubs: usize, row_stubs: usize, }, RegularClassicalMatrixGenerationExhausted { retry_limit: usize, attempts: usize, algorithm_version: u32, seed: u64, }, MissingCssMatrixFormat, UnsupportedCssMatrixFormat { format: String, }, InvalidCssMatrixJson(String), InvalidQuantumTannerSpecJson(String), InvalidQuantumTannerGroupTable { reason: String, }, UnsupportedQuantumTannerConstructionMode { mode: String, }, InvalidQuantumTannerLocalCodeMatrix { matrix: &'static str, reason: String, }, InvalidQuantumTannerGeneratorIndex { set: &'static str, index: usize, element: usize, order: usize, }, InvalidQuantumTannerGeneratorSet { set: &'static str, reason: String, }, DegenerateQuantumTannerFace { root: usize, a: usize, b: usize, vertices: Vec<usize>, }, InvalidQuantumTannerGroupElement { element: usize, order: usize, }, InvalidQuantumTannerCssConstruction { reason: String, }, JsonOutputRequired { command: &'static str, }, InvalidCssDistanceInput(String), CssMatrixReadFailed { path: String, source: CssMatrixReadSource, }, InvalidPauliWidth { x_width: usize, z_width: usize, }, InvalidPauliBit { which: &'static str, index: usize, value: u8, }, NonCommutingStabilizers, DependentStabilizers, InvalidCssOrthogonality, UnsupportedLogicalBasis { k: usize, }, UnsupportedExhaustiveEnumeration { n: usize, }, DistanceComputationUnsupported { n: usize, reason: String, }, LogicalBasisNotFound, DistanceWitnessNotFound, InvalidDistanceBoundOption { option: &'static str, reason: String, }, RandomizedUpperBoundWitnessNotFound, DistanceBoundValidationFailed(String), IlpBackendUnavailable(String), IlpSolveFailed(String), IlpInfeasible, UnknownBuiltInCssCode { code_id: String, }, UnknownBuiltInCssFamily { family: String, }, MissingBuiltInCssParameter { family: String, parameter: String, }, DuplicateBuiltInCssParameter { family: String, parameter: String, }, InvalidBuiltInCssIntegerParameter { family: String, parameter: String, value: String, }, UnexpectedBuiltInCssParameter { family: String, parameter: String, }, OutOfRangeBuiltInCssIntegerParameter { family: String, parameter: String, value: usize, }, UnsupportedBuiltInCssIntegerParameter { family: String, parameter: String, value: usize, supported: String, note: String, },
}

Variants§

§

FamilyVerificationFailed

Fields

§report: String
§

UnsupportedCssConstructionSchemaVersion

Fields

§version: u64
§

InvalidCssConstructionJson(String)

§

UnknownCssConstruction

Fields

§construction: String
§

InvalidCssConstruction

Fields

§construction: String
§reason: String
§

InvalidDirectionalRoute

Fields

§route: String
§reason: String
§

InvalidDirectionalCssSpec

Fields

§reason: String
§

RowWidthMismatch

Fields

§expected: usize
§actual: usize
§

InvalidSymplecticRowWidth

Fields

§width: usize
§

InvalidBinaryEntry

Fields

§row: usize
§col: usize
§value: u8
§

InvalidColumnPermutation

Fields

§reason: String
§

InvalidSparseRowsWidth

Fields

§num_cols: usize
§

DuplicateSparseRowSupport

Fields

§row: usize
§support: usize
§

SparseRowSupportOutOfRange

Fields

§row: usize
§support: usize
§num_cols: usize
§

SparseGf2RowCountMismatch

Fields

§expected: usize
§actual: usize
§

SparseGf2SupportOutOfRange

Fields

§row: usize
§support: usize
§num_cols: usize
§

SparseGf2HorizontalRowMismatch

Fields

§left_rows: usize
§right_rows: usize
§

SparseGf2DimensionOverflow

Fields

§operation: &'static str
§

InvalidBoundaryMapDimensions

Fields

§domain_dimension: usize
§codomain_dimension: usize
§

DuplicateBoundaryMapDimension

Fields

§domain_dimension: usize
§

MissingBoundaryMap

Fields

§domain_dimension: usize
§

BoundaryCompositionDimensionMismatch

Fields

§lower_dimension: usize
§upper_dimension: usize
§lower_domain_cells: usize
§upper_codomain_cells: usize
§

NonzeroBoundaryComposition

Fields

§lower_dimension: usize
§upper_dimension: usize
§row: usize
§support: Vec<usize>
§

InvalidFiniteGroupTable

Fields

§reason: String
§

GroupOrderLimitExceeded

Fields

§order: usize
§max_order: usize
§

InvalidFiniteGroupElement

Fields

§element: usize
§order: usize
§

InvalidGroupAlgebraElementSupport

Fields

§support: usize
§order: usize
§

GroupAlgebraOrderMismatch

Fields

§expected: usize
§actual: usize
§

GroupAlgebraMatrixRowWidthMismatch

Fields

§expected: usize
§actual: usize
§

GroupAlgebraDimensionOverflow

Fields

§operation: &'static str
§

InvalidRegularClassicalMatrixConfig

Fields

§option: &'static str
§reason: String
§

UnsupportedRegularClassicalMatrixAlgorithm

Fields

§algorithm_version: u32
§

InvalidRandomTwoBlockSpec

Fields

§option: &'static str
§reason: String
§

InvalidRandomHgpSpec

Fields

§option: &'static str
§reason: String
§

UnsupportedRandomTwoBlockAlgorithm

Fields

§algorithm_version: u32
§

RegularClassicalMatrixStubCountOverflow

Fields

§side: &'static str
§

RegularClassicalMatrixStubCountMismatch

Fields

§column_stubs: usize
§row_stubs: usize
§

RegularClassicalMatrixGenerationExhausted

Fields

§retry_limit: usize
§attempts: usize
§algorithm_version: u32
§seed: u64
§

MissingCssMatrixFormat

§

UnsupportedCssMatrixFormat

Fields

§format: String
§

InvalidCssMatrixJson(String)

§

InvalidQuantumTannerSpecJson(String)

§

InvalidQuantumTannerGroupTable

Fields

§reason: String
§

UnsupportedQuantumTannerConstructionMode

Fields

§mode: String
§

InvalidQuantumTannerLocalCodeMatrix

Fields

§matrix: &'static str
§reason: String
§

InvalidQuantumTannerGeneratorIndex

Fields

§set: &'static str
§index: usize
§element: usize
§order: usize
§

InvalidQuantumTannerGeneratorSet

Fields

§set: &'static str
§reason: String
§

DegenerateQuantumTannerFace

Fields

§root: usize
§vertices: Vec<usize>
§

InvalidQuantumTannerGroupElement

Fields

§element: usize
§order: usize
§

InvalidQuantumTannerCssConstruction

Fields

§reason: String
§

JsonOutputRequired

Fields

§command: &'static str
§

InvalidCssDistanceInput(String)

§

CssMatrixReadFailed

Fields

§path: String
§

InvalidPauliWidth

Fields

§x_width: usize
§z_width: usize
§

InvalidPauliBit

Fields

§which: &'static str
§index: usize
§value: u8
§

NonCommutingStabilizers

§

DependentStabilizers

§

InvalidCssOrthogonality

§

UnsupportedLogicalBasis

Fields

§

UnsupportedExhaustiveEnumeration

Fields

§

DistanceComputationUnsupported

Fields

§reason: String
§

LogicalBasisNotFound

§

DistanceWitnessNotFound

§

InvalidDistanceBoundOption

Fields

§option: &'static str
§reason: String
§

RandomizedUpperBoundWitnessNotFound

§

DistanceBoundValidationFailed(String)

§

IlpBackendUnavailable(String)

§

IlpSolveFailed(String)

§

IlpInfeasible

§

UnknownBuiltInCssCode

Fields

§code_id: String
§

UnknownBuiltInCssFamily

Fields

§family: String
§

MissingBuiltInCssParameter

Fields

§family: String
§parameter: String
§

DuplicateBuiltInCssParameter

Fields

§family: String
§parameter: String
§

InvalidBuiltInCssIntegerParameter

Fields

§family: String
§parameter: String
§value: String
§

UnexpectedBuiltInCssParameter

Fields

§family: String
§parameter: String
§

OutOfRangeBuiltInCssIntegerParameter

Fields

§family: String
§parameter: String
§value: usize
§

UnsupportedBuiltInCssIntegerParameter

Fields

§family: String
§parameter: String
§value: usize
§supported: String
§note: String

Trait Implementations§

Source§

impl Clone for QecError

Source§

fn clone(&self) -> QecError

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for QecError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for QecError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for QecError

Source§

impl Error for QecError

Source§

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

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl PartialEq for QecError

Source§

fn eq(&self, other: &QecError) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for QecError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.