Bartiq Integration¶
Resource Analyzer works in concert with Bartiq, PsiQuantum's quantum resource estimation engine. This integration enables detailed analysis of resource estimates generated by Bartiq, helping you understand and optimize your quantum algorithms.
Understanding the Integration¶
Bartiq generates detailed quantum resource estimates by analyzing your quantum circuits and algorithms. Resource Analyzer then visualizes these estimates, helping you understand resource consumption patterns and identify optimization opportunities.
Resource Estimation Flow¶
From Bartiq to Resource Analyzer¶
The process flows naturally from estimation to analysis:
- Bartiq analyzes your quantum algorithm
- Generates detailed resource estimates
- Creates output in a structured format
- Resource Analyzer loads and visualizes the data
This automated flow ensures you're always working with accurate, up-to-date resource information.
File Formats¶
Current Format Support¶
Bartiq currently generates resource estimates in several formats:
- Standard JSON resource estimates
- QREF format (upcoming)
- Legacy formats for backward compatibility
Resource Analyzer handles these formats automatically, selecting the appropriate parser based on file content.
QREF Format Support¶
The upcoming native QREF format support will bring several advantages:
- More detailed resource metrics
- Improved performance
- Enhanced metadata support
- Better version tracking
Format Transition
Native QREF support is coming soon. Existing formats will continue to be supported.
Advanced Features¶
Resource Calculation¶
Bartiq's integration with Resource Analyzer reveals detailed information about:
- Gate decompositions and their costs
- Ancilla qubit requirements
- Circuit depth implications
- Error correction overhead
This detailed information helps you make informed optimization decisions.
Metadata Support¶
The integration preserves important context:
- Estimation parameters used
- Algorithm configuration details
- Hardware model assumptions
- Optimization settings
This metadata helps you interpret resource estimates accurately.
Working with Resource Estimates¶
Loading Estimates¶
Resource Analyzer automatically handles Bartiq's output:
- Open Resource Analyzer in your project
- Load the Bartiq-generated estimate
- Begin analysis immediately
- Access all available metrics
Interpreting Results¶
The integration helps you understand Bartiq's detailed estimates:
- View resource breakdowns by component
- Understand calling relationships
- Identify resource bottlenecks
- Track optimization progress
Best Practices¶
Estimation Workflow¶
To make the most of the integration:
- Document estimation parameters
- Save baseline measurements
- Track changes over time
- Compare alternative implementations
Analysis Strategy¶
When working with Bartiq estimates:
- Start with high-level resource patterns
- Drill down into specific components
- Compare alternative implementations
- Document optimization decisions
Error Handling¶
The integration includes robust error handling:
- Format validation
- Data consistency checks
- Clear error messages
- Recovery options
This ensures reliable analysis of your resource estimates.
Future Developments¶
The Bartiq integration continues to evolve:
- Enhanced metric support
- Improved performance
- Additional analysis capabilities
- Expanded optimization guidance
Ongoing Development
Integration capabilities are regularly enhanced. Stay updated through Construct release notes.