Skip to main content

classify_with_uncertainty

Function classify_with_uncertainty 

pub fn classify_with_uncertainty(
    count: &PrintedCount,
    normalization_twice_log2: i32,
    distance: &str,
    component_error: &BigRational,
) -> Result<PrintedVerdict>
Expand description

Shared Python/Rust rational squared-magnitude contract. The supplied absolute real/imaginary count error is additional to printed rounding. Callers must independently justify this bound; it is not a solver proof.