Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/softwareqinc/qasmtools

OpenQASM 2.0 parser
https://github.com/softwareqinc/qasmtools

cpp cpp17 openqasm openqasm-parser quantum-computing

Last synced: 8 days ago
JSON representation

OpenQASM 2.0 parser

Awesome Lists containing this project

README

        

# qasmtools

[![GitHub actions](https://github.com/softwareqinc/qasmtools/actions/workflows/cmake.yml/badge.svg)](https://github.com/softwareQinc/qasmtools/actions)

To use the code in this repository, add `qasmtools/include` as an include
directory.

---

## OpenQASM 2.0 standard specifications

In order to use the OpenQASM 2.0 standard instead of Qiskit specifications, set
the compile definition `QASMTOOLS_QASM2_SPECS=ON`.

---

## Unit testing

```shell
cmake -B build
cmake --build build --target unit_tests --parallel 8
ctest --test-dir build
```

For unit testing with OpenQASM 2.0 specifications, configure with

```shell
cmake -B build -DQASMTOOLS_QASM2_SPECS=ON`.
```