-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replacing AWSBraketJob with AmazonBraketTask #105
Conversation
@JordanAWS would you kindly have a look and see if my solution is suitable for you? |
I will fix the mistakes and re-commit @JordanAWS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @robotastray! Please make updates to fix the failing checks.
docs/tutorials/0_tutorial_qiskit-braket-provider_overview.ipynb
Outdated
Show resolved
Hide resolved
docs/tutorials/0_tutorial_qiskit-braket-provider_overview.ipynb
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
re-formatting completed with black python
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please note that I mistakenly re-names braket_job
to braket_task
indocs/tutorials/0_tutorial_qiskit-braket-provider_overview.ipynb
so I fixed it in this commit by reverting to what we had previously.
@kshitijc I think it should be ready. Thank you |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates @robotastray! Could you please look at the failing checks and make updates to fix those as well?
thank you for your message I will fix this now, and test |
…n the JobV1 class
I will check the formatting. And commit the changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you also please confirm whether you are able to successfully execute all notebooks in the tutorials and how-to folders?
…t.aws import AwsQuantumTask' (wrong-import-order)
I ran the notebooks prior I made all the latest changes by installing locally the package for |
I will run the notebook and push the commits again when done. |
Great! Could you please fix the failing style check as well? |
just a note, I am not able to run the YOu can see in the following link that there were errors before https://github.com/qiskit-community/qiskit-braket-provider/blob/2434a9a29900972e5fe6dace3804384ee08d9df7/docs/how_tos/4_how_to_verbatim_circuits.ipynb |
I have run
I think now all checks should pass successfully (I hope) 🤞
|
Nice work @robotastray! 👍 |
* replacing AWSBraketJob with AmazonBraketTask * run the notebooks containing AmazonBraketTask * deprecation warning added for AWSBraketJob class * formatting fixed * re-add <JOB_ARN> * fix breaking changes on /provider/__init__.py and __init__.py * rename job_id to task_id argument for AmazonBraketTask() * rename braket_jobs_states to braket_tasks_states * add task_id method to access the task_id similar to the one we have in the JobV1 class * adding tests for new class 'AmazonBraketTask' and old class 'AWSBraketJob' * formatting test_braket_job.py * correcting definition of AWSBraketJob * rewriting line 184 in braket_job.py * adding class docstring to AWSBraketJob * standard import 'from warnings import warn' placed before 'from braket.aws import AwsQuantumTask' (wrong-import-order) * docstring fix in test_braket_job.py * assert the job id in test_AWS_job() function in test_braket_job.py * running how to notebook #0 * running how to notebook #1 * running how to notebook #2 * running how to notebook #3 * running how to notebook number 5 * running tutorial notebook number 3 * tutorial number 0
Replacing AWSBraketJob with AmazonBraketTask (qiskit-community#105)
* replacing AWSBraketJob with AmazonBraketTask * run the notebooks containing AmazonBraketTask * deprecation warning added for AWSBraketJob class * formatting fixed * re-add <JOB_ARN> * fix breaking changes on /provider/__init__.py and __init__.py * rename job_id to task_id argument for AmazonBraketTask() * rename braket_jobs_states to braket_tasks_states * add task_id method to access the task_id similar to the one we have in the JobV1 class * adding tests for new class 'AmazonBraketTask' and old class 'AWSBraketJob' * formatting test_braket_job.py * correcting definition of AWSBraketJob * rewriting line 184 in braket_job.py * adding class docstring to AWSBraketJob * standard import 'from warnings import warn' placed before 'from braket.aws import AwsQuantumTask' (wrong-import-order) * docstring fix in test_braket_job.py * assert the job id in test_AWS_job() function in test_braket_job.py * running how to notebook #0 * running how to notebook #1 * running how to notebook #2 * running how to notebook #3 * running how to notebook number 5 * running tutorial notebook number 3 * tutorial number 0
* replacing AWSBraketJob with AmazonBraketTask * run the notebooks containing AmazonBraketTask * deprecation warning added for AWSBraketJob class * formatting fixed * re-add <JOB_ARN> * fix breaking changes on /provider/__init__.py and __init__.py * rename job_id to task_id argument for AmazonBraketTask() * rename braket_jobs_states to braket_tasks_states * add task_id method to access the task_id similar to the one we have in the JobV1 class * adding tests for new class 'AmazonBraketTask' and old class 'AWSBraketJob' * formatting test_braket_job.py * correcting definition of AWSBraketJob * rewriting line 184 in braket_job.py * adding class docstring to AWSBraketJob * standard import 'from warnings import warn' placed before 'from braket.aws import AwsQuantumTask' (wrong-import-order) * docstring fix in test_braket_job.py * assert the job id in test_AWS_job() function in test_braket_job.py * running how to notebook #0 * running how to notebook #1 * running how to notebook #2 * running how to notebook #3 * running how to notebook number 5 * running tutorial notebook number 3 * tutorial number 0
* replacing AWSBraketJob with AmazonBraketTask * run the notebooks containing AmazonBraketTask * deprecation warning added for AWSBraketJob class * formatting fixed * re-add <JOB_ARN> * fix breaking changes on /provider/__init__.py and __init__.py * rename job_id to task_id argument for AmazonBraketTask() * rename braket_jobs_states to braket_tasks_states * add task_id method to access the task_id similar to the one we have in the JobV1 class * adding tests for new class 'AmazonBraketTask' and old class 'AWSBraketJob' * formatting test_braket_job.py * correcting definition of AWSBraketJob * rewriting line 184 in braket_job.py * adding class docstring to AWSBraketJob * standard import 'from warnings import warn' placed before 'from braket.aws import AwsQuantumTask' (wrong-import-order) * docstring fix in test_braket_job.py * assert the job id in test_AWS_job() function in test_braket_job.py * running how to notebook #0 * running how to notebook #1 * running how to notebook #2 * running how to notebook #3 * running how to notebook number 5 * running tutorial notebook number 3 * tutorial number 0
Summary
This pull request aims to fix issue 45
Details and comments
I have replaced
AWSBraketJob
withAmazonBraketTask
in the code.And I have re-ran the notebooks
docs/tutorials/0_tutorial_qiskit-braket-provider_overview.ipynb
anddocs/how_tos/2_how_to_retrieve_results_from_backend.ipynb
to reflect these changes.Note that I have installed the modified package locally on my machine to do the last step. Once this pull request is merged and qiskit-braket-provider is deployed, these changes will be visible to anybody installing the package via
pip install qiskit-braket-provider
.