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)