class_docstr: Tests conditional operations
docstr: Test that a qfunc can also used with qml.cond even when an else
  qfunc is provided.
docstr_tok: ["Test","that","a","qfunc","can","also","used","with","qml.cond","even","when","an","else","qfunc","is","provided","."]
code: def test_cond_qfunc_with_else(self, device):
      """Test that a qfunc can also used with qml.cond even when an else
      qfunc is provided."""
      dev = qml.device(device, wires=3)
  
      x = 0.3
      y = 3.123
  
      @qml.qnode(dev)
      def normal_circuit(x, y):
          qml.RY(x, wires=1)
  
          qml.ctrl(f, 1)(y)
  
          # Flip the qubit before/after to control on 0
          qml.PauliX(1)
          qml.ctrl(g, 1)(y)
          qml.PauliX(1)
          return qml.probs(wires=[0])
  
      def f(a):
          qml.PauliX(0)
          qml.RY(a, wires=0)
          qml.PauliZ(0)
  
      def g(a):
          qml.RX(a, wires=0)
          qml.PhaseShift(a, wires=0)
  
      @qml.qnode(dev)
      def cond_qnode(x, y):
          qml.RY(x, wires=1)
          m_0 = qml.measure(1)
          qml.cond(m_0, f, g)(y)
          return qml.probs(wires=[0])
  
      assert np.allclose(normal_circuit(x, y), cond_qnode(x, y))
  
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 13 for calling the TestConditionalOperations obj's underlying member method code with example usage: obj.test_cond_qfunc_with_else(device) and returns: qml, qml