Skip to main content

An implementation of the Quine-McCluskey algorithm

Project description

A Python implementation of the Quine McCluskey algorithm.

This implementation of the Quine McCluskey algorithm has no inherent limits (other than the calculation time) on the size of the inputs.

Also, in the limited tests of the author of this module, this implementation is considerably faster than other public Python implementations for non-trivial inputs.

Another unique feature of this implementation is the possibility to use the XOR and XNOR operators, in addition to the normal AND operator, to minimise the terms. This slows down the algorithm, but in some cases the result can be much more compact than a sum of product.

How to install qm.py

Install the package with

python setup.py install

This needs superuser privileges. If you want to install the package locally, you can run:

mypath=XXX PYTHONPATH=$mypath/lib/python2.7/site-packages/ python setup.py install –prefix $mypath

where XXX can be any path. You may have to change the PYTHONPATH according to your python version.

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

quine_mccluskey-0.3.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

quine_mccluskey-0.3-py2-none-any.whl (10.8 kB view details)

Uploaded Python 2

File details

Details for the file quine_mccluskey-0.3.tar.gz.

File metadata

  • Download URL: quine_mccluskey-0.3.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/2.7.16

File hashes

Hashes for quine_mccluskey-0.3.tar.gz
Algorithm Hash digest
SHA256 348fa01b4778a45c41789ade08b838b18bd0d8da194ca94164e89739ec9d387d
MD5 a4dd57f7e74057ee122022d0d957ab70
BLAKE2b-256 a0d660c205f6241ba73ca66cba56597ee598a3d0ee056a87b7bf4e8727fa5c67

See more details on using hashes here.

File details

Details for the file quine_mccluskey-0.3-py2-none-any.whl.

File metadata

  • Download URL: quine_mccluskey-0.3-py2-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/2.7.16

File hashes

Hashes for quine_mccluskey-0.3-py2-none-any.whl
Algorithm Hash digest
SHA256 7b6d50d993e7fe20448d24267e947723b3271137737488bf07e63cf6abda2e59
MD5 309f231c5bcf7e52f95cbbec6cd20214
BLAKE2b-256 c53c336877ca5bfa4e4a7ac800f7624bf2c051088b2cd2dd6165186d5c05b64a

See more details on using hashes here.

Supported by

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