Enum roqoqo::RoqoqoError [−][src]
pub enum RoqoqoError { UnitaryMatrixErrror { alpha_r: f64, alpha_i: f64, beta_r: f64, beta_i: f64, norm: f64, }, QubitMappingError { qubit: usize, }, ConversionError { start_type: &'static str, end_type: &'static str, }, TryFromError, MultiplicationIncompatibleQubits { squbit: usize, oqubit: usize, }, PauliProductExceedsQubits { pp_qubit: usize, number_qubits: usize, }, MismatchedOperatorDimension { index: (usize, usize), number_qubits: usize, }, MismatchedRegisterDimension { dim: usize, number_qubits: usize, }, ExpValUsedTwice { name: String, }, MissingRegister { name: String, }, BasisRotationMeasurementError { msg: String, }, CalculatorError(CalculatorError), }
Expand description
Errors that can occur in roqoqo.
Variants
Error when values of alpha and beta lead to an invalid unitary matrix.
Show fields
Fields of UnitaryMatrixErrror
alpha_r: f64
Real part of diagonal element of (not) unitary matrix.
alpha_i: f64
Imaginary part of diagonal element of (not) unitary matrix.
beta_r: f64
Real part of off-diagonal element of (not) unitary matrix.
beta_i: f64
Real part of off-diagonal element of (not) unitary matrix.
norm: f64
Norm of (not) unitary matrix.
Error when remapping qubits fails because qubit in operation is not in keys of HashMap/dict.
Show fields
Fields of QubitMappingError
qubit: usize
Qubit that can not be mapped.
Custom error for failed conversion between enums with the TryFrom crate.
Show fields
Error using try from
Custom error for failed multipliction of two gates acting on different qubits.
Show fields
Error adding a PauliProduct involving qubits larger than number of qubit to measurement input.
Show fields
Error when adding a new operator to expectation values.
Show fields
Error when a complex register does not correspond to the expected dimension for cheated measurement.
Show fields
Error adding an expectation value, name of expectation value already take.
Show fields
Fields of ExpValUsedTwice
name: String
Name of the expecataion value missing.
Expected register is missing from the Output registers.
Show fields
Fields of MissingRegister
name: String
Name of the missing register.
Error occured in basis rotation measurement.
Show fields
Fields of BasisRotationMeasurementError
msg: String
Error message.
CalculatorError(CalculatorError)
Transparent propagation of CalculatorError.
Trait Implementations
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for RoqoqoError
impl Send for RoqoqoError
impl Sync for RoqoqoError
impl Unpin for RoqoqoError
impl UnwindSafe for RoqoqoError