Struct VerificationOptions
pub struct VerificationOptions {
pub method: VerificationMethod,
pub strategy: VerificationStrategy,
pub tool_name: String,
pub timeout_secs: u64,
pub wmc_phase_tolerance: f64,
pub rr_tolerance: f64,
pub phase_tolerance: f64,
pub approximate_distance_tolerance: Option<f64>,
pub gpmc_precision_digits: u32,
}Expand description
Per-request verification settings for native callers.
Defaults: Hybrid, Difference, GPMC, requested 600-second timeout,
RR tolerance 1e-10, phase tolerance 1e-8 radians,
projective-distance tolerance 1e-8, and GPMC 30 digits.
RR matching, global-phase classification, and projective distance are distinct numerical criteria; solver print precision certifies none of them.
§Example
use quprs::{VerificationMethod, VerificationOptions};
let options = VerificationOptions {
method: VerificationMethod::ReductionRules,
rr_tolerance: 0.0,
..VerificationOptions::default()
};
assert_eq!(options.phase_tolerance, 1e-8);
assert_eq!(options.approximate_distance_tolerance, Some(1e-8));Fields§
§method: VerificationMethodHybrid (default), ReductionRules, or WmcOnly; a runtime choice.
strategy: VerificationStrategyDifference by default; also Proportional, Naive, Straightforward.
tool_name: String"gpmc" by default or "ganak". No silent fallback.
timeout_secs: u64Requested seconds (default 600), not a guaranteed hard deadline
for all in-process symbolic operations.
wmc_phase_tolerance: f64Compatibility alias of Self::phase_tolerance (default 1e-8
radians). Leave one field at its default when changing the other.
Two non-default, different values are rejected.
rr_tolerance: f64RR coefficient-matching tolerance, default 1e-10, finite and
nonnegative; not an angular threshold.
phase_tolerance: f64Global-phase threshold, default 1e-8 radians, finite in
the strict range (0, 1). A non-default alias value is used when
this field stays at its default; conflicting non-defaults error.
approximate_distance_tolerance: Option<f64>Projective Hilbert–Schmidt distance, not an angle. Default
Some(1e-8); Some(x) requires finite 0 < x < 1.
None uses the same 1e-8 default, not disabled checking.
gpmc_precision_digits: u32GPMC complex working/output decimal digits: 30 (default) or
90 (GPMC only, not Ganak). Neither certifies solver error bounds.