Skip to main content

hdlib

Hyperdimensional Computing Library for building Vector-Symbolic Architectures in Python 3.

Conda DOI DOI

Vector-Symbolic Architectures (VSA, a.k.a. Hyperdimensional Computing) is an emergent computing paradigm that works by combining vectors in a high-dimensional space for representing and processing information. This approach recently shown promise in various domains for dealing with different kind of computational problems, including artificial intelligence, cognitive science, robotics, natural language processing, bioinformatics, medical informatics, cheminformatics, and internet of things among other scientific disciplines.

Here we present hdlib, a Python library for designing Vector-Symbolic Architectures. It is distributed under the MIT license as a Python package through PyPI and Conda on the conda-forge channel.

GitHub releases are also available on Zenodo at https://doi.org/10.5281/zenodo.7996502.

Please refer to the official Wiki for any information about the implemented modules and how to use the library.

Here is the table of content:

Agent Skills

Want to use hdlib with an LLM coding assistant? The hdlib-skills repository provides a collection of Agent Skills that teach LLM agents how to use the library effectively.

The skills cover foundational concepts (vectors, space, arithmetic, and distance operations), machine learning models (classification, clustering, regression, graph encoding, and feature selection), quantum hyperdimensional computing, and common usage patterns (analogical reasoning, data encoding, and troubleshooting).

They are compatible with any tool that supports the Agent Skills standard. See the hdlib-skills repository for installation and usage instructions.

Credits

Please credit our work in your manuscript by citing:

@article{cumbo2023hdlib,
  title   = {hdlib: A python library for designing Vector-Symbolic Architectures},
  author  = {Cumbo, Fabio and Weitschek, Emanuel and Blankenberg, Daniel},
  journal = {Journal of Open Source Software},
  volume  = {8},
  number  = {89},
  pages   = {5704},
  year    = {2023},
  doi     = {10.21105/joss.05704}
}

@misc{cumbo2026hdlib,
  title         = {hdlib 2.0: Extending Machine Learning Capabilities of Vector-Symbolic Architectures}, 
  author        = {Fabio Cumbo and Kabir Dhillon and Daniel Blankenberg},
  year          = {2026},
  eprint        = {2601.02509},
  archivePrefix = {arXiv},
  primaryClass  = {cs.LG},
  url           = {https://arxiv.org/abs/2601.02509}
}

Other publications

hdlib has been cited in the following selected publications. If you have used our library in your research, we would love to hear from you!

Cumbo et al., (2020). A brain-inspired hyperdimensional computing approach for classifying massive DNA methylation data of cancer. Algorithms, 13(9), 233. https://doi.org/10.3390/a13090233

Cumbo et al., (2025). Feature selection with vector-symbolic architectures: a case study on microbial profiles of shotgun metagenomic samples of colorectal cancer. Briefings in Bioinformatics, 26(2), bbaf177. https://doi.org/10.1093/bib/bbaf177

Joshi et al., (2025). Large-scale classification of metagenomic samples: a comparative analysis of classical machine learning techniques vs a novel brain-inspired hyperdimensional computing approach. bioRxiv, 2025-07. https://doi.org/10.1101/2025.07.06.663394

Cumbo et al., (2025). Hyperdimensional computing in biomedical sciences: a brief review. PeerJ Computer Science, 11, e2885. https://doi.org/10.7717/peerj-cs.2885

Cumbo et al., (2026). A novel Vector-Symbolic Architecture for graph encoding and its application to viral pangenome-based species classification. BioData Mining, 2026-05. https://doi.org/10.1186/s13040-026-00561-1

Cumbo et al., (2026). Quantum Hyperdimensional Computing: a foundational paradigm for quantum neuromorphic architectures. npj Unconventional Computing, 3(1), 21. https://doi.org/10.1038/s44335-026-00064-6

Cumbo et al., (2026). Designing vector-symbolic architectures for biomedical applications: ten tips and common pitfalls. PeerJ Computer Science, 12, e3682. https://doi.org/10.7717/peerj-cs.3682

Cumbo et al., (2026). Predicting the toxicity of chemical compounds via Hyperdimensional Computing. Molecular Informatics, 45(9), e70052. https://doi.org/10.1002/minf.70052

Support and contributions

Long-term discussion and bug reports are maintained via GitHub Issues, while code review is managed via GitHub Pull Requests.

Please, (i) be sure that there are no existing issues/PR concerning the same bug or improvement before opening a new issue/PR; (ii) write a clear and concise description of what the bug/PR is about; (iii) specifying the list of steps to reproduce the behavior in addition to versions and other technical details is highly recommended.

For additional information about how to contribute, please visit the CONTRIBUTING section.

Copyright © 2025 Fabio Cumbo. See LICENSE for additional details.

Release files for hdlib 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hdlib 2.1.0
File Size Uploaded
hdlib-2.1.0.tar.gz 66.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hdlib 2.1.0
File Interpreter ABI Platform
hdlib-2.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 129.3 kB

Release files / hdlib-2.1.0.tar.gz

Download URL hdlib-2.1.0.tar.gz
Size 66.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c6431bc59555da2615b21bf9f6a05fe11768642faedeb74590065eb9a34324d9
BLAKE2b-256 checksum
How to use checksums
0e63da63645b98d56ebcefea0da3d3608e75bf7732045c558efaee3348b671a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.

Transparency log

Release files / hdlib-2.1.0-py3-none-any.whl

Download URL hdlib-2.1.0-py3-none-any.whl
Size 62.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f71b49443e5324a67d33138845767cabe39618a29c95b49ac3aa21b8ca91c421
BLAKE2b-256 checksum
How to use checksums
a5909a368c02dc29185afb15ba788deaf374466b1cda931721b66a53958c52fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2.1.0 This release

2 release files

2.0.0

1 release file

0.1.20

1 release file

0.1.19

1 release file

0.1.18

1 release file

0.1.17

1 release file

0.1.16

1 release file

0.1.15

1 release file

0.1.14

1 release file

0.1.13

1 release file

0.1.12

1 release file

0.1.11

1 release file

0.1.10

1 release file

0.1.9

1 release file

0.1.8

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

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