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)

def map_gate(gate: Gate, args: Sequence[Qubits]) -> Circuit:
    """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)

    """
    circ = Circuit()

    for qubits in args:
        circ += gate.relabel(qubits)

    return circ