Skip to main content

HopfState

Struct HopfState 

Source
pub struct HopfState(/* 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 HopfState

Source

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

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

Source

pub fn from_spinor(alpha: Complex<f64>, beta: Complex<f64>) -> 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 project(&self) -> CausalMultiVector<f64>

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: f64) -> 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).

Source

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

Access underlying algebra

Trait Implementations§

Source§

impl Clone for HopfState

Source§

fn clone(&self) -> HopfState

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 HopfState

Source§

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

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

impl Display for HopfState

Source§

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

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

impl PartialEq for HopfState

Source§

fn eq(&self, other: &HopfState) -> 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 TryFrom<&HilbertState> for HopfState

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

Maps a 2-level Quantum System (Qubit) into the geometry of the 3-Sphere. $\psi = \alpha|0\rangle + \beta|1\rangle \to R \in S^3$.

This allows you to calculate the “Hopf Invariant” or “Berry Phase” of a quantum state.

Source§

type Error = CausalMultiVectorError

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

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

Performs the conversion.
Source§

impl TryFrom<HopfState> for HilbertState

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

Maps a geometric orientation back into Quantum Hilbert Space. Useful for initializing a Qubit based on a geometric rotation.

Source§

type Error = CausalMultiVectorError

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

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

Performs the conversion.
Source§

impl StructuralPartialEq for HopfState

Auto Trait Implementations§

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> 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<T> Satisfies<NoConstraint> for T