Skip to main content

SU3

Struct SU3 

Source
pub struct SU3 {
    pub matrix: Array2<Complex64>,
}
Expand description

SU(3) group element - 3×3 complex unitary matrix with determinant 1

Represents a color rotation in QCD.

§Representation

We use Array2<Complex64> from ndarray to represent the 3×3 unitary matrix.

§Constraints

  • Unitarity: U† U = I
  • Determinant: det(U) = 1

§Examples

use lie_groups::su3::SU3;
use lie_groups::traits::LieGroup;

let id = SU3::identity();
assert!(id.verify_unitarity(1e-10));

Fields§

§matrix: Array2<Complex64>

3×3 complex unitary matrix

Implementations§

Source§

impl SU3

Source

pub fn identity() -> Self

Identity element

Source

pub fn verify_unitarity(&self, tolerance: f64) -> bool

Verify unitarity: U† U = I

Source

pub fn inverse(&self) -> Self

Matrix inverse (equals conjugate transpose for unitary matrices)

Source

pub fn adjoint(&self) -> Self

Conjugate transpose (adjoint)

Source

pub fn distance_to_identity(&self) -> f64

Distance from identity element

Trait Implementations§

Source§

impl Clone for SU3

Source§

fn clone(&self) -> SU3

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SU3

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for SU3

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl LieGroup for SU3

Source§

const DIM: usize = 3

Matrix dimension in the fundamental representation. Read more
Source§

type Algebra = Su3Algebra

Associated Lie algebra type. Read more
Source§

fn identity() -> Self

The identity element e ∈ G. Read more
Source§

fn compose(&self, other: &Self) -> Self

Group composition (multiplication): g₁ · g₂ Read more
Source§

fn inverse(&self) -> Self

Group inverse: g⁻¹ Read more
Source§

fn adjoint(&self) -> Self

Adjoint representation element (for matrix groups: conjugate transpose). Read more
Source§

fn adjoint_action(&self, algebra_element: &Su3Algebra) -> Su3Algebra

Adjoint representation: Ad_g: 𝔤 → 𝔤 Read more
Source§

fn distance_to_identity(&self) -> f64

Geodesic distance from identity: d(g, e) Read more
Source§

fn exp(tangent: &Su3Algebra) -> Self

Exponential map: 𝔤 → G Read more
Source§

fn log(&self) -> LogResult<Su3Algebra>

Logarithm map: G → 𝔤 (inverse of exponential) Read more
Source§

fn dim() -> usize

Dimension of the fundamental representation. Read more
Source§

fn trace(&self) -> Complex64

Trace in the fundamental representation. Read more
Source§

fn distance(&self, other: &Self) -> f64

Distance between two group elements: d(g, h) Read more
Source§

fn is_near_identity(&self, tolerance: f64) -> bool

Check if this element is approximately the identity. Read more
Source§

fn trace_identity() -> f64

Trace of the identity element Read more
Source§

fn reorthogonalize(&self) -> Self

Project element back onto the group manifold using Gram-Schmidt orthogonalization. Read more
Source§

impl Mul<&SU3> for &SU3

Group multiplication: U₁ · U₂

Source§

type Output = SU3

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &SU3) -> SU3

Performs the * operation. Read more
Source§

impl Mul<&SU3> for SU3

Source§

type Output = SU3

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &SU3) -> SU3

Performs the * operation. Read more
Source§

impl MulAssign<&SU3> for SU3

Source§

fn mul_assign(&mut self, rhs: &SU3)

Performs the *= operation. Read more
Source§

impl PartialEq for SU3

Source§

fn eq(&self, other: &SU3) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Compact for SU3

SU(3) is compact

All elements are bounded: ||U|| = 1 for all U ∈ SU(3).

Source§

impl SemiSimple for SU3

SU(3) is semi-simple

Source§

impl Simple for SU3

SU(3) is simple

It has no non-trivial normal subgroups (except center ℤ₃).

Source§

impl StructuralPartialEq for SU3

Auto Trait Implementations§

§

impl Freeze for SU3

§

impl RefUnwindSafe for SU3

§

impl Send for SU3

§

impl Sync for SU3

§

impl Unpin for SU3

§

impl UnsafeUnpin for SU3

§

impl UnwindSafe for SU3

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T, Right> ClosedMul<Right> for T
where T: Mul<Right, Output = T> + MulAssign<Right>,

Source§

impl<T, Right> ClosedMulAssign<Right> for T
where T: ClosedMul<Right> + MulAssign<Right>,

Source§

impl<T> Scalar for T
where T: 'static + Clone + PartialEq + Debug,