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 an elif branch in interpreted mode
docstr_tok: ["Test","condition","with","an","elif","branch","in","interpreted","mode"]
code: def test_cond_with_elif_interpreted(self):
      """Test condition with an elif branch in interpreted mode"""
      dev = qml.device("lightning.qubit", wires=1)
  
      @qml.qnode(dev)
      def circuit(x):
          def true_fn():
              qml.RX(x, wires=0)
  
          def elif_fn():
              qml.RX(x**2, wires=0)
  
          qml.cond(x > 2.7, true_fn, None, ((x > 1.4, elif_fn),))()
  
          return qml.expval(qml.PauliZ(0))
  
      with pytest.raises(
          ValueError,
          match="'elif' branches are not supported in interpreted mode",
      ):
          circuit(1.5)
  
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 9 for calling the TestCatalystControlFlow obj's underlying member method code with example usage: obj.test_cond_with_elif_interpreted() and returns: qml