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.4.tar.gz (72.9 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.4-cp314-cp314t-win_amd64.whl (132.6 kB view details)

Uploaded CPython 3.14tWindows x86-64

klaycircuits-0.0.4-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (129.7 kB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

klaycircuits-0.0.4-cp314-cp314t-macosx_11_0_arm64.whl (109.9 kB view details)

Uploaded CPython 3.14tmacOS 11.0+ ARM64

klaycircuits-0.0.4-cp312-abi3-win_amd64.whl (94.4 kB view details)

Uploaded CPython 3.12+Windows x86-64

klaycircuits-0.0.4-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (123.8 kB view details)

Uploaded CPython 3.12+manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

klaycircuits-0.0.4-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (111.4 kB view details)

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

klaycircuits-0.0.4-cp312-abi3-macosx_11_0_arm64.whl (80.5 kB view details)

Uploaded CPython 3.12+macOS 11.0+ ARM64

klaycircuits-0.0.4-cp311-cp311-win_amd64.whl (96.4 kB view details)

Uploaded CPython 3.11Windows x86-64

klaycircuits-0.0.4-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (128.3 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

klaycircuits-0.0.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (115.5 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

klaycircuits-0.0.4-cp311-cp311-macosx_11_0_arm64.whl (82.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

klaycircuits-0.0.4-cp310-cp310-win_amd64.whl (96.7 kB view details)

Uploaded CPython 3.10Windows x86-64

klaycircuits-0.0.4-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (128.5 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

klaycircuits-0.0.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (115.7 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

klaycircuits-0.0.4-cp310-cp310-macosx_11_0_arm64.whl (82.8 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: klaycircuits-0.0.4.tar.gz
  • Upload date:
  • Size: 72.9 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.4.tar.gz
Algorithm Hash digest
SHA256 2b259a8e3bf8e40252e6b2fc244450a20b5f051f64462dafab694309215a86bf
MD5 0f6f1c820253b2fa945415fbfe824a5b
BLAKE2b-256 2923a34b48cd1710cc70eebaef1867a4fec01b75396df1d1577f88f374e75b53

See more details on using hashes here.

Provenance

The following attestation bundles were made for klaycircuits-0.0.4.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.4-cp314-cp314t-win_amd64.whl.

File metadata

File hashes

Hashes for klaycircuits-0.0.4-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 ab127a443dc69e6227855615febb2b0ebbff956b3c5db2a75499770086dd576f
MD5 3e85dab2036ea22cf9b72dbdfa355f2f
BLAKE2b-256 49bf662dcaa21f1b450578092344032b4cd9a01cfc2d77b01a8d6175d05e7605

See more details on using hashes here.

Provenance

The following attestation bundles were made for klaycircuits-0.0.4-cp314-cp314t-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.4-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for klaycircuits-0.0.4-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 989467834d9c1fd93e2045741cdf758821f087f1de9724e1ffa82aa689c19eae
MD5 511e7dc92990ae87882f1c66259d7794
BLAKE2b-256 e57621611159034acfad1585b29cca24775d56ce256a17bce67e776ce1153843

See more details on using hashes here.

Provenance

The following attestation bundles were made for klaycircuits-0.0.4-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_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.4-cp314-cp314t-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for klaycircuits-0.0.4-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4fb55e7d32d933a39f736d57873c9a2aef6a33c04ebd023e17959b0e519a9913
MD5 3bb65af00c488ce453b6d8ed652c431e
BLAKE2b-256 74416e66494f27e5eea7e71397c70ec1d9ecf8b8979508b34656acc1c559672c

See more details on using hashes here.

Provenance

The following attestation bundles were made for klaycircuits-0.0.4-cp314-cp314t-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.4-cp312-abi3-win_amd64.whl.

File metadata

  • Download URL: klaycircuits-0.0.4-cp312-abi3-win_amd64.whl
  • Upload date:
  • Size: 94.4 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.4-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 4b35f2e2deb93849376ec4c3eba8e3db4c400bb58e16fa4aebe644ce54c8c301
MD5 7afd3ef376b9229120219576cbf70efb
BLAKE2b-256 6f453776d82209b3f94abf3c7f8ed86efa4e397d5e8e97f7b42e7511c6e9726c

See more details on using hashes here.

Provenance

The following attestation bundles were made for klaycircuits-0.0.4-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.4-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for klaycircuits-0.0.4-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 562090fce727cf6e5a614708f27978a0a36e5ac66ff0d399d7b9161dea132854
MD5 6cb03c1cb6ce09588080da747d32bd5a
BLAKE2b-256 b6b096dd589fada0ee57f9a8f775ffb3e2e109de0887c0ff5a216a25c8084081

See more details on using hashes here.

Provenance

The following attestation bundles were made for klaycircuits-0.0.4-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_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.4-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for klaycircuits-0.0.4-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 74066914d788e77aad93ec63cfeeb665ee7ee724b712c1ff8008cfc3d7afbcc2
MD5 ac527de1d33834567106fa3ac7f0255b
BLAKE2b-256 ce2bc5bef3acf155a955f258915b6f8e4b4ae22c1373f125b166a5a54de88d10

See more details on using hashes here.

Provenance

The following attestation bundles were made for klaycircuits-0.0.4-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.4-cp312-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for klaycircuits-0.0.4-cp312-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 243e6440638bd36d8ba638b210871fefc2855fa45f7b2b126566f42785537439
MD5 3d9464a37508b0666048e710a525e7b9
BLAKE2b-256 b61221e00d2dc2b4bdc9b875ce9953172d43cfa3350078c2d12bf5e6eb4c3ddd

See more details on using hashes here.

Provenance

The following attestation bundles were made for klaycircuits-0.0.4-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.4-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for klaycircuits-0.0.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f15077750600620060b2939f158b8253779f71d6f3107b74d1d5ef0060d7a342
MD5 fb6b94269473fe91b850a397df08c16d
BLAKE2b-256 d3d147750205953f39d4b8203184d7f7d7ffdb666522672c64f687de742ad4b3

See more details on using hashes here.

Provenance

The following attestation bundles were made for klaycircuits-0.0.4-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.4-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for klaycircuits-0.0.4-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 92d7dcf28ca0d08f2b9c04e089273c64857e6fad315c2d586900cb71edb80d4a
MD5 02b9d01149fa6886e89addbb293afa64
BLAKE2b-256 f1ae41ba3287a924aa602ae785b73f4bd4f865c1155b01dc5a8394140ea00150

See more details on using hashes here.

Provenance

The following attestation bundles were made for klaycircuits-0.0.4-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_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.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for klaycircuits-0.0.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 54f1540ffb371fe9ffa5907cdb142362cccf05702dcfa28d1db09832f4cb4486
MD5 8a965905838d772a22cc506ae8a71803
BLAKE2b-256 d8a5b90c3608027e87fa5e7a9e433a0ff533f7bbde77625966f7ed72479e7955

See more details on using hashes here.

Provenance

The following attestation bundles were made for klaycircuits-0.0.4-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.4-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for klaycircuits-0.0.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f08029808797e32c89f8a3b1b2be3479d98417166dec6816b455b7a1f7acf2af
MD5 0f95d34f51249f812d2f052b8001d178
BLAKE2b-256 e3ab8ec51675147d34d70cebcf769c1f69e6070c3b31d02451d2b21e0c37a8b7

See more details on using hashes here.

Provenance

The following attestation bundles were made for klaycircuits-0.0.4-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.4-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for klaycircuits-0.0.4-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 90fcc45fd87aa11d067a4ebbd131e48b08a66144f97ac089e87964c6852c0dcf
MD5 fb54461461f3b84c69634520b20c0e02
BLAKE2b-256 e115bf432cf04634157fb4d8cb2c4101bb09728930972ae20658d8b78f066fe7

See more details on using hashes here.

Provenance

The following attestation bundles were made for klaycircuits-0.0.4-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.4-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for klaycircuits-0.0.4-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b667229d531eed0ee5493b8b696b124c6664826288e4b3080c9c3d76cddd9f5f
MD5 496015d37256402f7e1085ab3ba5c7db
BLAKE2b-256 bb7b6a555a985180200deb5cc3f01a860127a58a4613972de5e059496c4f21b1

See more details on using hashes here.

Provenance

The following attestation bundles were made for klaycircuits-0.0.4-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_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.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for klaycircuits-0.0.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 afc033f9c9c3128c8ba644628950a8aef9435e5e6da005cb89ad4ba921a0de76
MD5 2656ff709670051f7432c670f8b44fc9
BLAKE2b-256 b94f248a9b17f89d02338b196e3a69f638b5e9b5e8192722a8574bc33af5e083

See more details on using hashes here.

Provenance

The following attestation bundles were made for klaycircuits-0.0.4-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.4-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for klaycircuits-0.0.4-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 64adc6b64e71bd6ae8e5ebe66d0e05ffb5e0b884ca6b8d6cef944995b98e6592
MD5 061f3fb2c2e2623b73aa557be93441e0
BLAKE2b-256 78a161775d4162bfde35dea0f1857313dabd28933112a975a466b85dc97dc576

See more details on using hashes here.

Provenance

The following attestation bundles were made for klaycircuits-0.0.4-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