pub struct BraExpression { /* private fields */ }Implementations§
Methods from Deref<Target = NamedExpression>§
Trait Implementations§
Source§impl AsRef<NamedExpression> for BraExpression
impl AsRef<NamedExpression> for BraExpression
Source§fn as_ref(&self) -> &NamedExpression
fn as_ref(&self) -> &NamedExpression
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for BraExpression
impl Clone for BraExpression
Source§fn clone(&self) -> BraExpression
fn clone(&self) -> BraExpression
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BraExpression
impl Debug for BraExpression
Source§impl Deref for BraExpression
impl Deref for BraExpression
Source§impl DerefMut for BraExpression
impl DerefMut for BraExpression
Source§impl From<BraExpression> for NamedExpression
impl From<BraExpression> for NamedExpression
Source§fn from(value: BraExpression) -> Self
fn from(value: BraExpression) -> Self
Converts to this type from the input type.
Source§impl From<BraExpression> for TensorExpression
impl From<BraExpression> for TensorExpression
Source§fn from(value: BraExpression) -> Self
fn from(value: BraExpression) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BraExpression
impl PartialEq for BraExpression
Source§impl QuditSystem for BraExpression
impl QuditSystem for BraExpression
Source§fn num_qudits(&self) -> usize
fn num_qudits(&self) -> usize
Returns the number of qudits in the system. Read more
Source§fn is_qubit_only(&self) -> bool
fn is_qubit_only(&self) -> bool
Checks if the system consists only of qubits (2-level systems). Read more
Source§fn is_qutrit_only(&self) -> bool
fn is_qutrit_only(&self) -> bool
Checks if the system consists only of qutrits (3-level systems). Read more
Source§fn is_qudit_only<T>(&self, radix: T) -> bool
fn is_qudit_only<T>(&self, radix: T) -> bool
Checks if the system consists only of qudits with a specified radix. Read more
Source§fn is_homogenous(&self) -> bool
fn is_homogenous(&self) -> bool
Checks if the system is homogenous, i.e., all qudits have the same radix. Read more
Source§impl TryFrom<TensorExpression> for BraExpression
impl TryFrom<TensorExpression> for BraExpression
impl Eq for BraExpression
impl StructuralPartialEq for BraExpression
Auto Trait Implementations§
impl Freeze for BraExpression
impl RefUnwindSafe for BraExpression
impl Send for BraExpression
impl Sync for BraExpression
impl Unpin for BraExpression
impl UnwindSafe for BraExpression
Blanket Implementations§
Source§impl<'short, T, Target> AsGeneralizedRef<'short, &'short Target> for T
impl<'short, T, Target> AsGeneralizedRef<'short, &'short Target> for T
fn as_generalized_ref(&'short self) -> &'short Target
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,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more