mercurial.core.state_space module
Hilbert space representation of the neutral substrate.
- class mercurial.core.state_space.HilbertSpace(dimension: int, basis: ndarray | None = None)[source]
Bases:
objectRepresents the substrate state space X.
- Attributes:
- basis
Methods
distance(x, y)Compute distance d_X(x, y).
inner_product(x, y)Compute inner product ⟨x|y⟩.
norm(x)Compute norm ||x||.
- basis: ndarray | None = None
- dimension: int
- class mercurial.core.state_space.StateVector(space: HilbertSpace, components: ndarray, t: float = 0.0)[source]
Bases:
objectState vector x(t) in Hilbert space.
Methods
copy
norm
normalize
- copy() StateVector[source]
- normalize() StateVector[source]