quip-solver-core
This repository is the shared Quip solver contract. A solver binary accepts Ising problems and returns spin configurations with their energies.
Rust solvers supply a Sampler and call run.
C and C++ solvers register sampling callbacks with the C library.
The Python wheel and npm package carry consensus primitives and generated gRPC stubs.
Python and TypeScript solvers provide their own session loops.
The full contract is in SPEC.md.
CHANGELOG.md lists the 0.0.7 changes.
MIGRATING.md covers solver API changes.
Releases from 0.0.2-rc3 require protocol version 2.
Update the coordinator and solvers together using the
coordinator upgrade guide.
The miner hardware guide describes how a GPU or other device draws lease problems.
The topology file format defines the .bin.gz files that hold the family vectors topologies.
Crates
| Crate | What it holds |
|---|---|
quip-solver-core |
The Sampler trait, Ising and compressed sparse row types, inverse-temperature ladder, adaptive budget, session loop |
quip-proto |
Generated tonic and prost stubs for proto/quip/v1/miner.proto |
quip-protocol |
Wire codec, energy and diversity scoring, handshake, ChaCha8 draw |
ising-generators |
Family descriptors, canonical instances, ChaCha8 streams, and nonce derivation, no_std |
quip-solver-conformance |
Golden vectors and the scripted session driver |
quip-protocol-py |
PyO3 bindings exposing quip-protocol scoring and wire primitives to Python |
quip-protocol-wasm |
WebAssembly bindings behind the npm package |
quip-solver-c |
C binary interface over the session loop, shipped as a release artifact |
Install
Every binding ships from its own registry. The C library ships as a release artifact, because a C consumer wants the compiled object and the header.
Rust
[dependencies]
quip-solver-core = "0.0.7"
[dev-dependencies]
quip-solver-conformance = "0.0.7"
One dependency is enough. quip-solver-core re-exports quip_proto and
quip_protocol. Default Sampler implementations use IsingGraph<f64>
and quip_solver_core::quip_protocol::scoring::energy_milli.
A solver can select Sampler<Milli> to receive exact wire coefficients.
Import Milli from quip_solver_core::coefficient. Its stored integer is
available through .0. Score those integers with
quip_solver_core::quip_protocol::scoring::energy_from_milli.
The Rust example shows this choice.
Python
pip install quip-solver-core
Node packages
npm install @quip.network/quip-solver-core
Native libraries
Download quip-solver-clib-<tag>-linux-amd64.tar.gz from the release page. It
holds libquip_solver_c.so, libquip_solver_c.a, and include/quip_solver.h.
Samples
examples/ holds a conformant mock solver in four languages. Rust, C++,
Python, and TypeScript each consume the published artifact and pass
quip-solver-drive. Start there rather than from this README.
Conformance
A solver is conformant when quip-solver-drive reports a conformant session
and a conformant --solve run.
The --family gate applies to a solver that lists generated families.
cargo build -p quip-solver-conformance --bin quip-solver-drive --release
./target/release/quip-solver-drive <solver-binary> unix:///tmp/quip-check.sock
./target/release/quip-solver-drive --solve <solver-binary>
./target/release/quip-solver-drive --family <solver-binary> unix:///tmp/quip-family.sock
Exit code 0 means conformant. With --family, a revision that the solver
lists in generated_families but the driver cannot drive fails the gate. The
driver spawns any executable, so this works for a solver in any language.
Licence
Metadata
Release files for quip-solver-core 0.0.7
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 |
|---|---|---|---|---|
| quip_solver_core-0.0.7.tar.gz | 684.1 kB | Without provenance | Details for quip_solver_core-0.0.7.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| quip_solver_core-0.0.7-cp311-abi3-manylinux_2_34_x86_64.whl | CPython 3.11 | abi3 | Linux glibc 2.34+ x86-64 | Details for quip_solver_core-0.0.7-cp311-abi3-manylinux_2_34_x86_64.whl |
| quip_solver_core-0.0.7-cp311-abi3-manylinux_2_34_aarch64.whl | CPython 3.11 | abi3 | Linux glibc 2.34+ ARM64 | Details for quip_solver_core-0.0.7-cp311-abi3-manylinux_2_34_aarch64.whl |
| quip_solver_core-0.0.7-cp311-abi3-macosx_11_0_arm64.whl | CPython 3.11 | abi3 | macOS 11.0+ ARM64 | Details for quip_solver_core-0.0.7-cp311-abi3-macosx_11_0_arm64.whl |
Total release size: 1.5 MB
Release files / quip_solver_core-0.0.7.tar.gz
| Download URL | quip_solver_core-0.0.7.tar.gz |
|---|---|
| Size | 684.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bd86adb26d98713bfbcf9d4db692405292f0ddceaa16ffbc0b06ebc789d9cc27
|
|
BLAKE2b-256 checksum How to use checksums |
acc7882babc58f95194349cb656d10e704951f6fb881570de46281d5ad1af0cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.11.18
|
Release files / quip_solver_core-0.0.7-cp311-abi3-manylinux_2_34_x86_64.whl
| Download URL | quip_solver_core-0.0.7-cp311-abi3-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 285.4 kB |
| Tags | CPython 3.11 Linux glibc 2.34+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
d3e60f62dbe2fba0871c79eb71700b96a9204ea42b51298b7a0d221496610946
|
|
BLAKE2b-256 checksum How to use checksums |
d2ad03da2a9ff4e2ab34ceee6101c873380555a436df35d164f396e77d1f6931
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.11.18
|
Release files / quip_solver_core-0.0.7-cp311-abi3-manylinux_2_34_aarch64.whl
| Download URL | quip_solver_core-0.0.7-cp311-abi3-manylinux_2_34_aarch64.whl |
|---|---|
| Size | 278.3 kB |
| Tags | CPython 3.11 Linux glibc 2.34+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
647a7fc5a64befb8f96c45e90956da30d0f290f5e27798632c184646b410d990
|
|
BLAKE2b-256 checksum How to use checksums |
10ca967c357d09c8e93a19f17e281ef04b372493cc7f3960d67b0e7799e088ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.11.18
|
Release files / quip_solver_core-0.0.7-cp311-abi3-macosx_11_0_arm64.whl
| Download URL | quip_solver_core-0.0.7-cp311-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 254.2 kB |
| Tags | CPython 3.11 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
aa7892e4ce4334ae79d43477ce460924df35a8177299efb484e63c90bd01d671
|
|
BLAKE2b-256 checksum How to use checksums |
f1381efe77f94a603b9814a6ffbca196be6a6a76c11c136ee93423e6539f8d65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.11.18
|
Security for quip-solver-core 0.0.7
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.