Qasm(...) reads lines of QASM (qubit, h, x, z, s, t,
cnot, swap, cphase, toffoli, c-x, c-z, measure, def) as
in sympy.physics.quantum.qasm. The result is an environment whose
methods are called with $, for example q$get_circuit() and
q$get_labels(). read_qasm() reads a string and read_qasm_file() a
file.