class_docstr: Tests for drawing mid-circuit measurements and classical conditions.
docstr: Test that a circuit is drawn correctly when there are multiple conditional operations
  that rely on single or multiple mid-circuit measurements.
docstr_tok: ["Test","that","a","circuit","is","drawn","correctly","when","there","are","multiple","conditional","operations","that","rely","on","single","or","multiple","mid-circuit","measurements","."]
code: def test_multi_meas_multi_cond(self):
      """Test that a circuit is drawn correctly when there are multiple conditional operations
      that rely on single or multiple mid-circuit measurements."""
  
      def circ():
          qml.RX(0.5, 0)
          qml.RX(0.5, 1)
  
          m0 = qml.measure(0, reset=True, postselect=1)
          m1 = qml.measure(1)
          qml.cond(m0 & m1, qml.MultiControlledX)(
              wires=[1, 2, 3, 0], control_values="110"
          )
          qml.cond(m1, qml.PauliZ)(2)
  
          m2 = qml.measure(1)
          qml.CNOT([3, 2])
          qml.cond(
              m0,
              qml.ctrl(
                  qml.SWAP, control=[1, 2], control_values=[True, False]
              ),
          )(wires=[0, 3])
          qml.cond(m2 & m1, qml.PauliY)(0)
  
          qml.Toffoli([3, 1, 0])
  
          m3 = qml.measure(3, postselect=0)
          qml.cond(m3, qml.RX)(1.23, 3)
          qml.cond(m3 & m1, qml.Hadamard)(2)
  
          return qml.expval(qml.PauliZ(0) @ qml.PauliZ(2))
  
      drawing = qml.draw(circ)()
      expected_drawing = (
          "0: ──RX(0.50)──┤↗₁│  │0⟩──────╭X────────────╭SWAP──Y─╭X────────────────────┤ ╭<Z@Z>\n"
          "1: ──RX(0.50)───║─────────┤↗├─├●─────┤↗├────├●─────║─├●────────────────────┤ │     \n"
          "2: ─────────────║──────────║──├●──Z───║──╭X─├○─────║─│───────────────────H─┤ ╰<Z@Z>\n"
          "3: ─────────────║──────────║──╰○──║───║──╰●─╰SWAP──║─╰●──┤↗₀├──RX(1.23)──║─┤       \n"
          "                ╚══════════║═══╬══║═══║══════╝     ║      ║    ║         ║         \n"
          "                           ╚═══╩══╩═══║════════════╬══════║════║═════════╣         \n"
          "                                      ╚════════════╝      ║    ║         ║         \n"
          "                                                          ╚════╩═════════╝         "
      )
  
      assert drawing == expected_drawing
  
imports: from functools import partial
  import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.drawer import draw
label_desc: Use image node_id 9 for calling the TestMidCircuitMeasurements obj's underlying member method code with example usage: obj.test_multi_meas_multi_cond() and returns: qml