pub struct FiniteDimCStarAlgebra {
pub blocks: Vec<usize>,
pub name: String,
}Expand description
Represents a finite-dimensional C*-algebra as a product of matrix algebras. A = M_{n_1} × M_{n_2} × … × M_{n_k}.
Fields§
§blocks: Vec<usize>Block sizes n_i.
name: StringName.
Implementations§
Source§impl FiniteDimCStarAlgebra
impl FiniteDimCStarAlgebra
Sourcepub fn commutative(n: usize) -> Self
pub fn commutative(n: usize) -> Self
Creates the algebra C^n (n commutative factors).
Sourcepub fn matrix_algebra(n: usize) -> Self
pub fn matrix_algebra(n: usize) -> Self
Creates M_n(C).
Sourcepub fn num_irreps(&self) -> usize
pub fn num_irreps(&self) -> usize
Returns the number of irreducible representations.
Sourcepub fn is_commutative(&self) -> bool
pub fn is_commutative(&self) -> bool
Checks if the algebra is commutative.
Sourcepub fn normalized_trace(&self, block_idx: usize, value: f64) -> f64
pub fn normalized_trace(&self, block_idx: usize, value: f64) -> f64
Computes the trace (normalized to 1 on identity) of an element given as eigenvalues.
Trait Implementations§
Source§impl Clone for FiniteDimCStarAlgebra
impl Clone for FiniteDimCStarAlgebra
Source§fn clone(&self) -> FiniteDimCStarAlgebra
fn clone(&self) -> FiniteDimCStarAlgebra
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 moreAuto Trait Implementations§
impl Freeze for FiniteDimCStarAlgebra
impl RefUnwindSafe for FiniteDimCStarAlgebra
impl Send for FiniteDimCStarAlgebra
impl Sync for FiniteDimCStarAlgebra
impl Unpin for FiniteDimCStarAlgebra
impl UnsafeUnpin for FiniteDimCStarAlgebra
impl UnwindSafe for FiniteDimCStarAlgebra
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