class_docstr: Tests for the cwire_connections helper method.
class_docstr_tok: ["Tests","for","the","cwire_connections","helper","method","."]
docstr: Test a case with a single measurement and a single conditional.
docstr_tok: ["Test","a","case","with","a","single","measurement","and","a","single","conditional","."]
code: def test_single_measure_single_cond(self):
      """Test a case with a single measurement and a single conditional."""
      m = qml.measure(0)
      cond = qml.ops.Conditional(m, qml.PauliX(0))
      layers = [m.measurements, [cond]]
      bit_map = {m.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 3 for calling the TestCwireConnections obj's underlying member method code with example usage: obj.test_single_measure_single_cond() without return types