class_docstr: Tests conditional operations
docstr: Test that a qfunc can also used with qml.cond.
docstr_tok: ["Test","that","a","qfunc","can","also","used","with","qml.cond","."]
code: def test_cond_qfunc(self, device):
      """Test that a qfunc can also used with qml.cond."""
      dev = qml.device(device, wires=3)
  
      r = 2.324
  
      @qml.qnode(dev)
      def normal_circuit(rads):
          qml.Hadamard(0)
  
          qml.CNOT(wires=[0, 1])
          qml.CRY(rads, wires=[0, 1])
          qml.CZ(wires=[0, 1])
          return qml.probs(wires=1)
  
      def f(x):
          qml.PauliX(1)
          qml.RY(x, wires=1)
          qml.PauliZ(1)
  
      @qml.qnode(dev)
      @qml.defer_measurements
      def quantum_control_circuit(r):
          qml.Hadamard(0)
          m_0 = qml.measure(0)
          qml.cond(m_0, f)(r)
          return qml.probs(wires=1)
  
      exp = normal_circuit(r)
      cond_probs = quantum_control_circuit(r)
  
      assert np.allclose(exp, cond_probs)
  
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 12 for calling the TestConditionalOperations obj's underlying member method code with example usage: obj.test_cond_qfunc(device) and returns: qml, qml