<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def quil_to_program(quil: str) -> Program: """Parse a quil program and return a Program object"""

    pyquil_instructions = pyquil.parser.parse(quil)
    return pyquil_to_program(pyquil_instructions)