Skip to content

v0.1.0

Choose a tag to compare

@manishmeganathan manishmeganathan released this 20 Oct 20:43
· 744 commits to main since this release

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 as no_std with alloc, for embedding in WASM or Substrate pallets.
  • xqasm: an assembler for the .xqasm text format.
  • xqcli: installs the xquad command, with asm, dism and run. run takes 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 RANGE loop 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 command

Documentation: the XQuad book source at v0.1.0

Source: v0.1.0