class_docstr: Test the expansion of operations without a unitary generator.
class_docstr_tok: ["Test","the","expansion","of","operations","without","a","unitary","generator","."]
docstr: Test that a tape with single-parameter operations with
  unitary generators and non-parametric operations is not touched.
docstr_tok: ["Test","that","a","tape","with","single-parameter","operations","with","unitary","generators","and","non-parametric","operations","is","not","touched","."]
code: def test_do_not_expand(self):
      """Test that a tape with single-parameter operations with
      unitary generators and non-parametric operations is not touched.
      """
      with qml.queuing.AnnotatedQueue() as q:
          qml.RX(0.2, wires=0)
          qml.Hadamard(0)
          qml.PauliRot(0.9, "XY", wires=[0, 1])
          qml.SingleExcitationPlus(-1.2, wires=[1, 0])
  
      tape = qml.tape.QuantumScript.from_queue(q)
      new_tape = qml.transforms.expand_nonunitary_gen(tape)
  
      assert tape.operations == new_tape.operations
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane.wires import Wires
label_desc: Use image node_id 1 for calling the TestExpandNonunitaryGen obj's underlying member method code with example usage: obj.test_do_not_expand() without return types