Qualtran
Qualtran represents quantum programs as composable operations called bloqs and provides several ways to inspect their structure and resource costs. Register-aware graphs show operation blocks, their input and output ports, and the connections between them. Musical-score diagrams place operations along qubit or register wires. Hierarchical call graphs reveal how larger operations decompose into subroutines and can carry T, Clifford, and rotation counts; flame graphs expose the distribution of T costs across that hierarchy. A specialized graph drawer can also annotate classical simulation values. These views support program construction, debugging, and logical resource analysis, with Graphviz and Matplotlib providing rendering backends.
Visualization labels
03 / VisualizationVisual representations
Visualizations by data type
Visualization resources
Explore the tool’s visualization features and documentation.
CompositeBloq graph drawing
Shows register connections, graph customization, and classical-value annotations.
Drawing call graphs
Demonstrates decomposition graphs with per-operation resource-count annotations.
Musical-score circuit diagrams
Explains circuit-style layout with Matplotlib rendering and JavaScript export.
T-cost flame graphs
Documents the helper for displaying hierarchical decomposition and T-complexity costs.
Expressing and Analyzing Quantum Algorithms with Qualtran
Cite this work
@misc{Harrigan_Expressing_and_Analyzing_2024,
author = {Harrigan, Matthew P. and others},
url = {https://arxiv.org/abs/2409.04643},
doi = {10.48550/arXiv.2409.04643},
title = {{Expressing and Analyzing Quantum Algorithms with Qualtran}},
year = {2024},
}