code: def map_gate(gate: Gate, args: Sequence[Qubits]) -> Circuit:
      
      circ = Circuit()
  
      for qubits in args:
          circ += gate.relabel(qubits)
  
      return circ
docs: Applies the same gate all input qubits in the argument list.
  
      >>> circ = qf.map_gate(qf.H(), [[0], [1], [2]])
      >>> print(circ)
      H(0)
      H(1)
      H(2)