class_docstr: Tests the _generalized_pauli_decompose via pauli_decompose function
docstr: Test wire order is working as intended
docstr_tok: ["Test","wire","order","is","working","as","intended"]
code: def test_wire_order(self):
      """Test wire order is working as intended"""
      wire_order1 = ["a", 0]
      wire_order2 = ["auxiliary", "working"]
      hamiltonian = np.array(
          [
              [-2, -2 + 1j, -2, -2],
              [-2 - 1j, 0, 0, -1],
              [-2, 0, -2, -1],
              [-2, -1, -1, 0],
          ]
      )
  
      for wire_order in (wire_order1, wire_order2):
          h = qml.pauli_decompose(
              hamiltonian, wire_order=wire_order, check_hermitian=False
          )
  
          ps = qml.pauli_decompose(
              hamiltonian,
              wire_order=wire_order,
              pauli=True,
              check_hermitian=False,
          )
  
          assert set(ps.wires) == set(wire_order)
          assert h.wires.toset() == set(wire_order)
  
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 11 for calling the TestPhasedDecomposition obj's underlying member method code with example usage: obj.test_wire_order() without return types