class_docstr: Test that adjacent rotation gates of the same type will add the angles.
docstr: Test that rotations on a two-qubit system separated by a "blocking" operation
  don't merge.
docstr_tok: ["Test","that","rotations","on","a","two-qubit","system","separated","by","a","``","blocking","''","operation","do","n't","merge","."]
code: def test_two_qubits_rotation_blocked(self):
      """Test that rotations on a two-qubit system separated by a "blocking" operation
      don't merge."""
  
      def qfunc():
          qml.RX(-0.42, wires=0)
          qml.CNOT(wires=[0, 1])
          qml.RX(0.8, wires=0)
  
      transformed_qfunc = merge_rotations(qfunc)
  
      ops = qml.tape.make_qscript(transformed_qfunc)().operations
  
      names_expected = ["RX", "CNOT", "RX"]
      wires_expected = [Wires(0), Wires([0, 1]), Wires(0)]
      compare_operation_lists(ops, names_expected, wires_expected)
  
      assert ops[0].parameters[0] == -0.42
      assert ops[2].parameters[0] == 0.8
  
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 8 for calling the TestMergeRotations obj's underlying member method code with example usage: obj.test_two_qubits_rotation_blocked() without return types