Search code examples
assemblyquantum-computingresourcereference

Quantum computing simulation in QASM


I am using IBM's Quantum Experience and I have a small problem. Dragging and dropping the gates takes a while, and they don't have a Toffoli gate. So I have to redrag in the gates that construct the Toffoli gate and it takes a while.

The composer takes in QASM files, so I tried to look up documentation for it, and some kind of editor for it (my thinking was I could more quickly type than drag, and I could copy and paste). However, I didn't find very much. The only thing I found was this reference to a package for it which converts the code into circuit diagrams. The code syntax appears significantly different, and I don't think that's what I want.

So I have two questions:

  1. Is there any editor for this so I can put files in .qasm format?
  2. Is there any documentation for this?

Thanks! Any help would be appreciated.

EDIT: I also found this and this, but I'm not sure if either are right. To make it even more confusing, the second link makes it seem like there are two kinds of QASM, and I'm not sure which one IBM uses.


Solution

  • It seems that QASM is the process of being renamed, so many of the links are broken. You can find the Open Quantum Assembly Language spec at this github location:

    https://github.com/IBM/qiskit-openqasm/tree/master/

    The date in the PDF is January 2017.