def METHOD_NAME(
    info: protocols.CircuitDiagramInfo,
) -> protocols.CircuitDiagramInfo:
    labels = [escape_text_for_latex(e) for e in info.wire_symbols]
    if info.exponent != 1:
        labels[0] += '^{' + str(info.exponent) + '}'
    symbols = tuple(r'\gate{' + l + '}' for l in labels)
    return protocols.CircuitDiagramInfo(symbols)