What is Resource Analyzer?¶
Resource Analyzer is PsiQuantum's visual analysis tool for quantum resource estimation. It enables researchers and developers to analyze and optimize quantum algorithms by visualizing resource consumption patterns and identifying computational bottlenecks. Through interactive visualization and detailed metric analysis, Resource Analyzer helps teams understand where and how their quantum algorithms consume resources, leading to more efficient implementations.
Key Features¶
The Resource Analyzer provides powerful visualization and analysis capabilities for quantum resource estimates:
-
Interactive Call Graph Visualization transforms complex quantum resource estimates into intuitive, hierarchical visualizations that show the relationship between different parts of your quantum program.
-
Multi-Metric Analysis enables simultaneous examination of different resource types such as T-gates, Toffoli gates (TOFs), and other quantum operations, helping you understand resource tradeoffs.
-
Hotspot Detection uses color-intensity mapping to highlight the most resource-intensive parts of your quantum algorithm, making optimization targets immediately apparent.
-
Flame Graph Support offers an alternative visualization that shows resource consumption proportional to the total program cost, providing immediate insight into where optimization efforts should focus.
-
Customizable Filtering allows you to focus on significant resource consumers by filtering out noise and less impactful operations, streamlining your analysis workflow.
Use Cases¶
Resource Analyzer supports various quantum algorithm development scenarios:
- Identifying performance bottlenecks in quantum algorithms by visualizing resource consumption patterns
- Comparing resource utilization across different implementations of the same algorithm
- Validating optimization efforts by analyzing before-and-after resource metrics
- Sharing resource analysis results with team members for collaborative optimization
- Generating publication-ready visualizations of quantum resource requirements
Integration with Construct¶
Resource Analyzer is fully integrated with the Construct platform, working seamlessly with:
- Workbench - Analyze resource estimates from your Workbench implementations
- Bartiq - Directly import quantum resource estimates generated by the Bartiq engine
- Circuit Designer - Examine resource requirements of circuits created in Circuit Designer
File Format Support
Resource Analyzer works with .qre-analysis.json and .basq.dataset.json files. Native support for Bartiq's QREF format is coming soon, which will streamline the analysis workflow.
Getting Started¶
To begin analyzing your quantum algorithms with Resource Analyzer:
- Access Resource Analyzer through your Construct project
- Import a quantum resource estimate file
- Explore the interactive visualization
- Use filters and settings to focus your analysis
For step-by-step instructions, see the Getting Started Guide.
Next Steps¶
- Learn about different visualization types
- Understand resource analysis techniques
- Explore filtering and settings
- Review best practices for quantum resource analysis