pub struct KetExpression { /* private fields */ }Implementations§
Methods from Deref<Target = NamedExpression>§
Trait Implementations§
Source§impl AsRef<NamedExpression> for KetExpression
impl AsRef<NamedExpression> for KetExpression
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 KetExpression
impl Clone for KetExpression
Source§fn clone(&self) -> KetExpression
fn clone(&self) -> KetExpression
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 KetExpression
impl Debug for KetExpression
Source§impl Deref for KetExpression
impl Deref for KetExpression
Source§impl DerefMut for KetExpression
impl DerefMut for KetExpression
Source§impl From<KetExpression> for NamedExpression
impl From<KetExpression> for NamedExpression
Source§fn from(value: KetExpression) -> Self
fn from(value: KetExpression) -> Self
Converts to this type from the input type.
Source§impl From<KetExpression> for TensorExpression
impl From<KetExpression> for TensorExpression
Source§fn from(value: KetExpression) -> Self
fn from(value: KetExpression) -> Self
Converts to this type from the input type.
Source§impl PartialEq for KetExpression
impl PartialEq for KetExpression
Source§impl QuditSystem for KetExpression
impl QuditSystem for KetExpression
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 KetExpression
impl TryFrom<TensorExpression> for KetExpression
impl Eq for KetExpression
impl StructuralPartialEq for KetExpression
Auto Trait Implementations§
impl Freeze for KetExpression
impl RefUnwindSafe for KetExpression
impl Send for KetExpression
impl Sync for KetExpression
impl Unpin for KetExpression
impl UnwindSafe for KetExpression
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