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 measurement layers are appended at the end.
docstr_tok: ["Test","cwire_connections","works","if","measurement","layers","are","appended","at","the","end","."]
code: def test_measurements_layer(self):
      """Test cwire_connections works if measurement layers are appended at the end."""
  
      m0 = qml.measure(0)
      cond0 = qml.ops.Conditional(m0, qml.S(0))
      layers = [m0.measurements, [cond0], [qml.expval(qml.PauliX(0))]]
      bit_map = {m0.measurements[0]: 0}
      clayers, wires = cwire_connections(layers, bit_map)
      assert clayers == [[0, 1]]
      assert wires == [[0, 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 5 for calling the TestCwireConnections obj's underlying member method code with example usage: obj.test_measurements_layer() without return types