class_docstr: Tests conditional operations
docstr: Apply a conditional bitflip by selecting the measurement
  outcome.
docstr_tok: ["Apply","a","conditional","bitflip","by","selecting","the","measurement","outcome","."]
code: def test_condition_using_measurement_outcome(
      self, control_val, expected
  ):
      """Apply a conditional bitflip by selecting the measurement
      outcome."""
      dev = qml.device("default.qubit", wires=3)
  
      @qml.qnode(dev)
      def qnode():
          m_0 = qml.measure(0)
          qml.cond(m_0 == control_val, qml.PauliX)(wires=1)
          return qml.expval(qml.PauliZ(1))
  
      assert qnode() == expected
  
imports: import math
  import pytest
  import pennylane
  from pennylane.measurements import MidMeasureMP, MeasurementValue
  import pennylane.numpy
  from pennylane.devices import DefaultQubit
label_desc: Use image node_id 11 for calling the TestConditionalOperations obj's underlying member method code with example usage: obj.test_condition_using_measurement_outcome(control_val, expected) and returns: qml