This library is Issac Chuang's qasm2circ library with the following modifications:
============================== Requirements: -Python 2.7 (some Python 3 compatibility, though batch mode is currently unstable for more than 6 files). -Latex2e with xypic (included) -pdflatex
For more information about the qasm2circ file format, see the original readme (included).
============================= Syntax:
python qasmAutoDoAll.py
Example: python qasmAutoDoAll.py C:\users\foo\qasmfiles\ : Converts all .qasm files in C:\users\foo\qasmfiles to .pdf python qasmAutoDoAll.py . : Converts all .qasm files in the python script directory to .pdf python qasmAutoDoAll.py C:\users\foo\qasmfiles\test1.qasm : Converts only test1.qasm to .pdf
In all cases, the pdf file is saved in the same directory as the .qasm file, and the .tex and .pdf file names match the .qasm file name.