135 releases (20 breaking)

new 0.28.0 Sep 12, 2024
0.27.3 Sep 5, 2024
0.27.1 Jul 26, 2024
0.23.0 Mar 8, 2024
0.8.0 Oct 19, 2021

#378 in Parser implementations

Download history 685/week @ 2024-05-25 396/week @ 2024-06-01 1157/week @ 2024-06-08 1134/week @ 2024-06-15 1122/week @ 2024-06-22 692/week @ 2024-06-29 782/week @ 2024-07-06 455/week @ 2024-07-13 1141/week @ 2024-07-20 1752/week @ 2024-07-27 1733/week @ 2024-08-03 1789/week @ 2024-08-10 1088/week @ 2024-08-17 1938/week @ 2024-08-24 1873/week @ 2024-08-31 1373/week @ 2024-09-07

6,425 downloads per month
Used in 3 crates

Apache-2.0

700KB
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

~15MB
~270K SLoC