class_docstr: Basic usage and edge-case tests for the measurement optimization utility functions.
class_docstr_tok: ["Basic","usage","and","edge-case","tests","for","the","measurement","optimization","utility","functions","."]
docstr: Tests for determining if two Pauli words have the same ``wires`` and ``name`` attributes.
docstr_tok: ["Tests","for","determining","if","two","Pauli","words","have","the","same","``","wires","``","and","``","name","``","attributes","."]
code: def test_are_identical_pauli_words(self):
      """Tests for determining if two Pauli words have the same ``wires`` and ``name`` attributes."""
  
      pauli_word_1 = Tensor(PauliX(0))
      pauli_word_2 = PauliX(0)
  
      assert are_identical_pauli_words(pauli_word_1, pauli_word_2)
      assert are_identical_pauli_words(pauli_word_2, pauli_word_1)
  
      pauli_word_1 = PauliX(0) @ PauliY(1)
      pauli_word_2 = PauliY(1) @ PauliX(0)
      pauli_word_3 = Tensor(PauliX(0), PauliY(1))
      pauli_word_4 = PauliX(1) @ PauliZ(2)
  
      assert are_identical_pauli_words(pauli_word_1, pauli_word_2)
      assert are_identical_pauli_words(pauli_word_1, pauli_word_3)
      assert not are_identical_pauli_words(pauli_word_1, pauli_word_4)
      assert not are_identical_pauli_words(pauli_word_3, pauli_word_4)
  
imports: import numpy
  import pytest
  import pennylane
  from pennylane import RX, RY, U3, Hadamard, Hamiltonian, Hermitian, Identity, PauliX, PauliY, PauliZ, is_commuting
  from pennylane.operation import Tensor
  from pennylane.pauli import are_identical_pauli_words, are_pauli_words_qwc, binary_to_pauli, diagonalize_pauli_word, diagonalize_qwc_pauli_words, is_pauli_word, is_qwc, observables_to_binary_matrix, partition_pauli_group, pauli_group, pauli_mult, pauli_mult_with_phase, pauli_to_binary, pauli_word_to_matrix, pauli_word_to_string, qwc_complement_adj_matrix, qwc_rotation, simplify, string_to_pauli_word
label_desc: Use image node_id 19 for calling the TestGroupingUtils obj's underlying member method code with example usage: obj.test_are_identical_pauli_words() without return types