class_docstr: Test ``qml.qjit`` with Catalyst's grad operations
class_docstr_tok: ["Test","``","qml.qjit","``","with","Catalyst","'s","grad","operations"]
docstr: Test that an error is raised when using JVP without QJIT.
docstr_tok: ["Test","that","an","error","is","raised","when","using","JVP","without","QJIT","."]
code: def test_jvp_without_qjit(self):
      """Test that an error is raised when using JVP without QJIT."""
  
      def jvp(params, tangent):
          def f(x):
              y = [jnp.sin(x[0]), x[1] ** 2, x[0] * x[1]]
              return jnp.stack(y)
  
          return qml.jvp(f, [params], [tangent])
  
      x = jnp.array([0.1, 0.2])
      tangent = jnp.array([0.3, 0.6])
  
      with pytest.raises(
          CompileError,
          match="Pennylane does not support the JVP function without QJIT.",
      ):
          jvp(x, tangent)
  
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 TestCatalystGrad obj's underlying member method code with example usage: obj.test_jvp_without_qjit() and returns: qml, jnp