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 fusion is correctly skipped for single-qubit gates where
  the rotation angles are not specified.
docstr_tok: ["Test","that","fusion","is","correctly","skipped","for","single-qubit","gates","where","the","rotation","angles","are","not","specified","."]
code: def test_single_qubit_fusion_not_implemented(self):
      """Test that fusion is correctly skipped for single-qubit gates where
      the rotation angles are not specified."""
  
      def qfunc():
          qml.RZ(0.1, wires=0)
          qml.Hadamard(wires=0)
          # No rotation angles specified for PauliRot since it is a gate that
          # in principle acts on an arbitrary number of wires.
          qml.PauliRot(0.2, "X", wires=0)
          qml.RZ(0.1, wires=0)
          qml.Hadamard(wires=0)
  
      transformed_qfunc = single_qubit_fusion(qfunc)
      transformed_ops = qml.tape.make_qscript(
          transformed_qfunc
      )().operations
  
      names_expected = ["Rot", "PauliRot", "Rot"]
      wires_expected = [Wires(0)] * 3
      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 5 for calling the TestSingleQubitFusion obj's underlying member method code with example usage: obj.test_single_qubit_fusion_not_implemented() without return types