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>
impl<R: RealField> HopfState<R>
Sourcepub fn new(data: Vec<R>) -> Result<Self, CausalMultiVectorError>
pub fn new(data: Vec<R>) -> Result<Self, CausalMultiVectorError>
Creates a new HopfState from raw coefficients. Enforces Euclidean(3) metric and Normalization.
Sourcepub fn from_spinor(alpha: Complex<R>, beta: Complex<R>) -> Self
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.
Sourcepub fn as_inner(&self) -> &CausalMultiVector<R>
pub fn as_inner(&self) -> &CausalMultiVector<R>
Access underlying algebra
Source§impl<R: RealField + FromPrimitive> HopfState<R>
impl<R: RealField + FromPrimitive> HopfState<R>
Sourcepub fn project(&self) -> CausalMultiVector<R>
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}$.
Sourcepub fn fiber_shift(&self, angle_rad: R) -> Self
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: PartialEq + RealField> PartialEq for HopfState<R>
impl<R: PartialEq + RealField> PartialEq for HopfState<R>
impl<R: RealField> StructuralPartialEq for HopfState<R>
Source§impl<R: RealField> TryFrom<&HilbertState<R>> for HopfState<R>
Conversion: Quantum State (Spinor) -> Topological Rotor (Hopf).
impl<R: RealField> TryFrom<&HilbertState<R>> for HopfState<R>
Conversion: Quantum State (Spinor) -> Topological Rotor (Hopf).