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