get_task_status_tool
Check the current execution status of quantum computing tasks submitted to QPanda3 Runtime, including pending, running, completed, or failed states.
Instructions
Get the execution status of a task.
Check the current status of a submitted quantum computing task.
Args: task_id: The ID of the task (returned by sample_tool or estimate_tool).
Returns: Dictionary containing: - status: "success" or "error" - task_id: The task ID - task_status: One of: - "PENDING": Waiting to execute - "RUNNING": Currently executing - "DONE": Completed successfully - "FAILED": Execution failed - "CANCELLED": Cancelled by user - progress: Execution progress (if available) - error_message: Error description (if failed)
Example: status = get_task_status_tool("task_12345") if status["task_status"] == "DONE": results = get_task_results_tool("task_12345")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||