qasm

1.4.0 • Public • Published

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:

import {parse, printOperations} from 'qasm'
  
const sourceCode = '...'
// here value contains generated operations
const {tokens, value} = parse(sourceCode)
printOperations(value)
 

Grammar diagram

Grammer

OpenQASM Specification

https://github.com/Qiskit/openqasm

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i qasm

Weekly Downloads

0

Version

1.4.0

License

MIT

Unpacked Size

29.4 kB

Total Files

8

Last publish

Collaborators

  • tearsofphoenix