QASM source code parser
Install
if using npm
, just run
npm i --save qasm
or if using yarn
:
yarn add qasm
How to use
This is a simple example:
const sourceCode = '...'// here value contains generated operationsconst tokens value =
Grammar diagram
OpenQASM Specification
https://github.com/Qiskit/openqasm
License
MIT