Repository navigation
v0.1.0
The first public release of XQuad, a hardware-agnostic toolchain for quadratic optimization: define a QUBO, Ising or discrete model once as an XQVM program, then run it anywhere the VM runs. This release publishes the Rust crates. The instruction set, the bytecode format and the APIs may change before 1.0.
Highlights
xqvm: the XQVM interpreter, bytecode codec and opcode table. A stack-based VM with 256 typed registers (integers, vectors, models and samples) and 87 opcodes. It builds asno_stdwithalloc, for embedding in WASM or Substrate pallets.xqasm: an assembler for the.xqasmtext format.xqcli: installs thexquadcommand, withasm,dismandrun.runtakes calldata, a step limit, and a text or JSON execution trace.- A step counter for metering execution.
- The XQVM specification and an mdBook guide, with TSP and Max-Cut examples.
Known issues
- The Python packages were not published for this release. They first reached PyPI in 0.2.0, and first import correctly in 0.3.2.
- A
RANGEloop with a count of 0 or less runs its body once. Fixed in 0.2.0.
Packages
| Registry | Packages |
|---|---|
| crates.io | xqvm · xqasm · xqcli |
cargo install xqcli --version 0.1.0 # installs the xquad commandDocumentation: the XQuad book source at v0.1.0
Source: v0.1.0