pub struct ExpectationResult {
pub values: Vec<f64>,
pub std_errors: Option<Vec<f64>>,
pub metadata: RunMetadata,
}Expand description
Expectation values with the uncertainty of the estimate that produced them.
Returned by Simulate::expectation_values_reported; the plain
Simulate::expectation_values returns the values alone.
Fields§
§values: Vec<f64>One value per observable, in the order they were supplied.
std_errors: Option<Vec<f64>>One standard error per value, None when the route evaluates rather
than samples. Such a route reports exactness through
RunMetadata::exactness instead of an interval of width zero.
metadata: RunMetadataImplementations§
Source§impl ExpectationResult
impl ExpectationResult
pub fn into_values(self) -> Vec<f64>
Trait Implementations§
Source§impl Clone for ExpectationResult
impl Clone for ExpectationResult
Source§fn clone(&self) -> ExpectationResult
fn clone(&self) -> ExpectationResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ExpectationResult
impl RefUnwindSafe for ExpectationResult
impl Send for ExpectationResult
impl Sync for ExpectationResult
impl Unpin for ExpectationResult
impl UnsafeUnpin for ExpectationResult
impl UnwindSafe for ExpectationResult
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
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