Skip to main content

QuineMcCluskey

Table of Contents

Introduction
Requirements
Usage
Resources
License

Quine–McCluskey Algorithm Python Library

Welcome to the Quine–McCluskey Python library – a powerful tool for minimizing Boolean functions with ease! Developed by Willard V. Quine and extended by Edward J. McCluskey, this algorithm is your go-to method for simplifying Boolean expressions efficiently.

Installation

Now you can install the Quine–McCluskey Python library using pip. Just run the following command:

pip install simpliqm

Getting Started

Once installed, you can leverage the library's public API directly from Python. Two essential functions are at your disposal:

  1. minimize: Minimize Boolean functions with the provided minterms and optional don't care terms.
  2. format_minimized_expression: Format the minimized expression for clearer representation.

Command Line Interface

Additionally, the library provides a convenient command-line interface. After installation, you can use the 'qm' entry point directly from the terminal:

qm

Requirements

Ensure you have Python version 3.6 or higher installed to use this library.

Usage

From Python:

from simpliqm import minimize, format_minimized_expression

n_bits = 4
minterms = [0, 1, 2, 4, 8, 10, 12, 15]
xterms = [5, 6]

minimized_result = minimize(n_bits, minterms, xterms)
formatted_result = format_minimized_expression(minimized_result)

print(f"Minimized Expression: {formatted_result}")

From the Terminal:

qm

Follow the prompts to input your Boolean function details.

Minimization Gif

Resources

License

This project is licensed under the GNU General Public License v3.0.

Metadata

Release files for simpliqm 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for simpliqm 1.0.0
File Size Uploaded Provenance Actions
simpliqm-1.0.0.tar.gz 19.2 kB Without provenance Details for simpliqm-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for simpliqm 1.0.0
File Interpreter ABI Platform Actions
simpliqm-1.0.0-py3-none-any.whl Python 3 none any Details for simpliqm-1.0.0-py3-none-any.whl

Total release size: 37.3 kB

Release files / simpliqm-1.0.0.tar.gz

Download URL simpliqm-1.0.0.tar.gz
Size 19.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ad27f5df6cf420b2b95179b5f3c0cd7428ce7455887a662e373de4ddcee956d0
BLAKE2b-256 checksum
How to use checksums
7b00425e8d7d7aecc0cac3b083c48f29d056199dafd3da084a1bee73fee30d84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release files / simpliqm-1.0.0-py3-none-any.whl

Download URL simpliqm-1.0.0-py3-none-any.whl
Size 18.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
24d904f834bc503eef7d8e2591e2ad92f11aaba85661b448db767b475c0a0658
BLAKE2b-256 checksum
How to use checksums
87878561beb1a5d899563af0370f5531431cf5ac525c78ee03b7765bbe6ae3d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Security for simpliqm 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page