Skip to main content

ReductionImage

Struct ReductionImage 

Source
pub struct ReductionImage<State> { /* private fields */ }
Expand description

Canonical image of one physical state under a basis reduction.

phase / sqrt(orbit_size) is the coefficient of state in the normalized reduced vector labelled by representative. Keeping this convention at the basis boundary lets projectors, cross-sector operators, and language bindings share one source of truth.

Implementations§

Source§

impl<State> ReductionImage<State>

Source

pub fn new( representative: State, phase: Complex64, orbit_size: usize, ) -> Result<Self>

Validate and store the canonical representative, unit phase, and orbit size.

The phase must be finite with unit magnitude and orbit_size must be positive. These invariants make ReductionImage::amplitude safe to use in projectors and cross-sector assembly.

Source

pub const fn representative(&self) -> &State

Return the canonical state labelling the reduced-basis vector.

Source

pub const fn phase(&self) -> Complex64

Return the unit-modulus physical-to-canonical phase.

Source

pub const fn orbit_size(&self) -> usize

Return the number of physical states in the symmetry orbit.

Source

pub fn amplitude(&self) -> Complex64

Normalized coefficient of the physical state in its reduced vector.

Trait Implementations§

Source§

impl<State: Clone> Clone for ReductionImage<State>

Source§

fn clone(&self) -> ReductionImage<State>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl<State: Debug> Debug for ReductionImage<State>

Source§

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

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

impl<State: PartialEq> PartialEq for ReductionImage<State>

Source§

fn eq(&self, other: &ReductionImage<State>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · 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<State: Copy> Copy for ReductionImage<State>

Source§

impl<State> StructuralPartialEq for ReductionImage<State>

Auto Trait Implementations§

§

impl<State> Freeze for ReductionImage<State>
where State: Freeze,

§

impl<State> RefUnwindSafe for ReductionImage<State>
where State: RefUnwindSafe,

§

impl<State> Send for ReductionImage<State>
where State: Send,

§

impl<State> Sync for ReductionImage<State>
where State: Sync,

§

impl<State> Unpin for ReductionImage<State>
where State: Unpin,

§

impl<State> UnsafeUnpin for ReductionImage<State>
where State: UnsafeUnpin,

§

impl<State> UnwindSafe for ReductionImage<State>
where State: UnwindSafe,

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
§

impl<T> ByRef<T> for T

§

fn by_ref(&self) -> &T

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
§

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

§

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

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

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

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, 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.
§

impl<T> Boilerplate for T
where T: Copy + Send + Sync + Debug + PartialEq + 'static,

§

impl<T, U> Imply<T> for U
where T: ?Sized, U: ?Sized,

Source§

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