/openqasm-parser

OCaml library for manipulating OpenQASM Abstract Syntax Tree

Primary LanguageOCamlMIT LicenseMIT

OpenQASM Parser

OCaml library for manipulating OpenQASM Abstract Syntax Tree

Requirements

This library requires a recent version of OCaml, dune and menhir.

Installation

Use the package manager opam to install OpenQASM parser.

opam install openQASM

Or use the standard make build and make install commands.

Usage

To play with the library, run dune utop (needs utop package) and issue a command such as:

OpenQASM.get_ast "teleport.qasm";;

Links

Contributing

Pull requests are welcome.

License

MIT