pub struct Discrepancy {
pub bitstring: Vec<bool>,
pub primary_probability: f64,
pub reference_probability: f64,
pub absolute_difference: f64,
}Expand description
A single bitstring where the primary and reference distributions disagree.
Fields§
§bitstring: Vec<bool>The bitstring (one bool per qubit, qubit 0 first).
primary_probability: f64Probability of this bitstring in the primary distribution.
reference_probability: f64Probability of this bitstring in the reference distribution.
absolute_difference: f64Absolute difference between the two probabilities.
Trait Implementations§
Source§impl Clone for Discrepancy
impl Clone for Discrepancy
Source§fn clone(&self) -> Discrepancy
fn clone(&self) -> Discrepancy
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 Discrepancy
impl RefUnwindSafe for Discrepancy
impl Send for Discrepancy
impl Sync for Discrepancy
impl Unpin for Discrepancy
impl UnsafeUnpin for Discrepancy
impl UnwindSafe for Discrepancy
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