class_docstr: Test that one qubit unitaries are correctly decomposed.
class_docstr_tok: ["Test","that","one","qubit","unitaries","are","correctly","decomposed","."]
docstr: Test that exception for incorrect rotations argument is raised.
docstr_tok: ["Test","that","exception","for","incorrect","rotations","argument","is","raised","."]
code: def test_one_qubit_decomposition_exception(self):
      """Test that exception for incorrect rotations argument is raised."""
  
      U = qml.Rot(1.2, 1.2, 1.2, wires=0).matrix()
      with pytest.raises(ValueError):
          one_qubit_decomposition(
              U, Wires("a"), "nonsense string", return_global_phase=True
          )
  
imports: from functools import reduce
  import pytest
  from gate_data import I, Z, S, T, H, X, Y, CNOT, SWAP
  import pennylane
  from pennylane import numpy
  from pennylane.wires import Wires
  from pennylane.ops.op_math.decompositions import one_qubit_decomposition
  from pennylane.ops.op_math.decompositions import two_qubit_decomposition
  from pennylane.ops.op_math.decompositions.two_qubit_unitary import _convert_to_su4, _su2su2_to_tensor_products, _compute_num_cnots
label_desc: Use image node_id 1 for calling the TestOneQubitRotDecomposition obj's underlying member method code with example usage: obj.test_one_qubit_decomposition_exception() without return types