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 multiple elif branches
docstr_tok: ["Test","condition","with","multiple","elif","branches"]
code: def test_cond_with_elifs(self):
      """Test condition with multiple elif branches"""
      dev = qml.device("lightning.qubit", wires=1)
  
      @qml.qjit
      @qml.qnode(dev)
      def circuit(x):
          def true_fn():
              qml.RX(x, wires=0)
  
          def elif1_fn():
              qml.RY(x, wires=0)
  
          def elif2_fn():
              qml.RZ(x, wires=0)
  
          def false_fn():
              qml.RX(x**2, wires=0)
  
          qml.cond(
              x > 2.7,
              true_fn,
              false_fn,
              ((x > 2.4, elif1_fn), (x > 1.4, elif2_fn)),
          )()
  
          return qml.expval(qml.PauliZ(0))
  
      assert jnp.allclose(circuit(1.5), 1.0)
      assert jnp.allclose(circuit(jnp.pi), -1.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 8 for calling the TestCatalystControlFlow obj's underlying member method code with example usage: obj.test_cond_with_elifs() and returns: qml