https://github.com/softwareqinc/qasmtools
OpenQASM 2.0 parser
https://github.com/softwareqinc/qasmtools
cpp cpp17 openqasm openqasm-parser quantum-computing
Last synced: 2 months ago
JSON representation
OpenQASM 2.0 parser
- Host: GitHub
- URL: https://github.com/softwareqinc/qasmtools
- Owner: softwareQinc
- License: mit
- Created: 2021-09-08T20:24:54.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-01-24T14:55:36.000Z (5 months ago)
- Last Synced: 2025-04-07T17:52:26.215Z (3 months ago)
- Topics: cpp, cpp17, openqasm, openqasm-parser, quantum-computing
- Language: C++
- Homepage:
- Size: 6.23 MB
- Stars: 8
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# qasmtools
[](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`.
```