<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def roll_die(qvm, number_of_sides):
 """ Roll an n-sided quantum die. """

    die_compiled = qvm.compile(die_program(number_of_sides))
    return process_results(qvm.run(die_compiled))