pub enum PauliBasis {
X,
Y,
Z,
}Expand description
Pauli basis: X, Y, or Z (excludes identity).
Variants§
Trait Implementations§
Source§impl Clone for PauliBasis
impl Clone for PauliBasis
Source§fn clone(&self) -> PauliBasis
fn clone(&self) -> PauliBasis
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 moreimpl Copy for PauliBasis
Source§impl Debug for PauliBasis
impl Debug for PauliBasis
Source§impl<'de> Deserialize<'de> for PauliBasis
impl<'de> Deserialize<'de> for PauliBasis
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 Display for PauliBasis
impl Display for PauliBasis
impl Eq for PauliBasis
Source§impl From<Basis> for PauliBasis
impl From<Basis> for PauliBasis
Source§impl From<PauliBasis> for RGBA
impl From<PauliBasis> for RGBA
Source§fn from(basis: PauliBasis) -> Self
fn from(basis: PauliBasis) -> Self
Converts to this type from the input type.
Source§impl From<PauliBasis> for Pauli
impl From<PauliBasis> for Pauli
Source§fn from(pb: PauliBasis) -> Self
fn from(pb: PauliBasis) -> Self
Converts to this type from the input type.
Source§impl FromStr for PauliBasis
impl FromStr for PauliBasis
Source§impl Hash for PauliBasis
impl Hash for PauliBasis
Source§impl Ord for PauliBasis
impl Ord for PauliBasis
Source§fn cmp(&self, other: &PauliBasis) -> Ordering
fn cmp(&self, other: &PauliBasis) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PauliBasis
impl PartialEq for PauliBasis
Source§impl PartialOrd for PauliBasis
impl PartialOrd for PauliBasis
Source§impl Serialize for PauliBasis
impl Serialize for PauliBasis
impl StructuralPartialEq for PauliBasis
Auto Trait Implementations§
impl Freeze for PauliBasis
impl RefUnwindSafe for PauliBasis
impl Send for PauliBasis
impl Sync for PauliBasis
impl Unpin for PauliBasis
impl UnsafeUnpin for PauliBasis
impl UnwindSafe for PauliBasis
Blanket Implementations§
§impl<T, BorrowedSelf> BitwiseMutViaBorrow<BorrowedSelf> for T
impl<T, BorrowedSelf> BitwiseMutViaBorrow<BorrowedSelf> for T
fn assign_index(&mut self, index: usize, to: bool)
fn negate_index(&mut self, index: usize)
fn clear_bits(&mut self)
fn assign_random(
&mut self,
bit_count: usize,
random_number_generator: &mut impl RngExt,
)where
BorrowedSelf: BitLength,
§impl<Bits, Other, BorrowedSelf, BorrowedOther> BitwisePairMutViaBorrow<Other, BorrowedSelf, BorrowedOther> for Bits
impl<Bits, Other, BorrowedSelf, BorrowedOther> BitwisePairMutViaBorrow<Other, BorrowedSelf, BorrowedOther> for Bits
fn assign(&mut self, other: &Other)
fn bitxor_assign(&mut self, other: &Other)
fn bitand_assign(&mut self, other: &Other)
fn bitor_assign(&mut self, other: &Other)
§impl<T, Other, BorrowedSelf, BorrowedOther> BitwisePairViaBorrow<Other, BorrowedSelf, BorrowedOther> for T
impl<T, Other, BorrowedSelf, BorrowedOther> BitwisePairViaBorrow<Other, BorrowedSelf, BorrowedOther> for T
§impl<T, BorrowedSelf> BitwiseViaBorrow<BorrowedSelf> for T
impl<T, BorrowedSelf> BitwiseViaBorrow<BorrowedSelf> for T
fn index(&self, index: usize) -> bool
fn weight(&self) -> usize
fn parity(&self) -> bool
fn is_zero(&self) -> bool
fn is_unit(&self, index: usize) -> bool
fn support<'a>(&'a self) -> impl SortedIteratorwhere
BorrowedSelf: 'a,
fn max_support(&self) -> Option<usize>
fn min_support(&self) -> Option<usize>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.