Struct ldpc::quantum::CssSyndrome [−][src]
pub struct CssSyndrome { pub x: SparseBinVec, pub z: SparseBinVec, }
Expand description
The binary representation of a syndrome for a CSS code.
The X part correponds to the syndrome measured by the X stabilizers and the Z part to the syndrome measured by the Z stabilizers.
Fields
x: SparseBinVec
z: SparseBinVec
Implementations
impl CssSyndrome
[src]
impl CssSyndrome
[src]pub fn is_trivial(&self) -> bool
[src]
pub fn is_trivial(&self) -> bool
[src]Checks if the syndrome is the zero syndrome for both X and Z.
Trait Implementations
impl Clone for CssSyndrome
[src]
impl Clone for CssSyndrome
[src]fn clone(&self) -> CssSyndrome
[src]
fn clone(&self) -> CssSyndrome
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for CssSyndrome
[src]
impl Debug for CssSyndrome
[src]impl PartialEq<CssSyndrome> for CssSyndrome
[src]
impl PartialEq<CssSyndrome> for CssSyndrome
[src]fn eq(&self, other: &CssSyndrome) -> bool
[src]
fn eq(&self, other: &CssSyndrome) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &CssSyndrome) -> bool
[src]
fn ne(&self, other: &CssSyndrome) -> bool
[src]This method tests for !=
.
impl Eq for CssSyndrome
[src]
impl StructuralEq for CssSyndrome
[src]
impl StructuralPartialEq for CssSyndrome
[src]
Auto Trait Implementations
impl RefUnwindSafe for CssSyndrome
impl Send for CssSyndrome
impl Sync for CssSyndrome
impl Unpin for CssSyndrome
impl UnwindSafe for CssSyndrome
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
pub fn equivalent(&self, key: &K) -> bool
[src]Compare self to key
and return true
if they are equal.
impl<T> Pointable for T
impl<T> Pointable for T
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub unsafe fn to_subset_unchecked(&self) -> SS
pub unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,