148 releases (21 breaking)
0.29.2 | Nov 6, 2024 |
---|---|
0.29.2-rc.0 | Oct 12, 2024 |
0.27.1 | Jul 26, 2024 |
0.23.0 | Mar 8, 2024 |
0.8.0 | Oct 19, 2021 |
#535 in Parser implementations
5,927 downloads per month
Used in 3 crates
1MB
20K
SLoC
Quil Parser & Program Builder
This library is the implementation of the Quil spec in Rust.
It serves three purposes:
- Parse Quil programs from strings, and output programs to strings
- Manipulate Quil programs within Rust
- 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 ScheduledProgram s 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:
- Builder utilities for Quil programs, instructions, and expressions
- A parser and serializer for converting Quil to and from text strings
- A constructor for timing graphs, for understanding and debugging Quil-T pulse control programs
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
~271K SLoC