- 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.
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| penaltymodel-1.3.0.tar.gz | 32.2 kB | Without provenance | Details for penaltymodel-1.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| penaltymodel-1.3.0-py3-none-any.whl | Python 3 | none | any | Details for penaltymodel-1.3.0-py3-none-any.whl |
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
|
Security for penaltymodel 1.3.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.