def run_on_qpu(Q, sampler):
    """Runs the QUBO problem Q on the sampler provided.

    Args:
        Q(dict): a representation of a QUBO
        sampler(dimod.Sampler): a sampler that uses the QPU
    """

    numruns = 1 # update

    sample_set = sampler.sample_qubo(Q, num_reads=numruns, label='Training - Choosing Boxes')

    return sample_set