code: def test_qasm_1q():
      for symbol, gate in [
          ("x", X),
          ("z", Z),
          ("h", H),
          ("s", S),
          ("t", T),
          ("measure", Mz),
      ]:
          q = Qasm("qubit q_0", "%s q_0" % symbol)
          assert q.get_circuit() == gate(0)
  
file_path: sympy/sympy/physics/quantum/tests/test_qasm.py
imports: from sympy.physics.quantum.qasm import Qasm, flip_index, trim, get_index, nonblank, fullsplit, fixcommand, stripquotes, read_qasm
  from sympy.physics.quantum.gate import X, Z, H, S, T
  from sympy.physics.quantum.gate import CNOT, SWAP, CPHASE, CGate, CGateS
  from sympy.physics.quantum.circuitplot import Mz
label_desc: Use image node_id 6 for calling a global function with example usage: test_qasm_1q() without return types