3 releases (1 stable)

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

#179 in Simulation

Download history 32/week @ 2024-02-16 40/week @ 2024-02-23 23/week @ 2024-03-01 7/week @ 2024-03-08 3/week @ 2024-03-15 41/week @ 2024-03-29 14/week @ 2024-04-05

55 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