Skip to main content

Module loss_handler

Module loss_handler 

Source
Expand description

Loss-handling strategy: what a coordinator does with heralded atom losses.

The coordinator config exposes two fields — a LossStrategy and an opaque loss_config JSON blob — instead of one flag per mechanism. The blob is parsed and validated once, here, into a LossHandler; a coordinator then only asks the handler what to do. Options that belong to another strategy are rejected at construction rather than silently ignored, which is the failure mode the flat loss_envelope_matching / loss_weight_fraction / loss_mle_decoding triple invited.

Structs§

EnvelopeReweightPolicy
How observed losses reweight their Pauli-envelope edges.

Enums§

LossHandler
A validated loss strategy together with its options.
LossStrategy
How a coordinator handles the atom losses heralded by Outcomes.loss_mask.
ReweightScale
Which scale weight EnvelopeReweightPolicy lowers an activated edge to.