151 releases (22 breaking)

new 0.30.0-rc.1 Jan 14, 2025
0.29.3-rc.0 Jan 10, 2025
0.29.2 Nov 6, 2024
0.27.1 Jul 26, 2024
0.8.0 Oct 19, 2021

#539 in Parser implementations

Download history 1397/week @ 2024-09-24 2167/week @ 2024-10-01 2542/week @ 2024-10-08 1560/week @ 2024-10-15 1284/week @ 2024-10-22 2311/week @ 2024-10-29 1985/week @ 2024-11-05 1392/week @ 2024-11-12 1336/week @ 2024-11-19 1064/week @ 2024-11-26 2085/week @ 2024-12-03 2115/week @ 2024-12-10 1688/week @ 2024-12-17 1277/week @ 2024-12-24 1660/week @ 2024-12-31 1927/week @ 2025-01-07

6,786 downloads per month
Used in 3 crates

Apache-2.0

1MB
19K 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
~274K SLoC