Skip to content
This repository was archived by the owner on Apr 2, 2024. It is now read-only.

tearsofphoenix/qasm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

qasm tokenizer implemented with chevrotain

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published