Quantum assembly language (QASM) called OpenQASM is used to implement experiments with low depth quantum circuits. OpenQASM represents universal physical circuits over the CNOT plus SU(2) basis with straight-line code that includes measurement, reset, fast feedback, and gate subroutines. The simple text language can be written by hand or by higher level tools and may be executed on the IBM Q Experience. (arXiv:1707.03429)
Questions tagged [qasm]
72 questions
6
votes
1 answer
Are there tools I can use to test OpenQASM 3 circuits?
I recently added a to_qasm method to stim. An issue I'm having is how to test that the outputs are correct. I can test OpenQASM 2 outputs by giving the output to qiskit, which can parse OpenQASM 2 and execute the result. But it seems that qiskit…

Craig Gidney
- 36,389
- 1
- 29
- 95
6
votes
1 answer
Where is definitive documentation for OpenQASM 2.0 and 3.0
I have gotten conflicting information about OpenQASM; some sources point to version 3 while others say 3 is not ready. I want to refer to a document that will tell me what instructions actually work with the official library.

Anna Naden
- 701
- 2
- 12