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 ValueError raise when n_qubits is not high enough to support the highest wire_map
  value.
docstr_tok: ["Tests","ValueError","raise","when","n_qubits","is","not","high","enough","to","support","the","highest","wire_map","value","."]
code: def test_pauli_to_binary_incompatable_wire_map_n_qubits(self):
      """Tests ValueError raise when n_qubits is not high enough to support the highest wire_map
      value."""
  
      pauli_word = PauliX("a") @ PauliY("b") @ PauliZ("c")
      wire_map = {"a": 0, "b": 1, "c": 3}
      n_qubits = 3
      assert pytest.raises(
          ValueError, pauli_to_binary, pauli_word, n_qubits, wire_map
      )
  
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 4 for calling the TestGroupingUtils obj's underlying member method code with example usage: obj.test_pauli_to_binary_incompatable_wire_map_n_qubits() without return types