# \[ANN\] OpenQASM.jl - the OpenQASM parser for Julia

**URL:** <https://discourse.julialang.org/t/ann-openqasm-jl-the-openqasm-parser-for-julia/60129>\
**Category:** Quantum\
**Tags:** package, announcement, parser, yao\
**Created:** [April 27, 2021, 8:59pm UTC](https://discourse.julialang.org/t/ann-openqasm-jl-the-openqasm-parser-for-julia/60129 "2021-04-27T20:59:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roger-luo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/roger-luo/32/3399_2.png) [@Roger-luo](https://discourse.julialang.org/u/Roger-luo)\
**Post date:** [April 27, 2021, 8:59pm UTC](https://discourse.julialang.org/t/ann-openqasm-jl-the-openqasm-parser-for-julia/60129/1 "2021-04-27T20:59:39Z")

</div>

I’m excited to announce the OpenQASM parser in its 2.0 version: [GitHub - QuantumBFS/OpenQASM.jl: Parsers and Tools for OpenQASM](https://github.com/QuantumBFS/OpenQASM.jl)

This package provides the functionality for parsing QASM scripts for Yao ecosystem, but you can also repurpose it for other use since it is a very lightweight package. It provides parsing and pretty print and some basic tools for manipulating OpenQASM AST such as pattern matching support for MLStyle.

It also implements pretty printing of a given OpenQASM program.

 ![image](https://global.discourse-cdn.com/julialang/original/3X/7/4/7489fcb125d46657c049344baec40c49782e6f88.png)

The parser currently only supports OpenQASM 2.0, where you can find the specification here:

> **[GitHub - openqasm/openqasm at OpenQASM2.x](https://github.com/openqasm/openqasm/tree/OpenQASM2.x)**
>
> OpenQASM2.x

supporting OpenQASM 3.0 and validation is also on the roadmap, we are also looking for people who are interested in contributing.

---

<div class="post-metadata">

**Author:** ![rpmuller](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rpmuller/32/2262_2.png) [@rpmuller](https://discourse.julialang.org/u/rpmuller)\
**Post date:** [April 27, 2021, 9:04pm UTC](https://discourse.julialang.org/t/ann-openqasm-jl-the-openqasm-parser-for-julia/60129/2 "2021-04-27T21:04:17Z")

</div>

Great stuff - thanks for making the package available!
