Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Manvi-Agrawal committed Jun 11, 2024
1 parent a0c7733 commit b251ad5
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/bloqade/submission/braket.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,34 +95,36 @@ def submit_task(self, task_ir: QuEraTaskSpecification) -> str:
return task.id

def task_results(self, task_id: str) -> QuEraTaskResults:
"""Get the result of the task by using the task id of Braket backend.
"""Get the result of a task previously submitted by using the
task id of Braket backend.
Args:
task_id (str): task id after executing program on the Braket backend.
Returns:
task_result (`QuEraTaskResults`): Gets the task result using task id
of the Braket backend.
task_result (`QuEraTaskResults`): Gets the task result a task
previously submitted using task id of the Braket backend.
"""
return from_braket_task_results(AwsQuantumTask(task_id).result())

def cancel_task(self, task_id: str) -> None:
"""Cancels the task submitted to the Braket backend.
"""Cancels a task previously submitted to the Braket backend.
Args:
task_id (str): task id after executing program on the Bracket backend.
"""
AwsQuantumTask(task_id).cancel()

def task_status(self, task_id: str) -> QuEraTaskStatusCode:
"""Get the status of the task submitted by using the task id of Braket backend.
"""Get the status of a task previously submitted by using
the task id of Braket backend.
Args:
task_id (str): task id after executing program on the Braket backend.
Returns:
status_code (QuEraTaskStatusCode): Task status by using the task id
of the Braket backend.
of of a task previously submitted to the Braket backend.
"""
return from_braket_status_codes(AwsQuantumTask(task_id).state())

Expand Down

0 comments on commit b251ad5

Please sign in to comment.