class_docstr: Tests for the PauliGroupingStrategy class
class_docstr_tok: ["Tests","for","the","PauliGroupingStrategy","class"]
docstr: Constructing the complement graph adjacency matrix for a list of Pauli words according
  to qubit-wise commutativity.
docstr_tok: ["Constructing","the","complement","graph","adjacency","matrix","for","a","list","of","Pauli","words","according","to","qubit-wise","commutativity","."]
code: def test_construct_qwc_complement_adj_matrix_for_operators(self):
      """Constructing the complement graph adjacency matrix for a list of Pauli words according
      to qubit-wise commutativity."""
  
      observables = [
          PauliY(0),
          PauliZ(0) @ PauliZ(1),
          PauliY(0) @ PauliX(1),
      ]
      qwc_complement_adjacency_matrix = np.array(
          [[0, 1, 0], [1, 0, 1], [0, 1, 0]]
      )
  
      grouping_instance = PauliGroupingStrategy(observables, "qwc")
      assert (
          grouping_instance.complement_adj_matrix_for_operator()
          == qwc_complement_adjacency_matrix
      ).all()
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane import Identity, PauliX, PauliY, PauliZ
  from pennylane.pauli import are_identical_pauli_words
  from pennylane.pauli.grouping.group_observables import PauliGroupingStrategy, group_observables
  from pennylane import numpy
label_desc: Use image node_id 3 for calling the TestPauliGroupingStrategy obj's underlying member method code with example usage: obj.test_construct_qwc_complement_adj_matrix_for_operators() without return types