class_docstr: Tests involving mid circuit measurements and classical control.
class_docstr_tok: ["Tests","involving","mid","circuit","measurements","and","classical","control","."]
docstr: Test final measurements of multiple mid circuit measurements
code: def test_multiple_mcm_measure(self):
      """Test final measurements of multiple mid circuit measurements"""
      with qml.queuing.AnnotatedQueue() as q:
          m0 = qml.measure(0)
          m1 = qml.measure(0)
          _ = qml.measure(0)
          m2 = qml.measure(0)
          _ = qml.measure(0)
          qml.sample([m0, m1])
          qml.expval(m2)
      _, ax = qml.drawer.tape_mpl(qml.tape.QuantumScript.from_queue(q))
  
      [_, cwire0, cwire1, cwire2] = ax.lines
      assert cwire0.get_xdata() == [0, 0, 0, 5, 5, 5]
      assert cwire0.get_ydata() == [1, 0, 1, 1, 1, 1]
      assert cwire1.get_xdata() == [1, 1, 1, 5, 5, 5]
      assert cwire1.get_ydata() == [1.25, 0, 1.25, 1.25, 1.25, 1.25]
      assert cwire2.get_xdata() == [3, 3, 3, 5, 5, 5]
      assert cwire2.get_ydata() == [1.5, 0, 1.5, 1.5, 1.5, 1.5]
  
      assert len(ax.patches) == 18  # 6 * 3
  
      final_measure_box = ax.patches[15]
      assert (
          final_measure_box.get_x() == 5 - 0.75 / 2 + 0.2
      )  # 5 - box_length/2 + pad
      assert qml.math.allclose(
          final_measure_box.get_y(), 1 - 0.75 / 2 + 0.2
      )  # 1- box_length/2 + pad
  
      assert final_measure_box.get_height() == 0.75 - 2 * 0.2 + 2 * 0.25
  
imports: import pytest
  import pennylane
  from pennylane.drawer import tape_mpl
  from pennylane.tape import QuantumScript
label_desc: Use image node_id 5 for calling the TestClassicalControl obj's underlying member method code with example usage: obj.test_multiple_mcm_measure() without return types