Skip to main content

HopfState

Struct HopfState 

Source
pub struct HopfState<R: RealField>(/* private fields */);
Expand description

A point on the 3-Sphere ($S^3$), representing a unit spinor or rotor in 3D Euclidean space.

The Hopf Fibration maps this state to a point on the 2-Sphere ($S^2$) via the projection $h(R) = R \sigma_3 \tilde{R}$.

This structure captures both the Direction (the point on $S^2$) and the Phase/Twist (the position on the $S^1$ fiber).

§Applications

  • Quantum Mechanics: Represents a Qubit state $|\psi\rangle = \alpha|0\rangle + \beta|1\rangle$. The projection is the Bloch Vector.
  • Robotics: Represents a rotation without Gimbal Lock (Quaternion). The fiber is the “twist” redundancy.
  • Electromagnetism: Represents Hopfion field configurations.

Implementations§

Source§

impl<R: RealField> HopfState<R>

Source

pub fn new(data: Vec<R>) -> Result<Self, CausalMultiVectorError>

Creates a new HopfState from raw coefficients. Enforces Euclidean(3) metric and Normalization.

Source

pub fn from_spinor(alpha: Complex<R>, beta: Complex<R>) -> Self

Constructs a HopfState from two Complex numbers (Spinor formalism).

Maps $(\alpha, \beta) \in \mathbb{C}^2$ to the 3-Sphere. $|\alpha|^2 + |\beta|^2 = 1$.

This connects Standard QM notation to Geometric Algebra.

Source

pub fn as_inner(&self) -> &CausalMultiVector<R>

Access underlying algebra

Source§

impl<R: RealField + FromPrimitive> HopfState<R>

Source

pub fn project(&self) -> CausalMultiVector<R>

The Projection Map $h: S^3 \to S^2$.

Returns the vector on the 2-Sphere (The “Shadow” or “Bloch Vector”). $v = R \sigma_3 \tilde{R}$.

Source

pub fn fiber_shift(&self, angle_rad: R) -> Self

Traverses the Fiber ($S^1$).

Rotates the state by phase radians without changing the projection on $S^2$. This corresponds to the global phase $e^{i\theta}$ in QM or the “Twist” in robotics.

$R’ = R e^{-\frac{\theta}{2} \mathbf{I}}$ (Where I is the generator of rotation around the pole, typically e12 for Z-axis).

Trait Implementations§

Source§

impl<R: Clone + RealField> Clone for HopfState<R>

Source§

fn clone(&self) -> HopfState<R>

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<R: Debug + RealField> Debug for HopfState<R>

Source§

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

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

impl<R: RealField + Debug> Display for HopfState<R>

Source§

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

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

impl<R: PartialEq + RealField> PartialEq for HopfState<R>

Source§

fn eq(&self, other: &HopfState<R>) -> 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<R: RealField> StructuralPartialEq for HopfState<R>

Source§

impl<R: RealField> TryFrom<&HilbertState<R>> for HopfState<R>

Conversion: Quantum State (Spinor) -> Topological Rotor (Hopf).

Source§

type Error = CausalMultiVectorError

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

fn try_from(quantum_state: &HilbertState<R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<R: RealField> TryFrom<HopfState<R>> for HilbertState<R>

Conversion: Topological Rotor (Hopf) -> Quantum State (Spinor).

Source§

type Error = CausalMultiVectorError

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

fn try_from(hopf: HopfState<R>) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

§

impl<R> Freeze for HopfState<R>

§

impl<R> RefUnwindSafe for HopfState<R>
where R: RefUnwindSafe,

§

impl<R> Send for HopfState<R>
where R: Send,

§

impl<R> Sync for HopfState<R>
where R: Sync,

§

impl<R> Unpin for HopfState<R>
where R: Unpin,

§

impl<R> UnsafeUnpin for HopfState<R>

§

impl<R> UnwindSafe for HopfState<R>
where R: 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
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> Satisfies<NoConstraint> for T

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.