class_docstr: Tests for the cwire_connections helper method.
class_docstr_tok: ["Tests","for","the","cwire_connections","helper","method","."]
docstr: Test cwire_connections works if layers contain terminal measurements using measurement
  values
docstr_tok: ["Test","cwire_connections","works","if","layers","contain","terminal","measurements","using","measurement","values"]
code: def test_mid_measure_stats_layer(self):
      """Test cwire_connections works if layers contain terminal measurements using measurement
      values"""
  
      m0 = qml.measure(0)
      layers = [m0.measurements, [qml.expval(m0)]]
      bit_map = {m0.measurements[0]: 0}
      clayers, wires = cwire_connections(layers, bit_map)
      assert clayers == [[0, 1]]
      assert wires == [[0]]
  
imports: import pytest
  import pennylane
  from pennylane.drawer.utils import default_wire_map, default_bit_map, convert_wire_order, unwrap_controls, cwire_connections
  from pennylane.wires import Wires
label_desc: Use image node_id 6 for calling the TestCwireConnections obj's underlying member method code with example usage: obj.test_mid_measure_stats_layer() without return types