class_docstr: Test ``qml.qjit`` with Catalyst
class_docstr_tok: ["Test","``","qml.qjit","``","with","Catalyst"]
docstr: Test JIT compilation with adjoint support
docstr_tok: ["Test","JIT","compilation","with","adjoint","support"]
code: def test_qjit_adjoint(self):
      """Test JIT compilation with adjoint support"""
      dev = qml.device("lightning.qubit", wires=2)
  
      @qml.qjit
      @qml.qnode(device=dev)
      def workflow_cl(theta, wires):
          def func():
              qml.RX(theta, wires=wires)
  
          qml.adjoint(func)()
          return qml.probs()
  
      @qml.qnode(device=dev)
      def workflow_pl(theta, wires):
          def func():
              qml.RX(theta, wires=wires)
  
          qml.adjoint(func)()
          return qml.probs()
  
      assert jnp.allclose(workflow_cl(0.1, [1]), workflow_pl(0.1, [1]))
  
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 11 for calling the TestCatalyst obj's underlying member method code with example usage: obj.test_qjit_adjoint() and returns: qml, qml