pub struct MeasurementParity {
pub records: Vec<usize>,
pub value: bool,
}Expand description
A parity the noiseless circuit must produce over a set of measurement records.
Used through SamplerOptions::pin_measurements, where the records are the
zero-based indices a sampling call returns.
Fields§
§records: Vec<usize>Zero-based measurement records whose XOR is constrained. A single index pins one record; repeated indices cancel, as XOR implies.
value: boolThe value that XOR must take in the noiseless circuit.
Implementations§
Trait Implementations§
Source§impl Clone for MeasurementParity
impl Clone for MeasurementParity
Source§fn clone(&self) -> MeasurementParity
fn clone(&self) -> MeasurementParity
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 MeasurementParity
impl Debug for MeasurementParity
Source§impl Default for MeasurementParity
impl Default for MeasurementParity
Source§fn default() -> MeasurementParity
fn default() -> MeasurementParity
Returns the “default value” for a type. Read more
impl Eq for MeasurementParity
Source§impl PartialEq for MeasurementParity
impl PartialEq for MeasurementParity
impl StructuralPartialEq for MeasurementParity
Auto Trait Implementations§
impl Freeze for MeasurementParity
impl RefUnwindSafe for MeasurementParity
impl Send for MeasurementParity
impl Sync for MeasurementParity
impl Unpin for MeasurementParity
impl UnsafeUnpin for MeasurementParity
impl UnwindSafe for MeasurementParity
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