-
-
Save Q-lds/fc58de67464412081644a90e84ce534c to your computer and use it in GitHub Desktop.
The entrypoint for the openqaoa_job.py script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from openqaoa.workflows.managed_jobs import AWSJobs | |
from braket.jobs import save_job_result | |
import json | |
def main(): | |
""" | |
The entry point is kept clean and simple and all the load statements are hidden in the `aws_jobs_load` function (which will become part of the OpenQAOA library) | |
""" | |
job = AWSJobs(algorithm='RQAOA') | |
job.load_input_data() | |
job.set_up() | |
job.run_workflow() | |
print('keys', job.workflow.results.keys()) | |
save_job_result({"rqaoa_result": job.workflow.results.as_dict()}) | |
if __name__ == "__main__": | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment