pub struct BoundaryWarrant<R> {
pub hypothesis_residual: R,
pub tolerance: R,
pub amplification: R,
pub conclusion_bound: R,
pub holds: bool,
}Expand description
What a boundary check certifies: the measured hypothesis and the bound it buys.
Returned by partial_trace_preservation_boundary. The fields are separate because the
decision and the number are separate questions: holds answers “did the hypothesis pass at the
tolerance I named”, and conclusion_bound answers “what may I then assert about the traced
commutator”. A caller composing several of these needs the second.
Fields§
§hypothesis_residual: RThe measured ‖[Z ⊗ 1_B, M]‖_F.
tolerance: RThe tolerance the caller named for that residual.
amplification: R√(d_B), the factor by which the partial trace can amplify a residual.
conclusion_bound: RThe certified bound on ‖[Z, Tr_B(M)]‖_F, namely √(d_B) · hypothesis_residual.
holds: boolWhether hypothesis_residual ≤ tolerance.
Trait Implementations§
Source§impl<R: Clone> Clone for BoundaryWarrant<R>
impl<R: Clone> Clone for BoundaryWarrant<R>
Source§fn clone(&self) -> BoundaryWarrant<R>
fn clone(&self) -> BoundaryWarrant<R>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<R: Copy> Copy for BoundaryWarrant<R>
Source§impl<R: Debug> Debug for BoundaryWarrant<R>
impl<R: Debug> Debug for BoundaryWarrant<R>
Source§impl<R: PartialEq> PartialEq for BoundaryWarrant<R>
impl<R: PartialEq> PartialEq for BoundaryWarrant<R>
impl<R: PartialEq> StructuralPartialEq for BoundaryWarrant<R>
Auto Trait Implementations§
impl<R> Freeze for BoundaryWarrant<R>where
R: Freeze,
impl<R> RefUnwindSafe for BoundaryWarrant<R>where
R: RefUnwindSafe,
impl<R> Send for BoundaryWarrant<R>where
R: Send,
impl<R> Sync for BoundaryWarrant<R>where
R: Sync,
impl<R> Unpin for BoundaryWarrant<R>where
R: Unpin,
impl<R> UnsafeUnpin for BoundaryWarrant<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for BoundaryWarrant<R>where
R: UnwindSafe,
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