pub enum Exactness {
Exact,
Approximate {
fidelity_lower_bound: Option<f64>,
},
}Expand description
Whether a result is exact for the circuit as given.
Variants§
Exact
Approximate
The engine that ran can discard state weight or estimate by sampling.
This marks the route, not the run: an MPS at bond 256 on a circuit that
never fills a bond truncates nothing and still reports Approximate,
with fidelity_lower_bound of 1.0. The variant answers whether the
answer could have been approximated, the bound answers whether it was.
None means the engine reports no bound.
Trait Implementations§
impl Copy for Exactness
impl StructuralPartialEq for Exactness
Auto Trait Implementations§
impl Freeze for Exactness
impl RefUnwindSafe for Exactness
impl Send for Exactness
impl Sync for Exactness
impl Unpin for Exactness
impl UnsafeUnpin for Exactness
impl UnwindSafe for Exactness
Blanket Implementations§
impl<T> Boilerplate for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T, U> Imply<T> for U
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