pub struct TableauData { /* private fields */ }Expand description
Tableau image data for a Clifford operation.
Implementations§
Source§impl TableauData
impl TableauData
Sourcepub fn new(
z_images: Vec<(Vec<Pauli>, bool)>,
x_images: Vec<(Vec<Pauli>, bool)>,
) -> Self
pub fn new( z_images: Vec<(Vec<Pauli>, bool)>, x_images: Vec<(Vec<Pauli>, bool)>, ) -> Self
Creates tableau data from the images of the input $Z$ and $X$ operators.
Each image Boolean is a sign bit (false = positive, true = negative).
Trait Implementations§
Source§impl Clone for TableauData
impl Clone for TableauData
Source§impl Debug for TableauData
impl Debug for TableauData
Source§impl<'de> Deserialize<'de> for TableauData
impl<'de> Deserialize<'de> for TableauData
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
Source§impl PartialEq for TableauData
impl PartialEq for TableauData
Source§impl Serialize for TableauData
impl Serialize for TableauData
impl StructuralPartialEq for TableauData
Auto Trait Implementations§
impl Freeze for TableauData
impl RefUnwindSafe for TableauData
impl Send for TableauData
impl Sync for TableauData
impl Unpin for TableauData
impl UnsafeUnpin for TableauData
impl UnwindSafe for TableauData
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