Phase vectors¶
The holographic-vsa wheel is a different package from the SDK: the deterministic quantized-phase vector substrate, imported as holographic_memory. It does not include document search.
holographic_memory ¶
Deterministic, verifiable vector-symbolic (VSA) memory on a quantized-phase substrate.
PhaseHVec ¶
A quantized-phase hypervector: dim phases in Z_N. Binding is phase-add mod N (not self-inverse), bundling is a deterministic integer fold, similarity is the mean cosine of phase differences.
random staticmethod ¶
random(dim: int, n: int, seed: int) -> PhaseHVec
A random phase vector of dim dimensions at resolution n (phase levels, 2..=65536), deterministic in seed.
bind ¶
Bind two vectors (phase-add mod N). Non-self-inverse; inverse is unbind.
similarity ¶
similarity(other: PhaseHVec) -> float
Similarity: mean cosine of phase differences, in [-1, 1].
bundle staticmethod ¶
Deterministic superposition (bundle) of a list of phase vectors.