Arithmetic circuits on the GPU
Project description
KLay
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab6d5227bf87bf66a5d431c3ccf1e57a0629d2e5aeb72fa553d53d2f685d5712
|
|
| MD5 |
7a10aaddcc5e0402c27d02aa3a94d944
|
|
| BLAKE2b-256 |
06eef022fb7b186700bbcab47ecf8535e854cd4b2d91dd9c838c60db6c375865
|
Provenance
The following attestation bundles were made for klaycircuits-0.0.3.tar.gz:
Publisher:
main.yml on ML-KULeuven/klay
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
klaycircuits-0.0.3.tar.gz -
Subject digest:
ab6d5227bf87bf66a5d431c3ccf1e57a0629d2e5aeb72fa553d53d2f685d5712 - Sigstore transparency entry: 568014510
- Sigstore integration time:
-
Permalink:
ML-KULeuven/klay@a16612a755db3e58ecc2719b1837a932f7b92e41 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ML-KULeuven
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@a16612a755db3e58ecc2719b1837a932f7b92e41 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46847a4f968f2d4b08409fca42f7209b0bbc90f558404a9ef4ba400e426b5856
|
|
| MD5 |
3dfcb6633d8f2fbd15730fd37283e546
|
|
| BLAKE2b-256 |
0b17dd2f713a93f7cd343ef538a5fad42d391020b71d20ee5df295ed1239ac8f
|
Provenance
The following attestation bundles were made for klaycircuits-0.0.3-cp312-abi3-win_amd64.whl:
Publisher:
main.yml on ML-KULeuven/klay
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
klaycircuits-0.0.3-cp312-abi3-win_amd64.whl -
Subject digest:
46847a4f968f2d4b08409fca42f7209b0bbc90f558404a9ef4ba400e426b5856 - Sigstore transparency entry: 568014513
- Sigstore integration time:
-
Permalink:
ML-KULeuven/klay@a16612a755db3e58ecc2719b1837a932f7b92e41 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ML-KULeuven
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@a16612a755db3e58ecc2719b1837a932f7b92e41 -
Trigger Event:
push
-
Statement type:
File details
Details for the file klaycircuits-0.0.3-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: klaycircuits-0.0.3-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 110.3 kB
- Tags: CPython 3.12+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17a983fbdb3d93b80afecdbf9ce1ac831790fdca11805d2e5fb02849a1f7027d
|
|
| MD5 |
9424658bb0005a85efd1eff1f0b91a30
|
|
| BLAKE2b-256 |
a9b46ef5549b66a6465dea16cff8def39e03b81c81febf93fd41a91ea3d6cd66
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
klaycircuits-0.0.3-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
17a983fbdb3d93b80afecdbf9ce1ac831790fdca11805d2e5fb02849a1f7027d - Sigstore transparency entry: 568014558
- Sigstore integration time:
-
Permalink:
ML-KULeuven/klay@a16612a755db3e58ecc2719b1837a932f7b92e41 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ML-KULeuven
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@a16612a755db3e58ecc2719b1837a932f7b92e41 -
Trigger Event:
push
-
Statement type:
File details
Details for the file klaycircuits-0.0.3-cp312-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: klaycircuits-0.0.3-cp312-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 79.5 kB
- Tags: CPython 3.12+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bbd7b3c15a052ee80c1df9735cc5e6086bba45317d13aac631ef6a38a0dc4d69
|
|
| MD5 |
69b6849170607dffb398bbff37b3de99
|
|
| BLAKE2b-256 |
89eb6de2850f834c7645929fc4282568fca042cc51a596a2771979ab3d2689bd
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
klaycircuits-0.0.3-cp312-abi3-macosx_11_0_arm64.whl -
Subject digest:
bbd7b3c15a052ee80c1df9735cc5e6086bba45317d13aac631ef6a38a0dc4d69 - Sigstore transparency entry: 568014528
- Sigstore integration time:
-
Permalink:
ML-KULeuven/klay@a16612a755db3e58ecc2719b1837a932f7b92e41 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ML-KULeuven
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@a16612a755db3e58ecc2719b1837a932f7b92e41 -
Trigger Event:
push
-
Statement type:
File details
Details for the file klaycircuits-0.0.3-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: klaycircuits-0.0.3-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 95.3 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0bc9a1e71874fc480d4c5250512553e8b90c5fe240de9dc42af3f92dfaf4deea
|
|
| MD5 |
bd8840d49f4bc8b6afa771e7b2977f9b
|
|
| BLAKE2b-256 |
a4b7b4358fb1c2c85d5bde2ca60780e3a8cdc93516576b65cb5686a1ac7f22f1
|
Provenance
The following attestation bundles were made for klaycircuits-0.0.3-cp311-cp311-win_amd64.whl:
Publisher:
main.yml on ML-KULeuven/klay
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
klaycircuits-0.0.3-cp311-cp311-win_amd64.whl -
Subject digest:
0bc9a1e71874fc480d4c5250512553e8b90c5fe240de9dc42af3f92dfaf4deea - Sigstore transparency entry: 568014543
- Sigstore integration time:
-
Permalink:
ML-KULeuven/klay@a16612a755db3e58ecc2719b1837a932f7b92e41 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ML-KULeuven
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@a16612a755db3e58ecc2719b1837a932f7b92e41 -
Trigger Event:
push
-
Statement type:
File details
Details for the file klaycircuits-0.0.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: klaycircuits-0.0.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 114.4 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dfda38093eec54941706f373d9662a63cba467b5c32392044952486a169b5435
|
|
| MD5 |
335576d0db6a3bdfd9e1a9a1c18f6bae
|
|
| BLAKE2b-256 |
fb90c18f4d13ca5faea06b2b7032d3ab484f8fa5757a8b5f0af27c06c332d63b
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
klaycircuits-0.0.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
dfda38093eec54941706f373d9662a63cba467b5c32392044952486a169b5435 - Sigstore transparency entry: 568014518
- Sigstore integration time:
-
Permalink:
ML-KULeuven/klay@a16612a755db3e58ecc2719b1837a932f7b92e41 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ML-KULeuven
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@a16612a755db3e58ecc2719b1837a932f7b92e41 -
Trigger Event:
push
-
Statement type:
File details
Details for the file klaycircuits-0.0.3-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: klaycircuits-0.0.3-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 81.5 kB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4296e2e424043d1922fbcd478a1454a5abab08ed4804ace4368f119b8b503659
|
|
| MD5 |
977033f83e0b0463ecc552529d84bf77
|
|
| BLAKE2b-256 |
6b0ab78744db0587b52b219bfa3e17cdc34307b94897dc6bba284eb924b40931
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
klaycircuits-0.0.3-cp311-cp311-macosx_11_0_arm64.whl -
Subject digest:
4296e2e424043d1922fbcd478a1454a5abab08ed4804ace4368f119b8b503659 - Sigstore transparency entry: 568014533
- Sigstore integration time:
-
Permalink:
ML-KULeuven/klay@a16612a755db3e58ecc2719b1837a932f7b92e41 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ML-KULeuven
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@a16612a755db3e58ecc2719b1837a932f7b92e41 -
Trigger Event:
push
-
Statement type:
File details
Details for the file klaycircuits-0.0.3-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: klaycircuits-0.0.3-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 95.6 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c277c881a7299bed9fc8a8e8ca70c7d9b667cd0cecce7eaeac414b02a30223f3
|
|
| MD5 |
4761b58a5e0f3528bc67b054cd015690
|
|
| BLAKE2b-256 |
3c23b2cf6f82ffee612b611e73a0e1495e5167b225d3a14986fc4db7647187b3
|
Provenance
The following attestation bundles were made for klaycircuits-0.0.3-cp310-cp310-win_amd64.whl:
Publisher:
main.yml on ML-KULeuven/klay
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
klaycircuits-0.0.3-cp310-cp310-win_amd64.whl -
Subject digest:
c277c881a7299bed9fc8a8e8ca70c7d9b667cd0cecce7eaeac414b02a30223f3 - Sigstore transparency entry: 568014555
- Sigstore integration time:
-
Permalink:
ML-KULeuven/klay@a16612a755db3e58ecc2719b1837a932f7b92e41 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ML-KULeuven
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@a16612a755db3e58ecc2719b1837a932f7b92e41 -
Trigger Event:
push
-
Statement type:
File details
Details for the file klaycircuits-0.0.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: klaycircuits-0.0.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 114.6 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42edb4d149306a904c2a1ca6e34c633c4089da262c1e078ea71edb052732aa51
|
|
| MD5 |
a173e2f914275beb4c19fcf4e34cf96d
|
|
| BLAKE2b-256 |
b44123f196df5d688d598e4f2da56c43308de88ddd85aaf7cf9a1bb6158f1fb5
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
klaycircuits-0.0.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
42edb4d149306a904c2a1ca6e34c633c4089da262c1e078ea71edb052732aa51 - Sigstore transparency entry: 568014537
- Sigstore integration time:
-
Permalink:
ML-KULeuven/klay@a16612a755db3e58ecc2719b1837a932f7b92e41 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ML-KULeuven
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@a16612a755db3e58ecc2719b1837a932f7b92e41 -
Trigger Event:
push
-
Statement type:
File details
Details for the file klaycircuits-0.0.3-cp310-cp310-macosx_11_0_arm64.whl.
File metadata
- Download URL: klaycircuits-0.0.3-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 81.7 kB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
268fef16d4f98d361165a07ef95bd960c55cb9958383fb4461f161c245fc34c1
|
|
| MD5 |
9f04c68eb4096700e649dc78d37b8138
|
|
| BLAKE2b-256 |
ff8b8c8732d079efa2b19b75e6855dc6202ac499a62150d247d21990a8f71460
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
klaycircuits-0.0.3-cp310-cp310-macosx_11_0_arm64.whl -
Subject digest:
268fef16d4f98d361165a07ef95bd960c55cb9958383fb4461f161c245fc34c1 - Sigstore transparency entry: 568014551
- Sigstore integration time:
-
Permalink:
ML-KULeuven/klay@a16612a755db3e58ecc2719b1837a932f7b92e41 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ML-KULeuven
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@a16612a755db3e58ecc2719b1837a932f7b92e41 -
Trigger Event:
push
-
Statement type: