class_docstr: Tests that the template is compatible with all interfaces, including the computation
  of gradients.
class_docstr_tok: ["Tests","that","the","template","is","compatible","with","all","interfaces",",","including","the","computation","of","gradients","."]
docstr: Tests the autograd interface using the parameter-shift method.
docstr_tok: ["Tests","the","autograd","interface","using","the","parameter-shift","method","."]
code: def test_autograd_parameter_shift(self):
      """Tests the autograd interface using the parameter-shift method."""
      dev = qml.device("default.qubit", wires=2)
  
      circuit_default = qml.QNode(
          manual_rx_circuit, dev, diff_method="parameter-shift"
      )
      circuit_select = qml.QNode(
          select_rx_circuit, dev, diff_method="parameter-shift"
      )
  
      input_default = [0.5, 0.2]
      input_grad = pnp.array(input_default, requires_grad=True)
  
      grad_fn = qml.grad(circuit_default)
      grads = grad_fn(input_grad)
  
      grad_fn2 = qml.grad(circuit_select)
      grads2 = grad_fn2(input_grad)
  
      assert qml.math.allclose(grads, grads2)
  
imports: import copy
  import pytest
  import numpy
  from pennylane import numpy
  import pennylane
label_desc: Use image node_id 2 for calling the TestInterfaces obj's underlying member method code with example usage: obj.test_autograd_parameter_shift() without return types