pub enum ExportError {
ExportPeekInvalid(&'static str),
NoClassicalRegister,
IncompleteConditionRegister,
InvalidConditionalOp(String),
NotImplemented(&'static str, String),
CantCloseLoop,
RangeAlreadyOpen,
}
Expand description
Enumeration for errors relating to the export of circuits
Variants§
ExportPeekInvalid(&'static str)
Trying to export a peek into the quantum state
NoClassicalRegister
Classical registers not available in c-Qasm
IncompleteConditionRegister
Not using a full condition register in OpenQasm export
InvalidConditionalOp(String)
Unable to create condition operation in c-Qasm
NotImplemented(&'static str, String)
Trying to export in a format for which no export function was written
CantCloseLoop
Trying to close a loop where none is open in LaTeX export
RangeAlreadyOpen
Trying to reserve range in LaTeX export, but previous reservation is open
Trait Implementations§
Source§impl Debug for ExportError
impl Debug for ExportError
Source§impl Display for ExportError
impl Display for ExportError
Source§impl From<ExportError> for Error
impl From<ExportError> for Error
Source§fn from(err: ExportError) -> Self
fn from(err: ExportError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ExportError
impl PartialEq for ExportError
impl StructuralPartialEq for ExportError
Auto Trait Implementations§
impl Freeze for ExportError
impl RefUnwindSafe for ExportError
impl Send for ExportError
impl Sync for ExportError
impl Unpin for ExportError
impl UnwindSafe for ExportError
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> 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