Skip to main content
warning:

penaltymodel is deprecated. For solving problems with constraints, we recommend using the hybrid solvers in the Leap :tm: service. You can find documentation for the hybrid solvers at https://docs.dwavequantum.com.

https://img.shields.io/pypi/v/penaltymodel.svg https://img.shields.io/pypi/pyversions/penaltymodel.svg https://codecov.io/gh/dwavesystems/penaltymodel/branch/master/graph/badge.svg https://circleci.com/gh/dwavesystems/penaltymodel.svg?style=svg

penaltymodel

One approach to solve a constraint satisfaction problem (CSP) using an Ising model or a QUBO, is to map each individual constraint in the CSP to a ‘small’ Ising model or QUBO. This mapping is called a penalty model.

For more information, see penalty models.

Installation

To install the core package:

pip install penaltymodel

License

Released under the Apache License 2.0

Contributing

Ocean’s contributing guide has guidelines for contributing to Ocean packages.

Release Notes

penaltymodel makes use of reno to manage its release notes.

When making a contribution to penaltymodel that will affect users, create a new release note file by running

reno new your-short-descriptor-here

You can then edit the file created under releasenotes/notes/. Remove any sections not relevant to your changes. Commit the file along with your changes.

See reno’s user guide for details.

Metadata

Release files for penaltymodel 1.3.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 penaltymodel 1.3.0
File Size Uploaded
penaltymodel-1.3.0.tar.gz 32.2 kB Details

Built distribution (wheel)

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

Total release size: 68.4 kB

Release files / penaltymodel-1.3.0.tar.gz

Download URL penaltymodel-1.3.0.tar.gz
Size 32.2 kB
Tags Source
SHA-256 checksum
How to use checksums
34af628916420218b16a8ceca608abbf8530b731fe05902392a3a3bceee395d0
BLAKE2b-256 checksum
How to use checksums
02f63af591b63fca93de731711f8c985e5b7f5ef97de28e334ffeec413c31c82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.23

Release files / penaltymodel-1.3.0-py3-none-any.whl

Download URL penaltymodel-1.3.0-py3-none-any.whl
Size 36.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
543f596a5c1fb602d18355c46349e8ccb2842b335de86958d7525de0d993eda9
BLAKE2b-256 checksum
How to use checksums
2a16501a538776abb83ef02243e937fb7b196a7377e49bb474798ca8bc5a58a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.23
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