class_docstr: Tests involving mid circuit measurements and classical control.
class_docstr_tok: ["Tests","involving","mid","circuit","measurements","and","classical","control","."]
docstr: Test a combination measurement where the classical wires continue on.
  This covers the "erase_right=True" case.
code: def test_combo_measurement_non_terminal(self):
      """Test a combination measurement where the classical wires continue on.
      This covers the "erase_right=True" case.
      """
      with qml.queuing.AnnotatedQueue() as q:
          m0 = qml.measure(0)
          m1 = qml.measure(1)
          qml.cond(m0 & m1, qml.PauliY)(0)
          qml.cond(m0, qml.S)(0)
          qml.cond(m1, qml.T)(1)
  
      tape = qml.tape.QuantumScript.from_queue(q)
      _, ax = qml.drawer.tape_mpl(tape)
  
      [_, _, cwire1, cwire2, eraser] = ax.lines
  
      assert cwire1.get_xdata() == [0, 0, 0, 2, 2, 2, 3, 3, 3]
      assert cwire1.get_ydata() == [2, 0, 2, 2, 0, 2, 2, 0, 2]
  
      assert cwire2.get_xdata() == [1, 1, 1, 2, 2, 2, 4, 4, 4]
      assert cwire2.get_ydata() == [
          2.25,
          1,
          2.25,
          2.25,
          0,
          2.25,
          2.25,
          1,
          2.25,
      ]
  
      for cwire in [cwire1, cwire2]:
          [pe1, pe2] = cwire.get_path_effects()
  
          # probably not a good way to test this, but the best I can figure out
          assert pe1._gc == {
              "linewidth": 5 * plt.rcParams["lines.linewidth"],
              "foreground": "black",  # lines.color for black white style
          }
          assert pe2._gc == {
              "linewidth": 3 * plt.rcParams["lines.linewidth"],
              "foreground": "white",  # figure.facecolor for black white sytle
          }
  
      assert eraser.get_xdata() == (1.8, 2.2)
      assert eraser.get_ydata() == (2, 2)
      assert eraser.get_color() == plt.rcParams["figure.facecolor"]
      assert (
          eraser.get_linewidth() == 3 * plt.rcParams["lines.linewidth"]
      )
  
imports: import pytest
  import pennylane
  from pennylane.drawer import tape_mpl
  from pennylane.tape import QuantumScript
label_desc: Use image node_id 3 for calling the TestClassicalControl obj's underlying member method code with example usage: obj.test_combo_measurement_non_terminal() without return types