code: def test_single_qubit_rot_angles(self, op):
      """Tests that the Rot gates yielded by single_qubit_rot_angles
      are equivalent to the true operations up to a global phase."""
      angles = op.single_qubit_rot_angles()
      obtained_mat = qml.Rot(*angles, wires=0).matrix()
  
      # Check whether the two matrices are each others conjugate transposes
      mat_product = qml.math.dot(
          op.matrix(), qml.math.conj(obtained_mat.T)
      )
      mat_product /= mat_product[0, 0]
  
      assert qml.math.allclose(mat_product, I)
  
imports: import pytest
  from gate_data import I
  import pennylane
label_desc: Use image node_id 1 for calling the TestOperations obj's underlying member method code with example usage: obj.test_single_qubit_rot_angles(op) without return types