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: object

Represents 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
distance(x: ndarray, y: ndarray) float[source]

Compute distance d_X(x, y).

inner_product(x: ndarray, y: ndarray) float[source]

Compute inner product ⟨x|y⟩.

norm(x: ndarray) float[source]

Compute norm ||x||.

class mercurial.core.state_space.StateVector(space: HilbertSpace, components: ndarray, t: float = 0.0)[source]

Bases: object

State vector x(t) in Hilbert space.

Methods

copy

norm

normalize

copy() StateVector[source]
norm() float[source]
normalize() StateVector[source]