class_docstr: Tests the various changes from mid-circuit measurements.
class_docstr_tok: ["Tests","the","various","changes","from","mid-circuit","measurements","."]
docstr: Tests a simple case with mid-circuit measurement.
docstr_tok: ["Tests","a","simple","case","with","mid-circuit","measurement","."]
code: def test_basic_mid_measure(self):
      """Tests a simple case with mid-circuit measurement."""
      with AnnotatedQueue() as q:
          m0 = qml.measure(0)
          qml.cond(m0, qml.PauliX)(1)
  
      bit_map = {q.queue[0]: None}
  
      assert drawable_layers(q.queue, bit_map=bit_map) == [
          [q.queue[0]],
          [q.queue[1]],
      ]
  
imports: import pytest
  import pennylane
  from pennylane.measurements import MidMeasureMP
  from pennylane.queuing import AnnotatedQueue
  from pennylane.drawer.drawable_layers import _recursive_find_layer, _recursive_find_mcm_stats_layer, drawable_layers
label_desc: Use image node_id 1 for calling the TestMidMeasure obj's underlying member method code with example usage: obj.test_basic_mid_measure() without return types