pub struct ResetData { /* private fields */ }Expand description
Data associated with a reset operation.
Implementations§
Source§impl ResetData
impl ResetData
Sourcepub fn new(
first_string: Vec<Pauli>,
second_string: Vec<Pauli>,
first_sign_bit: bool,
second_sign_bit: bool,
) -> Self
pub fn new( first_string: Vec<Pauli>, second_string: Vec<Pauli>, first_sign_bit: bool, second_sign_bit: bool, ) -> Self
Creates reset data from two anti-commuting Pauli strings and their sign bits.
false represents a positive sign and true represents a negative sign.
Sourcepub fn get_first_string(&self) -> &Vec<Pauli>
pub fn get_first_string(&self) -> &Vec<Pauli>
Returns the first Pauli string involved in the reset.
Sourcepub fn get_second_string(&self) -> &Vec<Pauli>
pub fn get_second_string(&self) -> &Vec<Pauli>
Returns the second Pauli string involved in the reset.
Sourcepub fn get_first_sign_bit(&self) -> bool
pub fn get_first_sign_bit(&self) -> bool
Returns the first string’s sign bit (false = positive, true = negative).
Sourcepub fn get_second_sign_bit(&self) -> bool
pub fn get_second_sign_bit(&self) -> bool
Returns the second string’s sign bit (false = positive, true = negative).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ResetData
impl<'de> Deserialize<'de> for ResetData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for ResetData
Auto Trait Implementations§
impl Freeze for ResetData
impl RefUnwindSafe for ResetData
impl Send for ResetData
impl Sync for ResetData
impl Unpin for ResetData
impl UnsafeUnpin for ResetData
impl UnwindSafe for ResetData
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