This release is a pre-release and may not be stable for production use.
Gibbsiq
Validate and tune stochastic workloads.
Gibbsiq helps you decide whether a sampler, model approximation, or execution policy meets your application's quality requirements. It compares executions with a reference, measures uncertainty, and saves a reproducible report.
Stochastic outputs vary from run to run. A single score can hide a sampling error or make a backend change look better than it is. Gibbsiq turns that comparison into a repeatable workflow: define the workload and tolerance, run the experiment, then use the result in development or CI.
- Qualify: evaluate quality with explicit metrics and confidence intervals.
- Compare: detect regressions between compatible experiments.
- Tune: select sampling settings and validate them on held-out inputs.
- Inspect: read and verify saved results offline.
- Model: build QUBO/Ising problems, sample them, and compute diagnostics.
Install
Requires Python 3.10 or newer. Install from a checkout:
git clone https://github.com/neilhuang007/Gibbsiq.git
cd Gibbsiq
python -m pip install .
The core uses the Python standard library. Optional integrations add NumPy, dimod, NetworkX, THRML, Torx, and Z1T. See installation for environment recipes.
Your first experiment
gibbsiq qualify --example spin-conditional --output runs/baseline
gibbsiq inspect runs/baseline --verify
This example compares sampled spins with their analytic mean. The report shows the estimated error, confidence interval, tolerance, and qualification result. The output directory contains the plan, observations, metrics, and report.
Introduce a sign error and compare the results:
gibbsiq qualify --example spin-conditional --candidate sign-reversed --runs 256 --output runs/defect
gibbsiq compare runs/baseline runs/defect --candidate-change spin-conditional-sign-reversed-v1
Both the defective experiment and its regression comparison return exit code 1.
Add --json to consume results in scripts.
Python API
from gibbsiq import compile_ising, exact_boltzmann_distribution
model = compile_ising({"a": 0.25, "b": -0.5}, {("a", "b"): 1.0})
distribution = exact_boltzmann_distribution(model, beta=1.0)
The qualification API exposes qualify, inspect_bundle, compare_bundles,
and run_search. See the Python workflow
for an executable example.
Documentation
License
Gibbsiq is MIT licensed. Adapted Z1T code carries Apache-2.0 attribution.
Metadata
Release files for gibbsiq 0.2.0a1
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 |
|---|---|---|---|---|
| gibbsiq-0.2.0a1.tar.gz | 512.7 kB | With provenance | Details for gibbsiq-0.2.0a1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gibbsiq-0.2.0a1-py3-none-any.whl | Python 3 | none | any | Details for gibbsiq-0.2.0a1-py3-none-any.whl |
Total release size: 796.1 kB
Release files / gibbsiq-0.2.0a1.tar.gz
| Download URL | gibbsiq-0.2.0a1.tar.gz |
|---|---|
| Size | 512.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c14e2909cd486ae32ea8bb0336028f692abf44d5bf0f6a5c0a432adea0551347
|
|
BLAKE2b-256 checksum How to use checksums |
25da5307f5b5ca1cc55da4c7a42632f9b76c65c02dad76895c18477a15a669da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.
Transparency logRelease files / gibbsiq-0.2.0a1-py3-none-any.whl
| Download URL | gibbsiq-0.2.0a1-py3-none-any.whl |
|---|---|
| Size | 283.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
36a4bdc8c71c032be782d40a5414db142c7031b5ce1e00f0e0ea77e6463ac913
|
|
BLAKE2b-256 checksum How to use checksums |
386827bde09bf8fbe58161442621ff714059d093b787f0f8a4f26e6ec1810ce0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.
Transparency logSecurity for gibbsiq 0.2.0a1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for gibbsiq-0.2.0a1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.
Transparency logA 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.