class_docstr: Test that using the QNode with Autograd integrates with the PennyLane stack
class_docstr_tok: ["Test","that","using","the","QNode","with","Autograd","integrates","with","the","PennyLane","stack"]
docstr: Test setting jacobian options
docstr_tok: ["Test","setting","jacobian","options"]
code: def test_jacobian_options(
      self, interface, dev, diff_method, grad_on_execution, device_vjp
  ):
      """Test setting jacobian options"""
      if diff_method != "finite-diff":
          pytest.skip("Test only supports finite diff.")
  
      a = np.array([0.1, 0.2], requires_grad=True)
  
      @qnode(
          dev,
          interface=interface,
          h=1e-8,
          order=2,
          grad_on_execution=grad_on_execution,
          device_vjp=device_vjp,
      )
      def circuit(a):
          qml.RY(a[0], wires=0)
          qml.RX(a[1], wires=0)
          return qml.expval(qml.PauliZ(0))
  
      qml.jacobian(circuit)(a)
  
imports: import autograd
  import autograd.numpy
  import pytest
  import pennylane
  from pennylane import numpy
  from pennylane import qnode
  from pennylane.devices import DefaultQubit
label_desc: Use image node_id 5 for calling the TestQNode obj's underlying member method code with example usage: obj.test_jacobian_options(interface, dev, diff_method, grad_on_execution, device_vjp) and returns: qml