class_docstr: Test that sequences of any single-qubit rotations are fully fused.
class_docstr_tok: ["Test","that","sequences","of","any","single-qubit","rotations","are","fully","fused","."]
docstr: Test that gates with nothing after are applied without modification.
docstr_tok: ["Test","that","gates","with","nothing","after","are","applied","without","modification","."]
code: def test_single_qubit_fusion_no_gates_after(self):
      """Test that gates with nothing after are applied without modification."""
  
      def qfunc():
          qml.RZ(0.1, wires=0)
          qml.Hadamard(wires=1)
  
      transformed_qfunc = single_qubit_fusion(qfunc)
      transformed_ops = qml.tape.make_qscript(
          transformed_qfunc
      )().operations
  
      names_expected = ["RZ", "Hadamard"]
      wires_expected = [Wires(0), Wires(1)]
      compare_operation_lists(
          transformed_ops, names_expected, wires_expected
      )
  
imports: import pytest
  from utils import compare_operation_lists, check_matrix_equivalence
  from pennylane import numpy
  import pennylane
  from pennylane.wires import Wires
  from pennylane.transforms.optimization import single_qubit_fusion
label_desc: Use image node_id 3 for calling the TestSingleQubitFusion obj's underlying member method code with example usage: obj.test_single_qubit_fusion_no_gates_after() without return types