class_docstr: Tests for the cwire_connections helper method.
class_docstr_tok: ["Tests","for","the","cwire_connections","helper","method","."]
docstr: Test a case with multiple measurments and multiple conditionals.
docstr_tok: ["Test","a","case","with","multiple","measurments","and","multiple","conditionals","."]
code: def test_multiple_measure_multiple_cond(self):
      """Test a case with multiple measurments and multiple conditionals."""
      m0 = qml.measure(0)
      m1 = qml.measure(1)
      m2_nonused = qml.measure(2)
  
      cond0 = qml.ops.Conditional(m0 + m1, qml.PauliX(1))
      cond1 = qml.ops.Conditional(m1, qml.PauliY(2))
      bit_map = {m0.measurements[0]: 0, m1.measurements[0]: 1}
  
      layers = [
          m0.measurements,
          m1.measurements,
          [cond0],
          m2_nonused.measurements,
          [cond1],
      ]
      clayers, wires = cwire_connections(layers, bit_map)
      assert clayers == [[0, 2], [1, 2, 4]]
      assert wires == [[0, 1], [1, 1, 2]]
  
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 4 for calling the TestCwireConnections obj's underlying member method code with example usage: obj.test_multiple_measure_multiple_cond() without return types