class_docstr: Unit tests for the to_openqasm() method
class_docstr_tok: ["Unit","tests","for","the","to_openqasm","(",")","method"]
docstr: Test an exception is raised if an unsupported operation is
  applied.
docstr_tok: ["Test","an","exception","is","raised","if","an","unsupported","operation","is","applied","."]
code: def test_unsupported_gate(self):
      """Test an exception is raised if an unsupported operation is
      applied."""
      with qml.queuing.AnnotatedQueue() as q_circuit:
          qml.S(wires=0)
          qml.DoubleExcitationPlus(0.5, wires=[0, 1, 2, 3])
  
      circuit = qml.tape.QuantumScript.from_queue(q_circuit)
      with pytest.raises(
          ValueError,
          match="DoubleExcitationPlus not supported by the QASM serializer",
      ):
          circuit.to_openqasm()
  
imports: from textwrap import dedent
  import numpy
  import pytest
  import pennylane
  from pennylane.wires import Wires
label_desc: Use image node_id 8 for calling the TestToQasmUnitTests obj's underlying member method code with example usage: obj.test_unsupported_gate() without return types