class_docstr: Tests involving mid circuit measurements and classical control.
class_docstr_tok: ["Tests","involving","mid","circuit","measurements","and","classical","control","."]
docstr: Test a final measurement of a mid circuit measurement.
code: def test_single_mcm_measure(self):
      """Test a final measurement of a mid circuit measurement."""
  
      with qml.queuing.AnnotatedQueue() as q:
          m0 = qml.measure(0)
          qml.expval(m0)
      _, ax = tape_mpl(qml.tape.QuantumScript.from_queue(q))
  
      assert len(ax.patches) == 6  # two measurement boxes
      assert (
          ax.patches[3].get_x() == 1 - 0.75 / 2 + 0.2
      )  # 1 - box_length/2 + pad
      assert qml.math.allclose(
          ax.patches[3].get_y(), 1 - 0.75 / 2 + 0.2
      )  # 1- box_length/2 + pad
  
      assert ax.patches[4].center == (
          1,
          1 + 0.15 * 0.75,
      )  # 1 +0.15 *box_length
      assert isinstance(ax.patches[5], mpl.patches.FancyArrow)
  
      [_, cwire] = ax.lines
      assert cwire.get_xdata() == [0, 0, 0, 1, 1, 1]
      assert cwire.get_ydata() == [1, 0, 1, 1, 1, 1]
  
      [pe1, pe2] = cwire.get_path_effects()
  
      # probably not a good way to test this, but the best I can figure out
      assert pe1._gc == {
          "linewidth": 5 * plt.rcParams["lines.linewidth"],
          "foreground": "black",  # lines.color for black white style
      }
      assert pe2._gc == {
          "linewidth": 3 * plt.rcParams["lines.linewidth"],
          "foreground": "white",  # figure.facecolor for black white sytle
      }
  
imports: import pytest
  import pennylane
  from pennylane.drawer import tape_mpl
  from pennylane.tape import QuantumScript
label_desc: Use image node_id 4 for calling the TestClassicalControl obj's underlying member method code with example usage: obj.test_single_mcm_measure() without return types