Skip to main content

quip-solver-core

This repository is the shared Quip solver contract. A solver binary accepts Ising problems and returns spin configurations with their energies.

The contract has two bindings. One is a Rust crate workspace. The other is a Python wheel named quip-solver-core. The wheel carries the consensus primitives and the generated gRPC stubs, not the session loop, so a Python solver written today writes its own state machine. A Rust solver conforms today by supplying a Sampler and calling run.

The full contract is in SPEC.md. CHANGELOG.md lists the 0.0.0 changes. MIGRATING.md covers the move from quip-miner-core.

Crates

Crate What it holds
quip-solver-core The Sampler trait, Ising and CSR types, beta 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, nonce derivation
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 ABI 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.0"

[dev-dependencies]
quip-solver-conformance = "0.0.0"

One dependency is enough. quip-solver-core re-exports quip_proto and quip_protocol, so the consensus scorer is at quip_solver_core::quip_protocol::scoring::energy_milli.

Python

pip install quip-solver-core

JavaScript and TypeScript

npm install @quip.network/quip-solver-core@rc

C and C++

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.

cargo build -p quip-solver-conformance --bin quip-solver-drive --release
./target/release/quip-solver-drive <solver-binary> unix:///tmp/quip-check.sock

Exit code 0 means conformant. The driver spawns any executable, so this works for a solver in any language.

Licence

Apache-2.0. See LICENSE and NOTICE.

Release files for quip-solver-core 0.0.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 quip-solver-core 0.0.0
File Size Uploaded
quip_solver_core-0.0.0.tar.gz 81.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for quip-solver-core 0.0.0
File Interpreter ABI Platform
quip_solver_core-0.0.0-cp311-abi3-manylinux_2_34_x86_64.whl CPython 3.11 abi3 Linux glibc 2.34+ x86-64 Details

Total release size: 358.4 kB

Release files / quip_solver_core-0.0.0.tar.gz

Download URL quip_solver_core-0.0.0.tar.gz
Size 81.9 kB
Tags Source
SHA-256 checksum
How to use checksums
9a2145f399b0f7d7eed661f66c06c3213094938d271cae20ee2cdfd3823f8848
BLAKE2b-256 checksum
How to use checksums
2cd0f0aa8e162bf4e4472b72139b838b4be498379f415e1d477085531ef1caf8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.11.16

Release files / quip_solver_core-0.0.0-cp311-abi3-manylinux_2_34_x86_64.whl

Download URL quip_solver_core-0.0.0-cp311-abi3-manylinux_2_34_x86_64.whl
Size 276.6 kB
Tags CPython 3.11 Linux glibc 2.34+ x86-64 abi3
SHA-256 checksum
How to use checksums
7818c57abdc1ba4de854785924fcbf40fe97865dc6fece999b07341d761580cd
BLAKE2b-256 checksum
How to use checksums
96979c0536bfe222103fa3c6ab59ff2ad0015d975ead0670aa45a92e0187018c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.11.16
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