158 releases (23 breaking)

0.31.0 Mar 7, 2025
0.30.1 Feb 18, 2025
0.29.2 Nov 6, 2024
0.27.1 Jul 26, 2024
0.8.0 Oct 19, 2021

#534 in Parser implementations

Download history 1061/week @ 2024-11-23 1791/week @ 2024-11-30 2309/week @ 2024-12-07 1658/week @ 2024-12-14 1325/week @ 2024-12-21 1600/week @ 2024-12-28 1938/week @ 2025-01-04 1961/week @ 2025-01-11 1308/week @ 2025-01-18 1640/week @ 2025-01-25 1205/week @ 2025-02-01 2970/week @ 2025-02-08 3178/week @ 2025-02-15 2420/week @ 2025-02-22 2787/week @ 2025-03-01 3036/week @ 2025-03-08

12,542 downloads per month
Used in 3 crates

Apache-2.0

1MB
20K 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

~14–21MB
~297K SLoC