pub struct EntropyResult {
pub subsystem: Vec<usize>,
pub entropy: f64,
pub schmidt_values: Option<Vec<f64>>,
pub metadata: RunMetadata,
}Expand description
Entanglement entropy of a subsystem, returned by
Simulate::entanglement_entropy.
Fields§
§subsystem: Vec<usize>The subsystem as it was requested, the side of the cut the entropy is read on.
entropy: f64Von Neumann entropy of the subsystem in nats: a Bell pair reads ln 2.
schmidt_values: Option<Vec<f64>>Schmidt values across the cut, descending, with squares summing to 1.
None where the backend holds the entropy without the spectrum that
stands behind it, as a stabilizer cut past the export cap does: its
2^r equal values do not fit.
metadata: RunMetadataTrait Implementations§
Source§impl Clone for EntropyResult
impl Clone for EntropyResult
Source§fn clone(&self) -> EntropyResult
fn clone(&self) -> EntropyResult
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 EntropyResult
impl RefUnwindSafe for EntropyResult
impl Send for EntropyResult
impl Sync for EntropyResult
impl Unpin for EntropyResult
impl UnsafeUnpin for EntropyResult
impl UnwindSafe for EntropyResult
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