class_docstr: Test that adjacent rotation gates of the same type will add the angles.
docstr: Test that rotations on one-qubit separated by a "blocking" operation don't merge.
docstr_tok: ["Test","that","rotations","on","one-qubit","separated","by","a","``","blocking","''","operation","do","n't","merge","."]
code: def test_one_qubit_rotation_blocked(self):
      """Test that rotations on one-qubit separated by a "blocking" operation don't merge."""
  
      def qfunc():
          qml.RX(0.5, wires=0)
          qml.Hadamard(wires=0)
          qml.RX(0.4, wires=0)
  
      transformed_qfunc = merge_rotations(qfunc)
  
      ops = qml.tape.make_qscript(transformed_qfunc)().operations
  
      names_expected = ["RX", "Hadamard", "RX"]
      wires_expected = [Wires(0)] * 3
      compare_operation_lists(ops, names_expected, wires_expected)
  
      assert ops[0].parameters[0] == 0.5
      assert ops[2].parameters[0] == 0.4
  
imports: import pytest
  from utils import compare_operation_lists
  import pennylane
  from pennylane import numpy
  from pennylane.wires import Wires
  from pennylane.transforms.optimization import merge_rotations
label_desc: Use image node_id 7 for calling the TestMergeRotations obj's underlying member method code with example usage: obj.test_one_qubit_rotation_blocked() without return types