class_docstr: Tests that the spectrum is returned as expected.
docstr: Test that an error is thrown if the spectrum of
  a multi-parameter gate that cannot be decomposed is requested.
docstr_tok: ["Test","that","an","error","is","thrown","if","the","spectrum","of","a","multi-parameter","gate","that","can","not","be","decomposed","is","requested","."]
code: def test_multi_par_error(self):
      """Test that an error is thrown if the spectrum of
      a multi-parameter gate that cannot be decomposed is requested."""
      dev = qml.device("default.qubit", wires=3)
  
      class nondecompRot(qml.Rot):
          @staticmethod
          def compute_decomposition(phi, theta, omega, wires):
              """Pseudo-decomposition: Just return the gate itself."""
              return [nondecompRot(phi, theta, omega, wires=wires)]
  
      @qml.qnode(dev)
      def circuit(x):
          qml.RX(x, wires=0)
          nondecompRot(0.2, x, 0.4, wires=1)
          return qml.expval(qml.PauliZ(wires=0))
  
      with pytest.raises(
          ValueError, match="Can only consider one-parameter gates"
      ):
          qnode_spectrum(circuit)(1.5)
  
imports: from collections import OrderedDict
  import numpy
  import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.fourier.qnode_spectrum import _process_ids, qnode_spectrum
  from pennylane.measurements import SampleMP, StateMP, VarianceMP
label_desc: Use image node_id 6 for calling the TestCircuits obj's underlying member method code with example usage: obj.test_multi_par_error() and returns: qml, list