pub struct Pauli { /* private fields */ }Implementations§
Source§impl Pauli
impl Pauli
pub fn from_xz_bits(x: Vec<u8>, z: Vec<u8>) -> Result<Self>
pub fn from_symplectic_row(row: Vec<u8>) -> Result<Self>
pub fn n(&self) -> usize
pub fn x_bits(&self) -> &[u8] ⓘ
pub fn z_bits(&self) -> &[u8] ⓘ
pub fn try_symplectic_product(&self, other: &Self) -> Result<u8>
pub fn symplectic_product(&self, other: &Self) -> u8
pub fn weight(&self) -> usize
pub fn try_commutes_with(&self, other: &Self) -> Result<bool>
pub fn commutes_with(&self, other: &Self) -> bool
pub fn try_anticommutes_with(&self, other: &Self) -> Result<bool>
pub fn anticommutes_with(&self, other: &Self) -> bool
pub fn to_symplectic_row(&self) -> Vec<u8> ⓘ
Trait Implementations§
impl Eq for Pauli
impl StructuralPartialEq for Pauli
Auto Trait Implementations§
impl Freeze for Pauli
impl RefUnwindSafe for Pauli
impl Send for Pauli
impl Sync for Pauli
impl Unpin for Pauli
impl UnsafeUnpin for Pauli
impl UnwindSafe for Pauli
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