pub struct DecoderCacheKey {
pub relative_program: RelativeProgram,
pub error_model_fingerprints: Vec<ErrorModelFingerprint>,
pub committing_local_cids: Vec<u32>,
pub logical_flip_signature: Vec<u64>,
}Expand description
Cache key for loaded_decoders in both
crate::coordinator::WindowCoordinator and
crate::coordinator::MonolithicCoordinator.
The merged decoding hypergraph built by decoding_hypergraph() depends
on four pieces of per-call state, all of which must be in the key:
relative_program— the window structure (gadgets, error-model slots, remote-check projections).error_model_fingerprints— the live per-ErrorModelmodifier state that overrides probabilities and remote-check biases, plus the structural digest of the resolved error-model type. Required becauseerror_modelsis cleared on every shot andnext_eidresets to 1, so the sameeidis rebound across shots — typically to a different modifier — and because the simulator can in principle reload the library between shots and change the type backing a givenetype.committing_local_cids— the per-window commit region (in local-cid indexing). Required because the sameRelativeProgramcan be decoded with different commit regions in different windows, and theis_in_commit_regioncheck at edge-construction time drops hyperedges whose checks straddle the window boundary. Empty for theMonolithicCoordinator(which decodes the entire connected subgraph and has no commit-region concept).logical_flip_signature— the readout and output-boundary flip coordinates attached to decoder edges. Empty when forced gap is disabled.
Fields§
§relative_program: RelativeProgram§error_model_fingerprints: Vec<ErrorModelFingerprint>§committing_local_cids: Vec<u32>§logical_flip_signature: Vec<u64>Trait Implementations§
Source§impl Clone for DecoderCacheKey
impl Clone for DecoderCacheKey
Source§impl Debug for DecoderCacheKey
impl Debug for DecoderCacheKey
impl Eq for DecoderCacheKey
Source§impl Hash for DecoderCacheKey
impl Hash for DecoderCacheKey
Source§impl PartialEq for DecoderCacheKey
impl PartialEq for DecoderCacheKey
impl StructuralPartialEq for DecoderCacheKey
Auto Trait Implementations§
impl Forget for DecoderCacheKey
impl Freeze for DecoderCacheKey
impl Move for DecoderCacheKey
impl RefUnwindSafe for DecoderCacheKey
impl Send for DecoderCacheKey
impl Sync for DecoderCacheKey
impl Unpin for DecoderCacheKey
impl UnsafeUnpin for DecoderCacheKey
impl UnwindSafe for DecoderCacheKey
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.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> ⓘ
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 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>
Wrap the input message
T in a tonic::Request