pub enum LossStrategy {
Ignore,
Reweight,
Handoff,
}Expand description
How a coordinator handles the atom losses heralded by Outcomes.loss_mask.
Independent of loss_random_imputation, which decides what the syndrome
does with a lost measurement bit and applies under every strategy.
Variants§
Ignore
Discard the loss information. The lost measurements still take part in
the syndrome (imputed when loss_random_imputation is on), but the
decoder is never told a loss happened. Takes no options.
Reweight
Raise each observed loss’s Pauli-envelope generator edges from their
(typically zero) prior to a weight comparable to ordinary edges, softly
enforcing the per-atom exclusivity, then hand the decoder an ordinary
problem. The default: it needs no decoder support, and costs nothing on a
program whose gadget types declare no loss model. Options:
weight_fraction and scale.
Handoff
Pass the assembled loss sites to the decoder as a structured
LossInfo and let it do
the work — the loss-aware decode path, used by decoders such as the
mle_loss_decoder. Takes no options.
Trait Implementations§
Source§impl Clone for LossStrategy
impl Clone for LossStrategy
impl Copy for LossStrategy
Source§impl Debug for LossStrategy
impl Debug for LossStrategy
Source§impl Default for LossStrategy
impl Default for LossStrategy
Source§impl<'de> Deserialize<'de> for LossStrategy
impl<'de> Deserialize<'de> for LossStrategy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for LossStrategy
Source§impl PartialEq for LossStrategy
impl PartialEq for LossStrategy
Source§impl Serialize for LossStrategy
impl Serialize for LossStrategy
impl StructuralPartialEq for LossStrategy
Auto Trait Implementations§
impl Forget for LossStrategy
impl Freeze for LossStrategy
impl Move for LossStrategy
impl RefUnwindSafe for LossStrategy
impl Send for LossStrategy
impl Sync for LossStrategy
impl Unpin for LossStrategy
impl UnsafeUnpin for LossStrategy
impl UnwindSafe for LossStrategy
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
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> ⓘ
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