Skip to main content

HilbertState

Struct HilbertState 

Source
pub struct HilbertState { /* private fields */ }
Expand description

A strong type representing a Quantum State Vector (Ket) |ψ>.

This represents a Minimal Left Ideal of the algebra Cl(10) (or others), acting as the Hilbert Space.

§Invariants

  • The coefficients are always Complex<f64>.
  • The Metric is fixed at construction time (preventing mixed-algebra operations).

Implementations§

Source§

impl HilbertState

Source

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

Creates a new Hilbert State for the Grand Unified Algebra (Spin(10)). This enforces the metric Cl(10) (NonEuclidean, 10D).

Source

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

Generic constructor for other quantum systems (e.g. Qubits / Cl(2)).

Source

pub fn new_unchecked(data: Vec<Complex<f64>>, metric: Metric) -> Self

Source

pub fn from_multivector(mv: CausalMultiVector<Complex<f64>>) -> Self

Source

pub fn into_inner(self) -> CausalMultiVector<Complex<f64>>

Unwraps the state to access the underlying algebraic object. Useful when you need to perform raw geometric operations.

Source

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

Borrows the underlying algebraic object.

Source

pub fn mv(&self) -> &CausalMultiVector<Complex<f64>>

Trait Implementations§

Source§

impl Add for HilbertState

Source§

type Output = HilbertState

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl Clone for HilbertState

Source§

fn clone(&self) -> HilbertState

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 HilbertState

Source§

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

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

impl Default for HilbertState

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Display for HilbertState

Source§

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

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

impl Mul<Complex<f64>> for HilbertState

Source§

type Output = HilbertState

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Complex<f64>) -> Self::Output

Performs the * operation. Read more
Source§

impl PartialEq for HilbertState

Source§

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

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