Chook
Version 0.2.0 (Release date: March 21, 2021)
License
This software is shared under an Apache License (attached). We ask you to please cite the paper if you choose to use chook. Thank you.
Description
Chook is a comprehensive suite for generating binary optimization problems with planted solutions. Chook currently supports the following problem types:
- Tile planting (2D/3D)
- Wishart planting
- Deceptive cluster loops (DCL)
- Equation planting (k-regular k-XORSAT)
- k-local planting
Requirements
You will need Python 3.4 or later to run Chook.
Installation
One can install Chook using the Python package manager pip:
pip install chook
Alternatively, Chook can be downloaded from GitHub and can be installed as follows:
cd <path_to_repo>
python setup.py install
Usage
chook problem_type config_file [-h] [-n num_instances] [-o output_format] [-f file_format]
Required arguments
-
problem_type: Choose the type of problems to be generated. Allowed options: {
TP,WP,DCL,XORSAT,K_LOCAL}TP: Tile planting (2D/3D)WP: Wishart plantingDCL: Deceptive cluster loops (DCL)XORSAT: Equation planting (k-regular k-XORSAT)K_LOCAL: k-local planting
-
config_file: Configuration file containing problem-type specific parameters. Refer the provided params.in file for an example.
Optional arguments
- -n num_instances
The number of problem instances to be generated (default: 10) - -o output_format
Output format: ising/hobo (default: ising) - -f file_format
File format: txt/json (default: txt) - -h, --help
Show this help message and exit
The generated instances will be stored as text/JSON files in a subdirectory within the current working directory. The ground state energies will be recorded in a separate text file gs_energies.txt. For XORSAT problems, gs_energies.txt will also contain the ground state degeneracies.
Metadata
Release files for chook 0.2.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 |
|---|---|---|---|---|
| chook-0.2.0.tar.gz | 18.9 kB | Without provenance | Details for chook-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| chook-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for chook-0.2.0-py3-none-any.whl |
Total release size: 45.0 kB
Release files / chook-0.2.0.tar.gz
| Download URL | chook-0.2.0.tar.gz |
|---|---|
| Size | 18.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6ea20b7f934d41c0f05995e2553d7dfc4f4dd1b0aafd4d366f9fb5ce02c251d0
|
|
BLAKE2b-256 checksum How to use checksums |
c864086686063331eb222a3a5308420714aedf06799dced73e7e77de2a762cce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6
|
Release files / chook-0.2.0-py3-none-any.whl
| Download URL | chook-0.2.0-py3-none-any.whl |
|---|---|
| Size | 26.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c14dbcbd9f1efc90076561e4d86314e0ba168382ade2abaab242a23a6cef63b6
|
|
BLAKE2b-256 checksum How to use checksums |
98da1112dff57a52c9e82b71a21f88030a5524a6b4b4848d3ce3bdea4a494066
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6
|
Security for chook 0.2.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.