class_docstr: Unit tests for clifford compilation function.
class_docstr_tok: ["Unit","tests","for","clifford","compilation","function","."]
docstr: Test that exception is correctly raise when using incorrect decomposing method
docstr_tok: ["Test","that","exception","is","correctly","raise","when","using","incorrect","decomposing","method"]
code: def test_raise_with_decomposition_method(self):
      """Test that exception is correctly raise when using incorrect decomposing method"""
  
      def qfunc():
          qml.RX(1.0, wires=[0])
          return qml.expval(qml.PauliZ(0))
  
      decomposed_qfunc = clifford_t_decomposition(qfunc, method="fast")
  
      with pytest.raises(
          NotImplementedError,
          match=r"Currently we only support Solovay-Kitaev \('sk'\) decompostion",
      ):
          decomposed_qfunc()
  
imports: import math
  from functools import reduce
  import pytest
  import pennylane
  from pennylane.transforms.decompositions.clifford_t_transform import check_clifford_t, clifford_t_decomposition, _rot_decompose, _one_qubit_decompose, _two_qubit_decompose, _CLIFFORD_T_GATES
  from pennylane.transforms.optimization.optimization_utils import _fuse_global_phases
label_desc: Use image node_id 11 for calling the TestCliffordCompile obj's underlying member method code with example usage: obj.test_raise_with_decomposition_method() and returns: qml