class_docstr: Tests the gates with special drawing methods.
class_docstr_tok: ["Tests","the","gates","with","special","drawing","methods","."]
docstr: Test that a reset mid circuit measurement is correct.
code: def test_MidMeasure_reset(self):
      """Test that a reset mid circuit measurement is correct."""
      m = qml.measure(0, reset=True)
      tape = QuantumScript(m.measurements)
      fig, ax = tape_mpl(tape)
  
      assert [l.get_data() for l in ax.lines] == [((-1, 2), (0, 0))]
      assert len(ax.patches) == 5
  
      # patches 0-2 are normal measure box
      assert ax.patches[0].get_x() == -0.175
      assert ax.patches[0].get_y() == -0.175
      assert isinstance(ax.patches[1], mpl.patches.Arc)
      assert isinstance(ax.patches[2], mpl.patches.FancyArrow)
  
      # patch 3 is wire erasing rectnagle
      assert ax.patches[3].get_xy() == (0, -0.1)
      assert ax.patches[3].get_width() == 1
      assert ax.patches[3].get_facecolor() == fig.get_facecolor()
      assert ax.patches[3].get_edgecolor() == fig.get_facecolor()
  
      # patch 4 is state prep box gate
      assert isinstance(ax.patches[0], mpl.patches.FancyBboxPatch)
      assert ax.patches[0].get_x() == -self.width / 2.0
      assert ax.patches[0].get_y() == -self.width / 2.0
      assert ax.patches[0].get_width() == self.width
      assert ax.patches[0].get_height() == self.width
  
      assert len(ax.texts) == 2
      assert ax.texts[1].get_text() == "|0⟩"
      plt.close()
  
imports: import pytest
  import pennylane
  from pennylane.drawer import tape_mpl
  from pennylane.tape import QuantumScript
label_desc: Use image node_id 13 for calling the TestSpecialGates obj's underlying member method code with example usage: obj.test_MidMeasure_reset() without return types