Skip to main content

Arithmetic circuits on the GPU

Project description

KLay

Python 3.10 License Build PyPI Downloads

KLay is a Python library for evaluating sparse circuits on the GPU.

To get started, install KLay using pip and check out the documentation. You can also refer to this video or the paper for more information.

pip install klaycircuits

KLay features:

  • GPU acceleration of circuits using Jax or PyTorch.
  • Loading SDD and d-DNNF circuits compiled by PySDD or D4.
  • Evaluation in various semirings (e.g. real, log, tropical).
  • Propagating constants and merging duplicate nodes.

📃 Paper

If you use KLay in your research, consider citing our paper.

To replicate the exact results and figures of the paper, use this code.

@inproceedings{
    maene2025klay,
    title={{KL}ay: Accelerating Arithmetic Circuits for Neurosymbolic {AI}},
    author = {Maene, Jaron and Derkinderen, Vincent and Zuidberg Dos Martires, Pedro},
    booktitle={The Thirteenth International Conference on Learning Representations},
    year={2025},
    url={https://openreview.net/forum?id=Zes7Wyif8G}
}

Project details


Download files

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

Source Distribution

klaycircuits-0.0.3.tar.gz (71.2 kB view details)

Uploaded Source

Built Distributions

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

klaycircuits-0.0.3-cp312-abi3-win_amd64.whl (93.3 kB view details)

Uploaded CPython 3.12+Windows x86-64

klaycircuits-0.0.3-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (110.3 kB view details)

Uploaded CPython 3.12+manylinux: glibc 2.17+ x86-64

klaycircuits-0.0.3-cp312-abi3-macosx_11_0_arm64.whl (79.5 kB view details)

Uploaded CPython 3.12+macOS 11.0+ ARM64

klaycircuits-0.0.3-cp311-cp311-win_amd64.whl (95.3 kB view details)

Uploaded CPython 3.11Windows x86-64

klaycircuits-0.0.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (114.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

klaycircuits-0.0.3-cp311-cp311-macosx_11_0_arm64.whl (81.5 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

klaycircuits-0.0.3-cp310-cp310-win_amd64.whl (95.6 kB view details)

Uploaded CPython 3.10Windows x86-64

klaycircuits-0.0.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (114.6 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

klaycircuits-0.0.3-cp310-cp310-macosx_11_0_arm64.whl (81.7 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file klaycircuits-0.0.3.tar.gz.

File metadata

  • Download URL: klaycircuits-0.0.3.tar.gz
  • Upload date:
  • Size: 71.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for klaycircuits-0.0.3.tar.gz
Algorithm Hash digest
SHA256 ab6d5227bf87bf66a5d431c3ccf1e57a0629d2e5aeb72fa553d53d2f685d5712
MD5 7a10aaddcc5e0402c27d02aa3a94d944
BLAKE2b-256 06eef022fb7b186700bbcab47ecf8535e854cd4b2d91dd9c838c60db6c375865

See more details on using hashes here.

Provenance

The following attestation bundles were made for klaycircuits-0.0.3.tar.gz:

Publisher: main.yml on ML-KULeuven/klay

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

File details

Details for the file klaycircuits-0.0.3-cp312-abi3-win_amd64.whl.

File metadata

  • Download URL: klaycircuits-0.0.3-cp312-abi3-win_amd64.whl
  • Upload date:
  • Size: 93.3 kB
  • Tags: CPython 3.12+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for klaycircuits-0.0.3-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 46847a4f968f2d4b08409fca42f7209b0bbc90f558404a9ef4ba400e426b5856
MD5 3dfcb6633d8f2fbd15730fd37283e546
BLAKE2b-256 0b17dd2f713a93f7cd343ef538a5fad42d391020b71d20ee5df295ed1239ac8f

See more details on using hashes here.

Provenance

The following attestation bundles were made for klaycircuits-0.0.3-cp312-abi3-win_amd64.whl:

Publisher: main.yml on ML-KULeuven/klay

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

File details

Details for the file klaycircuits-0.0.3-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for klaycircuits-0.0.3-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 17a983fbdb3d93b80afecdbf9ce1ac831790fdca11805d2e5fb02849a1f7027d
MD5 9424658bb0005a85efd1eff1f0b91a30
BLAKE2b-256 a9b46ef5549b66a6465dea16cff8def39e03b81c81febf93fd41a91ea3d6cd66

See more details on using hashes here.

Provenance

The following attestation bundles were made for klaycircuits-0.0.3-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: main.yml on ML-KULeuven/klay

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

File details

Details for the file klaycircuits-0.0.3-cp312-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for klaycircuits-0.0.3-cp312-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bbd7b3c15a052ee80c1df9735cc5e6086bba45317d13aac631ef6a38a0dc4d69
MD5 69b6849170607dffb398bbff37b3de99
BLAKE2b-256 89eb6de2850f834c7645929fc4282568fca042cc51a596a2771979ab3d2689bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for klaycircuits-0.0.3-cp312-abi3-macosx_11_0_arm64.whl:

Publisher: main.yml on ML-KULeuven/klay

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

File details

Details for the file klaycircuits-0.0.3-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for klaycircuits-0.0.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0bc9a1e71874fc480d4c5250512553e8b90c5fe240de9dc42af3f92dfaf4deea
MD5 bd8840d49f4bc8b6afa771e7b2977f9b
BLAKE2b-256 a4b7b4358fb1c2c85d5bde2ca60780e3a8cdc93516576b65cb5686a1ac7f22f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for klaycircuits-0.0.3-cp311-cp311-win_amd64.whl:

Publisher: main.yml on ML-KULeuven/klay

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

File details

Details for the file klaycircuits-0.0.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for klaycircuits-0.0.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dfda38093eec54941706f373d9662a63cba467b5c32392044952486a169b5435
MD5 335576d0db6a3bdfd9e1a9a1c18f6bae
BLAKE2b-256 fb90c18f4d13ca5faea06b2b7032d3ab484f8fa5757a8b5f0af27c06c332d63b

See more details on using hashes here.

Provenance

The following attestation bundles were made for klaycircuits-0.0.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: main.yml on ML-KULeuven/klay

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

File details

Details for the file klaycircuits-0.0.3-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for klaycircuits-0.0.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4296e2e424043d1922fbcd478a1454a5abab08ed4804ace4368f119b8b503659
MD5 977033f83e0b0463ecc552529d84bf77
BLAKE2b-256 6b0ab78744db0587b52b219bfa3e17cdc34307b94897dc6bba284eb924b40931

See more details on using hashes here.

Provenance

The following attestation bundles were made for klaycircuits-0.0.3-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: main.yml on ML-KULeuven/klay

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

File details

Details for the file klaycircuits-0.0.3-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for klaycircuits-0.0.3-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c277c881a7299bed9fc8a8e8ca70c7d9b667cd0cecce7eaeac414b02a30223f3
MD5 4761b58a5e0f3528bc67b054cd015690
BLAKE2b-256 3c23b2cf6f82ffee612b611e73a0e1495e5167b225d3a14986fc4db7647187b3

See more details on using hashes here.

Provenance

The following attestation bundles were made for klaycircuits-0.0.3-cp310-cp310-win_amd64.whl:

Publisher: main.yml on ML-KULeuven/klay

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

File details

Details for the file klaycircuits-0.0.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for klaycircuits-0.0.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 42edb4d149306a904c2a1ca6e34c633c4089da262c1e078ea71edb052732aa51
MD5 a173e2f914275beb4c19fcf4e34cf96d
BLAKE2b-256 b44123f196df5d688d598e4f2da56c43308de88ddd85aaf7cf9a1bb6158f1fb5

See more details on using hashes here.

Provenance

The following attestation bundles were made for klaycircuits-0.0.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: main.yml on ML-KULeuven/klay

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

File details

Details for the file klaycircuits-0.0.3-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for klaycircuits-0.0.3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 268fef16d4f98d361165a07ef95bd960c55cb9958383fb4461f161c245fc34c1
MD5 9f04c68eb4096700e649dc78d37b8138
BLAKE2b-256 ff8b8c8732d079efa2b19b75e6855dc6202ac499a62150d247d21990a8f71460

See more details on using hashes here.

Provenance

The following attestation bundles were made for klaycircuits-0.0.3-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: main.yml on ML-KULeuven/klay

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page