pub struct ShadowResult {
pub estimate_fx: i64,
pub error_fx: i64,
pub n_snapshots: usize,
pub input: Vec<u8>,
}Expand description
Output of a classical-shadows Pauli-observable estimate.
Fields§
§estimate_fx: i64§error_fx: i64Median-of-means spread across batches (half the batch min–max range).
n_snapshots: usize§input: Vec<u8>Canonical snapshot bytes (what input_hash binds).
Implementations§
Source§impl ShadowResult
impl ShadowResult
Sourcepub fn seal(
&self,
signer: &SigningKey,
signer_id: impl Into<String>,
backend_id: impl Into<String>,
observable: impl Into<String>,
raw_fx: i64,
joules_micro: u64,
grant: GrantRef,
) -> MitigationReceipt
pub fn seal( &self, signer: &SigningKey, signer_id: impl Into<String>, backend_id: impl Into<String>, observable: impl Into<String>, raw_fx: i64, joules_micro: u64, grant: GrantRef, ) -> MitigationReceipt
Seal this classical-shadows estimate. No noise model — the snapshots and the estimator are the whole story.
Trait Implementations§
Source§impl Clone for ShadowResult
impl Clone for ShadowResult
Source§fn clone(&self) -> ShadowResult
fn clone(&self) -> ShadowResult
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 moreSource§impl Debug for ShadowResult
impl Debug for ShadowResult
impl Eq for ShadowResult
Source§impl PartialEq for ShadowResult
impl PartialEq for ShadowResult
impl StructuralPartialEq for ShadowResult
Auto Trait Implementations§
impl Freeze for ShadowResult
impl RefUnwindSafe for ShadowResult
impl Send for ShadowResult
impl Sync for ShadowResult
impl Unpin for ShadowResult
impl UnsafeUnpin for ShadowResult
impl UnwindSafe for ShadowResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.