#quantum #quil #rigetti

quil-rs

Rust tooling for Quil (Quantum Instruction Language)

120 releases (18 breaking)

new 0.26.0 Apr 23, 2024
0.24.1-rc.0 Apr 16, 2024
0.23.0 Mar 8, 2024
0.22.3 Dec 14, 2023
0.8.0 Oct 19, 2021

#239 in Parser implementations

Download history 643/week @ 2024-01-01 655/week @ 2024-01-08 785/week @ 2024-01-15 764/week @ 2024-01-22 75/week @ 2024-01-29 599/week @ 2024-02-05 481/week @ 2024-02-12 508/week @ 2024-02-19 2252/week @ 2024-02-26 651/week @ 2024-03-04 531/week @ 2024-03-11 447/week @ 2024-03-18 529/week @ 2024-03-25 792/week @ 2024-04-01 406/week @ 2024-04-08 1521/week @ 2024-04-15

3,248 downloads per month
Used in 3 crates

Apache-2.0

675KB
16K SLoC

Quil Parser & Program Builder

This library is the implementation of the Quil spec in Rust.

It serves three purposes:

  1. Parse Quil programs from strings, and output programs to strings
  2. Manipulate Quil programs within Rust
  3. Construct a dependency graph among program instructions

It should be considered unstable until the release of v1.0.

Crate Features

Feature Description
graphviz-dot Enable plotting ScheduledPrograms in Graphviz dotfile format.
wasm-bindgen Enable compilation to wasm32-unknown-unknown with wasm-bindgen

Testing

When testing this crate, you should run with the --all-features flag to ensure all tests are executed.

cargo test --all-features

lib.rs:

Welcome to the Rust implementation of the Quil quantum programming language.

Within this crate you'll find:

This crate is still early in its development and does not fully support all Quil features, nor claim a stable API. Prior to v1.0, minor-version changes are considered breaking changes. Please pin your versions when needed, and closely follow the changelog when upgrading.

Dependencies

~9MB
~168K SLoC