pub struct OperatorSpec { /* private fields */ }Expand description
One typed local operator product and its spatial couplings.
Implementations§
Source§impl OperatorSpec
impl OperatorSpec
Sourcepub fn new(
label: impl AsRef<str>,
couplings: impl IntoIterator<Item = Coupling>,
) -> Result<Self>
pub fn new( label: impl AsRef<str>, couplings: impl IntoIterator<Item = Coupling>, ) -> Result<Self>
Parse a compact product label and attach its spatial couplings.
Sourcepub fn from_product(
product: OpProduct,
couplings: impl IntoIterator<Item = Coupling>,
) -> Result<Self>
pub fn from_product( product: OpProduct, couplings: impl IntoIterator<Item = Coupling>, ) -> Result<Self>
Attach spatial couplings to a parsed local operator product.
Every coupling must have the same arity as product, and coefficients
must be finite.
Sourcepub fn with_site_permutation(&self, permutation: &[usize]) -> Result<Self>
pub fn with_site_permutation(&self, permutation: &[usize]) -> Result<Self>
Return the same local action after a bijective site relabeling.
permutation[old_site] is the site used by the returned term. This
keeps frontend indexing conventions and lattice embeddings outside the
universal assembler.
Trait Implementations§
Source§impl Clone for OperatorSpec
impl Clone for OperatorSpec
Source§fn clone(&self) -> OperatorSpec
fn clone(&self) -> OperatorSpec
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 moreSource§impl Debug for OperatorSpec
impl Debug for OperatorSpec
Source§impl PartialEq for OperatorSpec
impl PartialEq for OperatorSpec
Source§fn eq(&self, other: &OperatorSpec) -> bool
fn eq(&self, other: &OperatorSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OperatorSpec
Auto Trait Implementations§
impl Freeze for OperatorSpec
impl RefUnwindSafe for OperatorSpec
impl Send for OperatorSpec
impl Sync for OperatorSpec
impl Unpin for OperatorSpec
impl UnsafeUnpin for OperatorSpec
impl UnwindSafe for OperatorSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.