Skip to main content

VerificationOptions

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: VerificationMethod

Hybrid (default), ReductionRules, or WmcOnly; a runtime choice.

§strategy: VerificationStrategy

Difference by default; also Proportional, Naive, Straightforward.

§tool_name: String

"gpmc" by default or "ganak". No silent fallback.

§timeout_secs: u64

Requested seconds (default 600), not a guaranteed hard deadline for all in-process symbolic operations.

§wmc_phase_tolerance: f64

Compatibility 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: f64

RR coefficient-matching tolerance, default 1e-10, finite and nonnegative; not an angular threshold.

§phase_tolerance: f64

Global-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: u32

GPMC complex working/output decimal digits: 30 (default) or 90 (GPMC only, not Ganak). Neither certifies solver error bounds.

Trait Implementations§

§

impl Clone for VerificationOptions

§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for VerificationOptions

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
§

impl Default for VerificationOptions

§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.