class_docstr: Unit tests for the hadamard_grad function
class_docstr_tok: ["Unit","tests","for","the","hadamard_grad","function"]
docstr: Test that differentiation of PauliRot works.
code: def test_differentiability_paulirot(self, angle, pauli_word, tol):
      """Test that differentiation of PauliRot works."""
  
      dev = qml.device("default.qubit", wires=3)
      with qml.queuing.AnnotatedQueue() as q:
          qml.PauliRot(angle, pauli_word, wires=[0, 1])
          qml.expval(qml.PauliY(0) @ qml.PauliX(1))
  
      tape = qml.tape.QuantumScript.from_queue(q)
  
      res_hadamard, _ = grad_fn(tape, dev)
      res_param_shift, _ = grad_fn(
          tape, dev, fn=qml.gradients.param_shift
      )
  
      assert np.allclose(res_hadamard, res_param_shift, tol)
  
imports: import pytest
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 11 for calling the TestHadamardGrad obj's underlying member method code with example usage: obj.test_differentiability_paulirot(angle, pauli_word, tol) without return types