pub struct VerificationResult {
pub level: VerificationLevel,
pub passed: bool,
pub primary_backend: BackendType,
pub reference_backend: Option<BackendType>,
pub total_variation_distance: Option<f64>,
pub chi_squared_p_value: Option<f64>,
pub correlation: Option<f64>,
pub explanation: String,
pub discrepancies: Vec<Discrepancy>,
}Expand description
Outcome of a cross-backend verification run.
Fields§
§level: VerificationLevelThe level of verification that was performed.
passed: boolWhether the verification passed.
primary_backend: BackendTypeThe backend used for the primary simulation.
reference_backend: Option<BackendType>The backend used for the reference simulation, if any.
total_variation_distance: Option<f64>Total variation distance between the two distributions.
chi_squared_p_value: Option<f64>P-value from the chi-squared goodness-of-fit test.
correlation: Option<f64>Pearson correlation coefficient between distributions.
explanation: StringHuman-readable explanation of the verification outcome.
discrepancies: Vec<Discrepancy>Individual bitstring discrepancies, sorted by absolute difference.
Trait Implementations§
Source§impl Clone for VerificationResult
impl Clone for VerificationResult
Source§fn clone(&self) -> VerificationResult
fn clone(&self) -> VerificationResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VerificationResult
impl RefUnwindSafe for VerificationResult
impl Send for VerificationResult
impl Sync for VerificationResult
impl Unpin for VerificationResult
impl UnsafeUnpin for VerificationResult
impl UnwindSafe for VerificationResult
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
Mutably borrows from an owned value. Read more