class_docstr: Test ``qml.qjit`` with Catalyst's control-flow operations
class_docstr_tok: ["Test","``","qml.qjit","``","with","Catalyst","'s","control-flow","operations"]
docstr: Test condition with simple true_fn and false_fn
docstr_tok: ["Test","condition","with","simple","true_fn","and","false_fn"]
code: def test_cond_with_else(self):
      """Test condition with simple true_fn and false_fn"""
      dev = qml.device("lightning.qubit", wires=1)
  
      @qml.qjit
      @qml.qnode(dev)
      def circuit(x: float):
          def ansatz_true():
              qml.RX(x, wires=0)
              qml.Hadamard(wires=0)
  
          def ansatz_false():
              qml.RY(x, wires=0)
  
          qml.cond(x > 1.4, ansatz_true, ansatz_false)()
  
          return qml.expval(qml.PauliZ(0))
  
      assert jnp.allclose(circuit(1.4), 0.16996714)
      assert jnp.allclose(circuit(1.6), 0.0)
  
imports: from unittest.mock import patch
  import pytest
  import pennylane
  from pennylane.compiler.compiler import CompileError
  from pennylane import numpy
  from jax import numpy
  from jax.core import ShapedArray
label_desc: Use image node_id 6 for calling the TestCatalystControlFlow obj's underlying member method code with example usage: obj.test_cond_with_else() and returns: qml