Batch
LocalBatch dataclass
¶
Bases: Serializable
report ¶
Generate analysis report base on currently completed tasks in the LocalBatch.
Return
Report
Source code in src/bloqade/task/batch.py
rerun ¶
Rerun all the tasks in the LocalBatch.
Return
Report
Source code in src/bloqade/task/batch.py
RemoteBatch dataclass
¶
Bases: Serializable
total_nshots property
¶
Total number of shots of all tasks in the RemoteBatch
Return
number of shots
cancel ¶
Cancel all the tasks in the Batch.
Return
self
fetch ¶
Fetch the tasks in the Batch.
Note
Fetching will update the status of tasks, and only pull the results for those tasks that have completed.
Return
self
Source code in src/bloqade/task/batch.py
get_completed_tasks ¶
Create a RemoteBatch object that contain completed tasks from current Batch.
Tasks consider completed with following status codes:
- Completed
- Partial
Return
RemoteBatch
Source code in src/bloqade/task/batch.py
get_failed_tasks ¶
Create a RemoteBatch object that contain failed tasks from current Batch.
failed tasks with following status codes:
- Failed
- Unaccepted
Return
RemoteBatch
Source code in src/bloqade/task/batch.py
get_finished_tasks ¶
Create a RemoteBatch object that contain finished tasks from current Batch.
Tasks consider finished with following status codes:
- Failed
- Unaccepted
- Completed
- Partial
- Cancelled
Return
RemoteBatch
Source code in src/bloqade/task/batch.py
get_tasks ¶
Get Tasks with specify status_codes.
Return
RemoteBatch
Source code in src/bloqade/task/batch.py
pull ¶
Pull results of the tasks in the Batch.
Note
Pulling will pull the results for the tasks. If a given task(s) has not been completed, wait until it finished.
Return
self
Source code in src/bloqade/task/batch.py
remove_failed_tasks ¶
Create a RemoteBatch object that contain tasks from current Batch, with failed tasks removed.
failed tasks with following status codes:
- Failed
- Unaccepted
Return
RemoteBatch
Source code in src/bloqade/task/batch.py
remove_invalid_tasks ¶
Create a RemoteBatch object that contain tasks from current Batch, with all Unaccepted tasks removed.
Return
RemoteBatch
Source code in src/bloqade/task/batch.py
remove_tasks ¶
Remove Tasks with specify status_codes.
Return
RemoteBatch
Source code in src/bloqade/task/batch.py
report ¶
Generate analysis report base on currently completed tasks in the RemoteBatch.
Return
Report
Source code in src/bloqade/task/batch.py
581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 |
|
resubmit ¶
Resubmit all the tasks in the RemoteBatch
Return
self
Source code in src/bloqade/task/batch.py
tasks_metric ¶
Get current tasks status metric
Return
dataframe with ["task id", "status", "shots"]