class_docstr: Integration tests for default.qubit.autograd. This test ensures it integrates
  properly with the PennyLane UI, in particular the new QNode.
class_docstr_tok: ["Integration","tests","for","default.qubit.autograd",".","This","test","ensures","it","integrates","properly","with","the","PennyLane","UI",",","in","particular","the","new","QNode","."]
docstr: Test that the device provides the correct
  result for a simple circuit.
docstr_tok: ["Test","that","the","device","provides","the","correct","result","for","a","simple","circuit","."]
code: def test_qubit_circuit(self, tol):
      """Test that the device provides the correct
      result for a simple circuit."""
      p = np.array(0.543)
  
      dev = qml.device("default.qubit.autograd", wires=1)
  
      @qml.qnode(dev, interface="autograd")
      def circuit(x):
          qml.RX(x, wires=0)
          return qml.expval(qml.PauliY(0))
  
      expected = -np.sin(p)
  
      assert circuit.gradient_fn == "backprop"
      assert np.isclose(circuit(p), expected, atol=tol, rtol=0)
  
imports: import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.devices.default_qubit_autograd import DefaultQubitAutograd
  from pennylane import DeviceError
label_desc: Use image node_id 3 for calling the TestQNodeIntegration obj's underlying member method code with example usage: obj.test_qubit_circuit(tol) and returns: qml