Visualization Types¶
Resource Analyzer offers two primary visualization types for analyzing quantum resource estimates: Call Graphs and Flame Graphs. Each provides unique insights into your quantum algorithm's resource consumption.
Call Graphs¶
The default hierarchical visualization showing the relationship between different parts of your quantum program.
Understanding Call Graphs¶
- Boxes represent functions or subroutines
- Lines show calling relationships
- Colors indicate resource intensity
- Numbers show both per-call and total resource counts

Key Features¶
- Color Intensity: Darker colors indicate higher resource usage
- Resource Metrics: View multiple metrics simultaneously
- Hierarchical Layout: Shows program structure clearly
- Interactive Navigation: Click to expand/collapse nodes
Reading the Data¶
Each box in the call graph shows:
- Function Name - At the top of the box
- Per Call - Resources used per function call
- Total - Aggregate resource usage (Per Call × number of calls)
- Percentage - Portion of total program resources
Understanding Resource Scale
Pay attention to scientific notation (e.g., 2.27 × 10¹⁷) when comparing nodes, as resource usage can span many orders of magnitude.
Flame Graphs¶
An alternative visualization that shows resource consumption proportional to the total program cost.
Understanding Flame Graphs¶
- Width represents the proportion of total resources
- Height shows the call stack depth
- Colors indicate resource intensity
- Segments represent individual functions

Key Features¶
- Proportional Display: Width directly corresponds to resource usage
- Stack Traces: Easy to follow execution paths
- Resource Distribution: Clear view of resource distribution across the program
- Multiple Metrics: Switch between different resource types
Reading the Data¶
- Top level shows total program resources
- Each row represents a call stack level
- Width indicates percentage of total resources
- Hover over segments to see detailed metrics
Switching Views¶
Use the visualization toggle in the toolbar to switch between views

Both views can be filtered and customized using the same controls

View Selection
Choose Call Graphs for understanding program structure and relationships. Use Flame Graphs for analyzing resource distribution and identifying optimization targets.