class_docstr: Integration tests for default.mixed.autograd. This test ensures it integrates
  properly with the PennyLane UI, in particular the QNode.
class_docstr_tok: ["Integration","tests","for","default.mixed.autograd",".","This","test","ensures","it","integrates","properly","with","the","PennyLane","UI",",","in","particular","the","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.mixed", wires=1)
  
      @qml.qnode(dev, interface="autograd", diff_method="backprop")
      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_mixed import DefaultMixed
  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