class_docstr: Tests for integration with the PassthruQNode
class_docstr_tok: ["Tests","for","integration","with","the","PassthruQNode"]
docstr: Test that jacobian of a QNode with an attached default.mixed.autograd device
  gives the correct result in the case of repeated parameters
docstr_tok: ["Test","that","jacobian","of","a","QNode","with","an","attached","default.mixed.autograd","device","gives","the","correct","result","in","the","case","of","repeated","parameters"]
code: def test_jacobian_repeated(self, tol):
      """Test that jacobian of a QNode with an attached default.mixed.autograd device
      gives the correct result in the case of repeated parameters"""
      x = 0.43316321
      y = 0.2162158
      z = 0.75110998
      p = np.array([x, y, z], requires_grad=True)
      dev = qml.device("default.mixed", wires=1)
  
      @qml.qnode(dev, interface="autograd", diff_method="backprop")
      def circuit(x):
          qml.RX(x[1], wires=0)
          qml.Rot(x[0], x[1], x[2], wires=0)
          return qml.expval(qml.PauliZ(0))
  
      res = circuit(p)
  
      expected = np.cos(y) ** 2 - np.sin(x) * np.sin(y) ** 2
      assert np.allclose(res, expected, atol=tol, rtol=0)
  
      grad_fn = qml.jacobian(circuit, 0)
      res = grad_fn(p)
  
      expected = np.array(
          [
              -np.cos(x) * np.sin(y) ** 2,
              -2 * (np.sin(x) + 1) * np.sin(y) * np.cos(y),
              0,
          ]
      )
      assert np.allclose(res, 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 2 for calling the TestPassthruIntegration obj's underlying member method code with example usage: obj.test_jacobian_repeated(tol) and returns: qml