3 releases (1 stable)

1.0.0 Mar 29, 2023
0.1.1 Mar 27, 2023
0.1.0 Mar 27, 2023

#230 in Simulation

Download history 1/week @ 2024-09-17 7/week @ 2024-09-24

75 downloads per month
Used in quaru

MIT license

92KB
2K SLoC

openqasm

A parser for openqasm 2.0 written in Rust.

Developed primarily to be used with the quantum simulator quaru (https://github.com/DATX11-22/quaru).

crate: https://crates.io/crates/openqasm-parser


lib.rs:

A parser for openqasm 2.0.

Example

use openqasm_parser::openqasm;
use std::path::Path;

let program = openqasm::parse_openqasm(Path::new("openqasmfile.qasm"));

No runtime deps