def METHOD_NAME(gate: Gate, name: str, n_qubits: int) -> Gate:
    def _circuit_diagram_info_(args):
        return name, *(name,) * (n_qubits - 1)
    gate._circuit_diagram_info_ = _circuit_diagram_info_