class_docstr: Class to represent a matching scenario in the Backward part of the algorithm.
class_docstr_tok: ["Class","to","represent","a","matching","scenario","in","the","Backward","part","of","the","algorithm","."]
docstr: Create a MatchingScenarios class for the Backward match.
  Args:
      circuit_matched (list): list representing the matched gates in the circuit.
      circuit_blocked (list): list representing the blocked gates in the circuit.
      pattern_matched (list): list representing the matched gates in the pattern.
      pattern_blocked (list): list representing the blocked gates in the pattern.
      matches (list): list of matches.
      counter (int): counter of the number of circuit gates already considered.
code: def __init__(
      self,
      circuit_matched,
      circuit_blocked,
      pattern_matched,
      pattern_blocked,
      matches,
      counter,
  ):
      """Create a MatchingScenarios class for the Backward match.
      Args:
          circuit_matched (list): list representing the matched gates in the circuit.
          circuit_blocked (list): list representing the blocked gates in the circuit.
          pattern_matched (list): list representing the matched gates in the pattern.
          pattern_blocked (list): list representing the blocked gates in the pattern.
          matches (list): list of matches.
          counter (int): counter of the number of circuit gates already considered.
      """
      # pylint: disable=too-many-arguments
  
      self.circuit_matched = circuit_matched
      self.pattern_matched = pattern_matched
      self.circuit_blocked = circuit_blocked
      self.pattern_blocked = pattern_blocked
      self.matches = matches
      self.counter = counter
  
imports: import copy
  import itertools
  from collections import OrderedDict
  from typing import Sequence, Callable
  import numpy
  import pennylane
  from pennylane.transforms import transform
  from pennylane import adjoint
  from pennylane.ops.qubit.attributes import symmetric_over_all_wires
  from pennylane.tape import QuantumTape, QuantumScript
  from pennylane.transforms.commutation_dag import commutation_dag
  from pennylane.wires import Wires
label_desc: Use image node_id 1 to create a new MatchingScenarios object  with example: obj = MatchingScenarios(circuit_matched, circuit_blocked, pattern_matched, pattern_blocked, matches, counter)