class_docstr: Tests a basic circuit with one rx gate and two simple expectation values.
docstr: Tests execution and gradients with autograd
docstr_tok: ["Tests","execution","and","gradients","with","autograd"]
code: def test_autograd_results_and_backprop(self):
      """Tests execution and gradients with autograd"""
      phi = qml.numpy.array(-0.52)
  
      def f(x):
          qs = qml.tape.QuantumScript(
              [qml.RX(x, wires=0)],
              [qml.expval(qml.PauliY(0)), qml.expval(qml.PauliZ(0))],
          )
          return qml.numpy.array(simulate(qs))
  
      result = f(phi)
      expected = np.array([-np.sin(phi), np.cos(phi)])
      assert qml.math.allclose(result, expected)
  
      g = qml.jacobian(f)(phi)
      expected = np.array([-np.cos(phi), -np.sin(phi)])
      assert qml.math.allclose(g, expected)
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane.devices.qubit import simulate, get_final_state, measure_final_state
label_desc: Use image node_id 2 for calling the TestBasicCircuit obj's underlying member method code with example usage: obj.test_autograd_results_and_backprop() and returns: qml