class_docstr: Unit tests for the hadamard_grad function
class_docstr_tok: ["Unit","tests","for","the","hadamard_grad","function"]
docstr: Test RX, CRX and CRY.
code: def test_control_rotations(self, tol):
      """Test RX, CRX and CRY."""
      dev = qml.device("default.qubit", wires=4)
  
      with qml.queuing.AnnotatedQueue() as q:
          qml.RX(0.1, wires=0)
          qml.CRY(0.2, wires=[2, 0])
          qml.CRX(0.3, wires=[0, 1])
          qml.expval(qml.PauliX(0))
  
      tape = qml.tape.QuantumScript.from_queue(q)
      tape.trainable_params = {0, 1, 2}
  
      res_hadamard, _ = grad_fn(tape, dev)
      assert np.allclose(res_hadamard, np.zeros(3), atol=tol, rtol=0)
  
imports: import pytest
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 6 for calling the TestHadamardGrad obj's underlying member method code with example usage: obj.test_control_rotations(tol) without return types