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

HypercubeESN  ·  HypercubeCNN  ·  HypercubeHopfield  ·  HypercubeWTF  ·  HypercubeEtalon  ·  HypercubeCascade  ·  HypercubeLCN

📄 Foundational paper: Boolean Hypercubes as a Neural Substrate (D. C. Liptak, 2026)

HypercubeHopfield is an experiment in the HypercubeAI project — our quest to systematically re-implement classical neural architectures on a Boolean hypercube topology instead of Euclidean grids or random graphs. The central thesis is “topology-native intelligence”: the hypercube’s algebraic structure (vertex-transitive symmetry, Hamming geometry, bitwise addressing) can serve as a first-class computational substrate.

  • 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.


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.3.tar.gz (13.2 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.3-cp313-cp313-win_amd64.whl (160.0 kB view details)

Uploaded CPython 3.13Windows x86-64

hypercube_hopfield-1.0.3-cp313-cp313-manylinux_2_28_x86_64.whl (300.7 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

hypercube_hopfield-1.0.3-cp313-cp313-macosx_11_0_x86_64.whl (171.1 kB view details)

Uploaded CPython 3.13macOS 11.0+ x86-64

hypercube_hopfield-1.0.3-cp313-cp313-macosx_11_0_arm64.whl (157.5 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

hypercube_hopfield-1.0.3-cp312-cp312-win_amd64.whl (160.0 kB view details)

Uploaded CPython 3.12Windows x86-64

hypercube_hopfield-1.0.3-cp312-cp312-manylinux_2_28_x86_64.whl (300.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

hypercube_hopfield-1.0.3-cp312-cp312-macosx_11_0_x86_64.whl (171.0 kB view details)

Uploaded CPython 3.12macOS 11.0+ x86-64

hypercube_hopfield-1.0.3-cp312-cp312-macosx_11_0_arm64.whl (157.5 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

hypercube_hopfield-1.0.3-cp311-cp311-win_amd64.whl (157.1 kB view details)

Uploaded CPython 3.11Windows x86-64

hypercube_hopfield-1.0.3-cp311-cp311-manylinux_2_28_x86_64.whl (299.5 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

hypercube_hopfield-1.0.3-cp311-cp311-macosx_11_0_x86_64.whl (168.7 kB view details)

Uploaded CPython 3.11macOS 11.0+ x86-64

hypercube_hopfield-1.0.3-cp311-cp311-macosx_11_0_arm64.whl (156.1 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

hypercube_hopfield-1.0.3-cp310-cp310-win_amd64.whl (155.6 kB view details)

Uploaded CPython 3.10Windows x86-64

hypercube_hopfield-1.0.3-cp310-cp310-manylinux_2_28_x86_64.whl (298.5 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

hypercube_hopfield-1.0.3-cp310-cp310-macosx_11_0_x86_64.whl (167.2 kB view details)

Uploaded CPython 3.10macOS 11.0+ x86-64

hypercube_hopfield-1.0.3-cp310-cp310-macosx_11_0_arm64.whl (154.8 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: hypercube_hopfield-1.0.3.tar.gz
  • Upload date:
  • Size: 13.2 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.3.tar.gz
Algorithm Hash digest
SHA256 7ee66e782bcd6c4d1b33f36bd10bcc99f09f1b3ecca4c80120456f6ecf8aa303
MD5 f76867a78db205b225faf01ed70833b9
BLAKE2b-256 604ed86033c0832dac4ad700bb1088981db2a3ca4d1826bed684b3903c0ed2fb

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_hopfield-1.0.3.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.3-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for hypercube_hopfield-1.0.3-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 aecfba0673969b9dbdaecd98658bdcd72fd3908b2d32d5794e4a222068e0a90c
MD5 4b0e309f914ec08b2c594cbc137c58c0
BLAKE2b-256 195dc8b5042c1167be08c2dedf9e0453c71e52ab2d23c4910cd41654b40d71a1

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_hopfield-1.0.3-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.3-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for hypercube_hopfield-1.0.3-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2567c2852aba57dde7a61356d6ce9263c4bd70c2df65507543e5db5fb8b62d66
MD5 72e95e78d8bb3196d0401ccd79d9e074
BLAKE2b-256 a8c6fc811ba1940b95dab7070d9a88a7b8d4c76fddfcb2f0bd23082c263075cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_hopfield-1.0.3-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.3-cp313-cp313-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for hypercube_hopfield-1.0.3-cp313-cp313-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 2aff083245dc95b73c1e0d5636fa740e4c1f4f75c9d330606133023c3e736ddd
MD5 62dbd32de973a99f8db71685c4788ac2
BLAKE2b-256 ac70566d3ae615973f24e7e207329393512d161ea37bf0d2092e433b7ede096a

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_hopfield-1.0.3-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.3-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for hypercube_hopfield-1.0.3-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 216ea50524e3c0d2a748ca5274f965ab76cc08df1301859888cad1c51d2cf911
MD5 ea2968e6e1c92e76fbd842e3b6da6308
BLAKE2b-256 ebfb01bba6a15a712e9540e0473aba9f60ee760ac3b821233066a1d903b70359

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_hopfield-1.0.3-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.3-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for hypercube_hopfield-1.0.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7e841d5cda7afa798825646679a3c1d66783b2463c0d1efd5151b1c7c868c52f
MD5 85caa95fcfe7f7ac8affb2f9caf1b419
BLAKE2b-256 394b51fda38168393a07fd2fece27b5d995ebc81eab2c834f38d67d1d7ea28ef

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_hopfield-1.0.3-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.3-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for hypercube_hopfield-1.0.3-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7398d8ae130d20b900b663e5b83843481b6886c1a52f1174c1dec43bb169280a
MD5 e146321551b76b069b701b472a85089e
BLAKE2b-256 edd490d151ea2eebf1362ba35e601cd6f92be876b00da0b805dbaa6c640b8a76

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_hopfield-1.0.3-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.3-cp312-cp312-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for hypercube_hopfield-1.0.3-cp312-cp312-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 80c55df4a56367dc0897cdd067a67c2a7ea290569b9c96a002790387f869d498
MD5 8bee3d97cc6073d8aad8ad6639ed62d4
BLAKE2b-256 c80eb997a9576c130d7c91c35e9d0dcb1c9d6191c1acf58783d14ee47f93f407

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_hopfield-1.0.3-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.3-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for hypercube_hopfield-1.0.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e6680b7d74b9ebe6afaf41dbcfa5ed397a3e3696b57e822033ba000fb2bbb617
MD5 d653a7d38ce4cc44c61e571b0f6a6b48
BLAKE2b-256 558a9c83b51f1566fabfe9be999c386427d990f5dfb42c36180c763d86d1faec

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_hopfield-1.0.3-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.3-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for hypercube_hopfield-1.0.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6aff1ae733f09b2c6fe1cd262f3b8109ea616b40802f2041e69975613806a74a
MD5 400325aaed0729da218ed7659779152f
BLAKE2b-256 8085a64ed4dfce226612605c0f045507b4998ceae1d63ea27a90bff1fb942fc6

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_hopfield-1.0.3-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.3-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for hypercube_hopfield-1.0.3-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a5b0ec7311da3c54ecf506613b64b8c5dff545ca09b81d8c55d6ef5edc86ec9b
MD5 6ab8345511f717f84c934afe0ae564f2
BLAKE2b-256 0ddf8c513556e38c56fe0d232f4c82944282c43c5399842643ae4061a683fdb1

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_hopfield-1.0.3-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.3-cp311-cp311-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for hypercube_hopfield-1.0.3-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 5551d0c609dcbbc5c48758b80c6b9d914a9e4ac6e605f191f67797981ce2e379
MD5 139f203bf51e00aa41cdd15d7aec83bf
BLAKE2b-256 f6f2a2f85c54504a696ea11051660a280fe22cabe65941b76de900c318db9aaa

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_hopfield-1.0.3-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.3-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for hypercube_hopfield-1.0.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c149796b3b85dd758426cf9829d3599c0e84f7e7d6e6c5d910d0cea4a8aecf3d
MD5 5ced8b3c61ee2a107e939006c5a35802
BLAKE2b-256 f48f0183f0565e60d97d2569af1c3a454d9e30c229279f85af73572b4d9726fe

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_hopfield-1.0.3-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.3-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for hypercube_hopfield-1.0.3-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 59744a6ad796a0cdd377b2289535b0b686d275ed2be3c480075cea1f0784910b
MD5 a56f79dc7d8ad4286346e17d3ca1161a
BLAKE2b-256 0353114151cf23a61e0bb425b1b75f4a0531d9d6b634a7a6081484f9a5fd7fdd

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_hopfield-1.0.3-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.3-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for hypercube_hopfield-1.0.3-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 23c573b486f34eceac4d03aceb074f5cc4435c4d3fbe890bfcd967ed6ac55e40
MD5 db041a7d31713f96939c16c5ec143076
BLAKE2b-256 7d49d9e044645a253e68fff324c8d97f9f2af9284297f302f1bd141b3ce7f2a4

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_hopfield-1.0.3-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.3-cp310-cp310-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for hypercube_hopfield-1.0.3-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 82f1247583c6c05113a5e5d256e6d87a6e36c789af400bc62ab2882ca82b104d
MD5 63f0ad81cafceb4e64c11cb14d0e5a08
BLAKE2b-256 643877e5860925405ed8c3633fba1ef7802f14aa7aa251aca5103ed4ade705d9

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_hopfield-1.0.3-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.3-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for hypercube_hopfield-1.0.3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ccd7f9cbf36ebb466243864f3e70d63755b35743c343c00e72e6ef65869c102c
MD5 49e3bdc6440f15aadd09bc9491d2a5dc
BLAKE2b-256 ebde2ae209025306414b76e544b6b24f8dfed5be1c2b609a913dea2a515b7e32

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_hopfield-1.0.3-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

This release

1.0.3 This release

17 files

1.0.2

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