Plotly debug
build_plotly_debugger_figure
build_plotly_debugger_figure(
mt: Method,
arch_spec: ArchSpec,
*,
interactive: bool,
pause_time: float,
atom_marker: str,
theme: Theme,
height: int,
show_circuit: bool = True,
circuit_window: int = 24
) -> Figure
Build the Plotly figure without displaying it.
Source code in .venv/lib/python3.12/site-packages/bloqade/lanes/visualize/plotly_debug.py
575 576 577 578 579 580 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 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 | |
plotly_debugger
plotly_debugger(
mt: Method,
arch_spec: ArchSpec,
interactive: bool = True,
pause_time: float = 1.0,
atom_marker: str = "o",
*,
show: bool = True,
renderer: str | None = None,
theme: Theme = "light",
height: int = 720,
show_circuit: bool = True,
circuit_window: int = 24
) -> Figure | None
Display a browser-native, discrete-step move-program debugger.
This is a Plotly alternative to :func:debugger; it does not replace the
existing Matplotlib debugger or :func:animated_debugger. In a notebook,
Plotly embeds the controls in the cell output. In a regular Python process,
the default renderer opens the figure in a browser.
Hover over an empty site or an atom to preview the transport lanes available at that site, using the architecture's exact/cartoon path view.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mt
|
Method
|
Compiled physical move program to visualize. |
required |
arch_spec
|
ArchSpec
|
Architecture used to compile |
required |
interactive
|
bool
|
Include the step slider and play/pause controls. When false, displaying the figure automatically plays all steps. |
True
|
pause_time
|
float
|
Seconds between steps during playback. |
1.0
|
atom_marker
|
str
|
Matplotlib-style marker name for atoms (for example,
|
'o'
|
show
|
bool
|
Display the figure immediately. Set false to customize it first. |
True
|
renderer
|
str | None
|
Explicit Plotly renderer. The default embeds in Jupyter and
uses |
None
|
theme
|
Theme
|
Initial light or dark theme. |
'light'
|
height
|
int
|
Height of the architecture panel in pixels. The executed circuit panel, when shown, is added above it. |
720
|
show_circuit
|
bool
|
Render the executed circuit above the architecture, one column per gate step. The active step's column is highlighted and kept in view; clicking a gate jumps the debugger to its step. |
True
|
circuit_window
|
int
|
Maximum number of circuit columns visible at once. Longer circuits scroll horizontally to follow the active step. |
24
|
Returns:
| Type | Description |
|---|---|
Figure | None
|
The constructed Plotly figure when |
Source code in .venv/lib/python3.12/site-packages/bloqade/lanes/visualize/plotly_debug.py
819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 | |