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 classical processing within the quantum tape
docstr_tok: ["Test","classical","processing","within","the","quantum","tape"]
code: def test_classical_processing(
      self, interface, dev, diff_method, grad_on_execution, device_vjp
  ):
      """Test classical processing within the quantum tape"""
      a = np.array(0.1, requires_grad=True)
      b = np.array(0.2, requires_grad=False)
      c = np.array(0.3, requires_grad=True)
  
      @qnode(
          dev,
          diff_method=diff_method,
          interface=interface,
          grad_on_execution=grad_on_execution,
          device_vjp=device_vjp,
      )
      def circuit(a, b, c):
          qml.RY(a * c, wires=0)
          qml.RZ(b, wires=0)
          qml.RX(c + c**2 + np.sin(a), wires=0)
          return qml.expval(qml.PauliZ(0))
  
      res = qml.jacobian(circuit)(a, b, c)
  
      assert circuit.qtape.trainable_params == [0, 2]
      tape_params = np.array(circuit.qtape.get_parameters())
      assert np.all(tape_params == [a * c, c + c**2 + np.sin(a)])
  
      assert isinstance(res, tuple) and len(res) == 2
      assert res[0].shape == ()
      assert res[1].shape == ()
  
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 7 for calling the TestQNode obj's underlying member method code with example usage: obj.test_classical_processing(interface, dev, diff_method, grad_on_execution, device_vjp) and returns: qml