import struct


def convert_to_bytes(vectors):
    """
    Converts a list of vectors into the byte format required by Qt
    :param vectors: The list of vectors to convert
    :return: The byte representation
    """
    return struct.pack(f"{len(vectors)}f", *vectors)