class_docstr: Test ``qml.qjit`` with Catalyst
class_docstr_tok: ["Test","``","qml.qjit","``","with","Catalyst"]
docstr: Test user-configurable compilation options
docstr_tok: ["Test","user-configurable","compilation","options"]
code: def test_compilation_opt(self):
      """Test user-configurable compilation options"""
      dev = qml.device("lightning.qubit", wires=2)
  
      @qml.qjit(target="mlir")
      @qml.qnode(dev)
      def circuit(x: float):
          qml.RX(x, wires=0)
          qml.RX(x**2, wires=1)
          return qml.expval(qml.PauliZ(0))
  
      mlir_str = str(circuit.mlir)
      result_header = "func.func private @circuit(%arg0: tensor<f64>) -> tensor<f64>"
      assert result_header in mlir_str
  
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 10 for calling the TestCatalyst obj's underlying member method code with example usage: obj.test_compilation_opt() and returns: qml