1.4.0 • Published 7 years ago
qasm v1.4.0
QASM source code parser
##Install
if using npm, just run
npm i --save qasmor if using yarn:
yarn add qasmHow to use
This is a simple example:
import {parse, printOperations} from 'qasm'
const sourceCode = '...'
// here value contains generated operations
const {tokens, value} = parse(sourceCode)
printOperations(value)Grammar diagram
OpenQASM Specification
https://github.com/Qiskit/openqasm
License
MIT