class_docstr: Utils class used for grouping identical product factors.
class_docstr_tok: ["Utils","class","used","for","grouping","identical","product","factors","."]
docstr: Remove all factors from the ``self._pauli_factors`` and ``self._non_pauli_factors``
  dictionaries that act on the given wires and add them to the ``self._factors`` tuple.
  
  Args:
      wires (List[int]): Wires of the operators to be removed.
docstr_tok: ["Remove","all","factors","from","the","``","self._pauli_factors","``","and","``","self._non_pauli_factors","``","dictionaries","that","act","on","the","given","wires","and","add","them","to","the","``","self._factors","``","tuple",".","Args",":","wires","(","List","[","int","]",")",":","Wires","of","the","operators","to","be","removed","."]
code: def remove_factors(self, wires: List[int]):
      """Remove all factors from the ``self._pauli_factors`` and ``self._non_pauli_factors``
      dictionaries that act on the given wires and add them to the ``self._factors`` tuple.
  
      Args:
          wires (List[int]): Wires of the operators to be removed.
      """
      self._remove_pauli_factors(wires=wires)
      self._remove_non_pauli_factors(wires=wires)
  
imports: import itertools
  from copy import copy
  from functools import reduce, wraps
  from itertools import combinations
  from typing import List, Tuple, Union
  from scipy.sparse import kron
  import pennylane
  from pennylane import math
  from pennylane.operation import Operator
  from pennylane.ops.op_math.pow import Pow
  from pennylane.ops.op_math.sprod import SProd
  from pennylane.ops.op_math.sum import Sum
  from pennylane.ops.qubit import Hamiltonian
  from pennylane.ops.qubit.non_parametric_ops import PauliX, PauliY, PauliZ
  from pennylane.queuing import QueuingManager
  from pennylane.typing import TensorLike
  from pennylane.wires import Wires
  from .composite import CompositeOp
label_desc: Use image node_id 7 for calling the _ProductFactorsGrouping obj's underlying member method code with example usage: obj.remove_factors(wires) without return types