def qft(qubits: List[int]) -> Program:
    """
    Generate a program to compute the quantum Fourier transform on a set of qubits.

    :param qubits: A list of qubit indexes.
    :return: A Quil program to compute the Fourier transform of the qubits.
    """

    p = Program().inst(_core_qft(qubits, 1))
    return p + bit_reversal(qubits)
Generate a program to compute the quantum Fourier transform on a set of qubits.

    :param qubits: A list of qubit indexes.
    :return: A Quil program to compute the Fourier transform of the qubits.