class_docstr: Tests the _generalized_pauli_decompose via pauli_decompose function
docstr: Test incorrect wire order throws error
docstr_tok: ["Test","incorrect","wire","order","throws","error"]
code: def test_wire_error(self):
      """Test incorrect wire order throws error"""
  
      wire_order = [0]
      hamiltonian = np.array(
          [
              [-2, -2 + 1j, -2, -2],
              [-2 - 1j, 0, 0, -1],
              [-2, 0, -2, -1],
              [-2, -1, -1, 0],
          ]
      )
  
      with pytest.raises(
          ValueError,
          match="number of wires 1 is not compatible with the number of qubits 2",
      ):
          qml.pauli_decompose(
              hamiltonian, wire_order=wire_order, check_hermitian=False
          )
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane.operation import Tensor
  from pennylane.ops import Identity, PauliX, PauliY, PauliZ
  from pennylane.pauli import pauli_sentence, PauliWord, PauliSentence
  from pennylane.pauli.conversion import _generalized_pauli_decompose
label_desc: Use image node_id 12 for calling the TestPhasedDecomposition obj's underlying member method code with example usage: obj.test_wire_error() without return types