Skip to main content

HypercubeHopfield

HypercubeHopfield — modern Hopfield associative memory on a Boolean hypercube. Neurons sit on the vertices of a dim-dimensional cube (N = 2^dim). Patterns are stored explicitly and retrieved by softmax attention over a sparse neighborhood — not collapsed into a Hebbian weight matrix, and not full all-to-all modern-Hopfield attention either.

A topology you don't store. Connectivity is the mask table of the Hamming ball — one XOR per neighbor, no adjacency list, at any size. Each vertex attends only inside that ball; cost scales with connections, not with the full cube.


HypercubeAI ecosystem
One geometry. Topology-native intelligence.

HypercubeESN  ·  HypercubeCNN  ·  HypercubeHopfield  ·  HypercubeWTF

HypercubeHopfield is an experiment in the HypercubeAI project — our quest to map AI and ML strategies onto the hypercube as a computational substrate.

Why the hypercube? A few properties keep showing up — and they explain why a frozen reservoir and a HypercubeCNN readout fit together so cleanly:

  • A topology you don't store — the graph is specified: connectivity is implicit in the vertex indices; with a seed and a few config scalars the whole reservoir reconstructs mathematically.
  • Perfect homogeneity — every vertex has the same degree and the same local world, so local dynamics mean the same thing everywhere — no structural favorites baked in by a random graph.
  • Cheap navigation — each neighbor is a few bit operations on the vertex index, not a pointer chase through a stored edge list, so walks stay arithmetic and cache-friendly.
  • Topology-native pairing — the readout consumes the reservoir's output with zero geometric distortion, and the learned kernels exploit the same locality that generated the dynamics. The data never leaves the hypercube it was born on.

Each product in the family is a different architecture on that same foundation:

Product Natural data Role of the hypercube
HypercubeESN Low-dim streams over time Frozen reservoir stepped each sample; multi-slice state → HypercubeCNN readout
HypercubeCNN Static patterns on the cube Trainable spatial conv/pool on the cube (no recurrent reservoir)
HypercubeHopfield Patterns / attractors Associative memory dynamics on the cube
HypercubeWTF Static high-dim fields (no intrinsic time) Same frozen hypercube reservoir discipline as ESN, driven for a short orbit per sample, then HypercubeCNN on the end state

Installation

pip install hypercube-hopfield

Pre-built wheels for Python 3.10–3.13 on Windows, Linux, and macOS. NumPy is the only runtime dependency.

Build from source (C++23 + CMake): see the Python SDK guide.

Quick Start

import numpy as np
import hypercube_hopfield as hh

# 256 neurons (dim=8, N=2^8)
net = hh.HopfieldNetwork(dim=8, seed=42)

patterns = np.random.randn(10, net.num_vertices).astype(np.float32)
net.store_patterns(patterns)

cue = patterns[0] + np.random.randn(net.num_vertices).astype(np.float32) * 0.3
result = net.recall(cue)
print(f"Converged: {result.converged}, steps: {result.steps}")
# result.state is the cleaned recall; input cue is not modified

Features

  • Explicit pattern storage — modern Hopfield retrieval without a Hebbian weight matrix
  • Sparse Hamming-ball attentionreach and neighbor_fraction control connectivity and cost
  • Two update modes — Sync (default, deterministic) and Async (guaranteed energy descent)
  • Pickle / save / load — persist config and all stored patterns
  • NumPy integration — automatic float32 conversion; recall does not mutate the cue

Documentation

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hypercube_hopfield-1.0.2.tar.gz (13.5 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

hypercube_hopfield-1.0.2-cp313-cp313-win_amd64.whl (160.1 kB view details)

Uploaded CPython 3.13Windows x86-64

hypercube_hopfield-1.0.2-cp313-cp313-manylinux_2_28_x86_64.whl (300.8 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

hypercube_hopfield-1.0.2-cp313-cp313-macosx_11_0_x86_64.whl (171.2 kB view details)

Uploaded CPython 3.13macOS 11.0+ x86-64

hypercube_hopfield-1.0.2-cp313-cp313-macosx_11_0_arm64.whl (157.6 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

hypercube_hopfield-1.0.2-cp312-cp312-win_amd64.whl (160.1 kB view details)

Uploaded CPython 3.12Windows x86-64

hypercube_hopfield-1.0.2-cp312-cp312-manylinux_2_28_x86_64.whl (300.9 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

hypercube_hopfield-1.0.2-cp312-cp312-macosx_11_0_x86_64.whl (171.2 kB view details)

Uploaded CPython 3.12macOS 11.0+ x86-64

hypercube_hopfield-1.0.2-cp312-cp312-macosx_11_0_arm64.whl (157.6 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

hypercube_hopfield-1.0.2-cp311-cp311-win_amd64.whl (157.2 kB view details)

Uploaded CPython 3.11Windows x86-64

hypercube_hopfield-1.0.2-cp311-cp311-manylinux_2_28_x86_64.whl (299.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

hypercube_hopfield-1.0.2-cp311-cp311-macosx_11_0_x86_64.whl (168.8 kB view details)

Uploaded CPython 3.11macOS 11.0+ x86-64

hypercube_hopfield-1.0.2-cp311-cp311-macosx_11_0_arm64.whl (156.2 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

hypercube_hopfield-1.0.2-cp310-cp310-win_amd64.whl (155.7 kB view details)

Uploaded CPython 3.10Windows x86-64

hypercube_hopfield-1.0.2-cp310-cp310-manylinux_2_28_x86_64.whl (298.6 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

hypercube_hopfield-1.0.2-cp310-cp310-macosx_11_0_x86_64.whl (167.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ x86-64

hypercube_hopfield-1.0.2-cp310-cp310-macosx_11_0_arm64.whl (154.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file hypercube_hopfield-1.0.2.tar.gz.

File metadata

  • Download URL: hypercube_hopfield-1.0.2.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for hypercube_hopfield-1.0.2.tar.gz
Algorithm Hash digest
SHA256 a90d61476bb754ead0660dbb26422ce75d5a195e7d561c09f4442f72607905a8
MD5 299ba955b3f53621d2787f3972d410ed
BLAKE2b-256 c945a54f575a2104c2476220deee8a38b5a60bd9aa913c6c0519798bba6e4d8c

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_hopfield-1.0.2.tar.gz:

Publisher: wheels.yml on dliptak001/HypercubeHopfield

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hypercube_hopfield-1.0.2-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for hypercube_hopfield-1.0.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 78cb6611ce940cec3710bafb8f15269e6590e985a9f34d506741e6e4e95cb4cb
MD5 f36c59e4f07e9985da970e1a4da1deb2
BLAKE2b-256 2a3a7edbb2c06dbfbc0028f87de3bd8d714a9ef8de0aada2e52a9c3653d2ad46

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_hopfield-1.0.2-cp313-cp313-win_amd64.whl:

Publisher: wheels.yml on dliptak001/HypercubeHopfield

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hypercube_hopfield-1.0.2-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for hypercube_hopfield-1.0.2-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 42f160a807f5cf352d413d26f51e0fe83fb15d7415e87a948a719d62d2c0e603
MD5 72c4fff92e175da47abd4327ffbc0a63
BLAKE2b-256 527884c0ffaef3d9f13e2e2c39c876760e032bba29533ca590b58960e0d04277

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_hopfield-1.0.2-cp313-cp313-manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on dliptak001/HypercubeHopfield

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hypercube_hopfield-1.0.2-cp313-cp313-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for hypercube_hopfield-1.0.2-cp313-cp313-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 6ee7a65aa95356203e1bd19f292e9ab7bf07d9ca7dab6013650d1b09c908a98a
MD5 0dcedbfab0fe075ccdc5932828af2a9f
BLAKE2b-256 12c5708a2b7854f75c129e0884df326c87e86e18ed6a3c7e630de7b3cafd95de

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_hopfield-1.0.2-cp313-cp313-macosx_11_0_x86_64.whl:

Publisher: wheels.yml on dliptak001/HypercubeHopfield

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hypercube_hopfield-1.0.2-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for hypercube_hopfield-1.0.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4162c50b9cacd35a3af2ccf3917758aefa6fd334388e513bff0782b2023bce8e
MD5 6d01f3b7f2eceb5bfd0fb13a71ac4b57
BLAKE2b-256 577b45fa9d486927b9a556fbc079abed0f057ecf138dcd7a2be8cdd0b7ae25a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_hopfield-1.0.2-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: wheels.yml on dliptak001/HypercubeHopfield

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hypercube_hopfield-1.0.2-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for hypercube_hopfield-1.0.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 22822b249da27bd1f4d579067333508a75d1b6ec76c23a4cf39b35c84e39e2a2
MD5 e1262b9170b85ba4c881f7ffb83d54b4
BLAKE2b-256 ee07d1e9d9386af124287104ea2dedd6b9dc74f15485f6361309c182b316c4b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_hopfield-1.0.2-cp312-cp312-win_amd64.whl:

Publisher: wheels.yml on dliptak001/HypercubeHopfield

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hypercube_hopfield-1.0.2-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for hypercube_hopfield-1.0.2-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 178d3f51c9b562ed4cc539ab6ec57448798ef72f73ecad8bfe6cd71a2d46b1a8
MD5 be2fab1fece9a69859df17e39d0b4337
BLAKE2b-256 965280b9894d13179e63cbfab49842425c572575fbe116fe674cf62c665f9a56

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_hopfield-1.0.2-cp312-cp312-manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on dliptak001/HypercubeHopfield

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hypercube_hopfield-1.0.2-cp312-cp312-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for hypercube_hopfield-1.0.2-cp312-cp312-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 1bff90a198305b628c2e38c6129f585717662276350a2e1a841eb178ddaad778
MD5 5aa38d8a6d535eb94f2295871cb5a732
BLAKE2b-256 773c1689c55d9382f2c55ae052930da2435b8eddaa60f6ab223f27a35a1d0b53

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_hopfield-1.0.2-cp312-cp312-macosx_11_0_x86_64.whl:

Publisher: wheels.yml on dliptak001/HypercubeHopfield

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hypercube_hopfield-1.0.2-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for hypercube_hopfield-1.0.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c45c3b5eb170cfbc743fbdb7e080f6671c00ec7a72be7aa7f8c1f973e35ed93d
MD5 b6a874e9a67f9a3b3619776a353e0794
BLAKE2b-256 d4ef32f14e049e137ee3e33e90a222e464ecb76c3f2660c0b583dcd4e28ffae0

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_hopfield-1.0.2-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: wheels.yml on dliptak001/HypercubeHopfield

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hypercube_hopfield-1.0.2-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for hypercube_hopfield-1.0.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d3f00dd5baf0d0606d471e62e68d72bdeb3e7800f68e2186860fa99fa3916c37
MD5 8703a7c62aef02acb644b854e92ab890
BLAKE2b-256 9120f03b7a6ca72cd9ebaf3559a17ebaaa9f37d4db7ed2216b505a6f7294d7cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_hopfield-1.0.2-cp311-cp311-win_amd64.whl:

Publisher: wheels.yml on dliptak001/HypercubeHopfield

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hypercube_hopfield-1.0.2-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for hypercube_hopfield-1.0.2-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5eda3922317c16a317420119ce7e5090f333432498cf7bf883379acb5be62f8b
MD5 6c2fcd00b61c9272a67c9286eadde04e
BLAKE2b-256 5e7645b515cec42c7ed14fd39d7dbcb10170999263dbd43b35076f7e20b04b73

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_hopfield-1.0.2-cp311-cp311-manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on dliptak001/HypercubeHopfield

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hypercube_hopfield-1.0.2-cp311-cp311-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for hypercube_hopfield-1.0.2-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 0c492454b11a94459297e6616f4770849a701a5f419e976fc57f2053783925da
MD5 61aa7c04ce4c88b296975d185baa39ab
BLAKE2b-256 9475379e8a5a34b67bb4d45e6013c9a058622344275756e7bdcdbd065bedaf18

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_hopfield-1.0.2-cp311-cp311-macosx_11_0_x86_64.whl:

Publisher: wheels.yml on dliptak001/HypercubeHopfield

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hypercube_hopfield-1.0.2-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for hypercube_hopfield-1.0.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e8895baf024a43fb59b9586dea2d606c595a43f8dd56ea3833a21ae97a5fffbe
MD5 63e40f068bdfbcb1cd29b45446b231e9
BLAKE2b-256 c1abcc75b90d89772a5eebdd0f2f755e541352189df6e08076f06ea6cfe441e3

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_hopfield-1.0.2-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: wheels.yml on dliptak001/HypercubeHopfield

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hypercube_hopfield-1.0.2-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for hypercube_hopfield-1.0.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 db1e19939e8b3a71c207622ec02b12104d89ab16a0ed8f6dd907fdfdbc36dda5
MD5 993e996072b08217afb1b1405203061d
BLAKE2b-256 a991ed0fd5e0b3e04918cfdf7c438bfbcd9e407ab9d51f9780483a3dc8e07b21

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_hopfield-1.0.2-cp310-cp310-win_amd64.whl:

Publisher: wheels.yml on dliptak001/HypercubeHopfield

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hypercube_hopfield-1.0.2-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for hypercube_hopfield-1.0.2-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 065c7f928156bf77e57f2a7ee8d1daf8d25fea7fb46b04ed9edd6082673a28da
MD5 979524ae3d13a92f3e571240139e1c76
BLAKE2b-256 986032166ddea44de565acc286fc2408f198cef39e565cf943e66231806d779f

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_hopfield-1.0.2-cp310-cp310-manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on dliptak001/HypercubeHopfield

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hypercube_hopfield-1.0.2-cp310-cp310-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for hypercube_hopfield-1.0.2-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 61417eabdf4f35a27aff110591202d5c19220307e82c9b6f4e07a8ec6e281894
MD5 dc7d4f6d31cd694b106f1672d7826a52
BLAKE2b-256 94e5f75bd46827416e2e587544280bfcf5103858d66f81784a458335a14511d5

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_hopfield-1.0.2-cp310-cp310-macosx_11_0_x86_64.whl:

Publisher: wheels.yml on dliptak001/HypercubeHopfield

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hypercube_hopfield-1.0.2-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for hypercube_hopfield-1.0.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a89b4ec4d96ccf893ad9b9ed344ffa4aa99c67fb33cae0ced09ea246762f4a82
MD5 6e41234f157148720b8fe1c4bced227b
BLAKE2b-256 13c5869adb1926af8d48cddf40566c8aab310428b5b65bad233d69c45d05ea43

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_hopfield-1.0.2-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: wheels.yml on dliptak001/HypercubeHopfield

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

1.0.3

17 files

This release

1.0.2 This release

17 files

1.0.1

17 files

1.0.0

17 files

0.1.1

17 files

0.1.0

17 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page