Skip to main content

Logical Zonotope Functions Library

Project description

#Logical Zonotope Python Library Logical Zonotope: A Set Representation for Binary Vectors Based on https://arxiv.org/abs/2210.08596

logical zonotopes can be used to greatly reduce the computational complexity of a variety of operations over sets of binary vectors, including logical operations (e.g. XOR, NAND, AND, OR) and semi-tensor products.

Installation

pip install logical-zonotope
from logical_zonotope import LogicalZonotope, z_xnor

#Instanciating Logical Zonotope Objects
zonotope_1 = LogicalZonotope()
zonotope_2 = LogicalZonotope()
zonotope_1.set((1, 1), {(1, 0)})
zonotope_2.set((0, 1), {(1, 1), (1, 0), (1, 1)})

# Calling the z_xnor method
z_xnor(zonotope_1, zonotope_2).print()

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

logical-zonotope-0.1.0.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

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

logical_zonotope-0.1.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file logical-zonotope-0.1.0.tar.gz.

File metadata

  • Download URL: logical-zonotope-0.1.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.5

File hashes

Hashes for logical-zonotope-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bf3ec1dc851b8fbca6748c533a2e246a5bd27bcf6fd3e925086d4a6913498ab5
MD5 5dcbf3fe5dc7238e2a1c6d1dd49c5f6e
BLAKE2b-256 e06169c84f27907d7bb8ab8bc10f7f8cd72f641140d86590e233ac9ce30cf80d

See more details on using hashes here.

File details

Details for the file logical_zonotope-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for logical_zonotope-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5d495cd32e462d659e00386fa8d677513b1a85efb9265812d4699de445abeff9
MD5 e4977f69ff06aa72834beccc73ba22fb
BLAKE2b-256 16ae0d943b794a86df71687cb3342a007ece0fc8c25346a0a15993229aa22179

See more details on using hashes here.

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