pub struct Readouts {
pub gid: u64,
pub readouts: Option<BitVector>,
pub probabilities: Vec<f64>,
pub syndrome_count: u64,
pub correction_count: u64,
pub correction_weight: f64,
pub frame_probabilities: Vec<f64>,
}Fields§
§gid: u64the gid of the gadget
readouts: Option<BitVector>the readout results; length must be equal to the number of logical readouts of the gadget type
probabilities: Vec<f64>optionally, output logical soft information: the estimated probability of a logical readout being wrong; if provided, the length must be equal to the number of readouts in the gadget
syndrome_count: u64Number of fired checks owned by this gadget, before applying corrections.
correction_count: u64Number of selected correction edges owned by this gadget. Window buffers and alternative corrections used for forced-gap scoring are excluded.
correction_weight: f64Sum of log((1 - p) / p) over those edges, using their effective shot priors. This is a correction weight, not a normalized error probability.
frame_probabilities: Vec<f64>Optional forced-gap uncertainty at this gadget’s output boundary, separate from logical readout probabilities. Flattened by output port, then by that port type’s observable order. Includes propagated causal history under the window coordinator’s existing maximum-component score composition; these are not calibrated posterior probabilities. Reporting does not add scoring targets beyond the existing commit-region boundary. Empty when disabled, when there are no output observables, or when any output is internal to a multi-gadget commit region. An empty vector means unavailable, not zero uncertainty. Does not add or change logical bits.
Trait Implementations§
Source§impl Message for Readouts
impl Message for Readouts
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.impl StructuralPartialEq for Readouts
Auto Trait Implementations§
impl Forget for Readouts
impl Freeze for Readouts
impl Move for Readouts
impl RefUnwindSafe for Readouts
impl Send for Readouts
impl Sync for Readouts
impl Unpin for Readouts
impl UnsafeUnpin for Readouts
impl UnwindSafe for Readouts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request