pub struct ReadoutResult {
pub n: usize,
pub raw_fx: i64,
pub mitigated_fx: i64,
pub negativity_fx: i64,
pub shots: u64,
pub counts_bytes: Vec<u8>,
pub model_hash: [u8; 32],
}Expand description
Output of a readout-mitigation step.
Fields§
§n: usize§raw_fx: i64Raw expectation of the observable over the measured distribution.
mitigated_fx: i64Mitigated expectation after applying A^{-1}.
negativity_fx: i64Negativity of the corrected quasi-distribution (∑ of negative mass) — a standard diagnostic; 0 means the correction stayed physical.
shots: u64§counts_bytes: Vec<u8>Canonical measured-counts bytes (what input_hash binds).
model_hash: [u8; 32]Content hash of the readout model (the pinned noise model).
Implementations§
Source§impl ReadoutResult
impl ReadoutResult
Trait Implementations§
Source§impl Clone for ReadoutResult
impl Clone for ReadoutResult
Source§fn clone(&self) -> ReadoutResult
fn clone(&self) -> ReadoutResult
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 moreSource§impl Debug for ReadoutResult
impl Debug for ReadoutResult
impl Eq for ReadoutResult
Source§impl PartialEq for ReadoutResult
impl PartialEq for ReadoutResult
impl StructuralPartialEq for ReadoutResult
Auto Trait Implementations§
impl Freeze for ReadoutResult
impl RefUnwindSafe for ReadoutResult
impl Send for ReadoutResult
impl Sync for ReadoutResult
impl Unpin for ReadoutResult
impl UnsafeUnpin for ReadoutResult
impl UnwindSafe for ReadoutResult
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.