Skip to content

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:

  1. Bartiq analyzes your quantum algorithm
  2. Generates detailed resource estimates
  3. Creates output in a structured format
  4. 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:

  1. Standard JSON resource estimates
  2. QREF format (upcoming)
  3. 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:

  1. More detailed resource metrics
  2. Improved performance
  3. Enhanced metadata support
  4. 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:

  1. Gate decompositions and their costs
  2. Ancilla qubit requirements
  3. Circuit depth implications
  4. Error correction overhead

This detailed information helps you make informed optimization decisions.

Metadata Support

The integration preserves important context:

  1. Estimation parameters used
  2. Algorithm configuration details
  3. Hardware model assumptions
  4. Optimization settings

This metadata helps you interpret resource estimates accurately.

Working with Resource Estimates

Loading Estimates

Resource Analyzer automatically handles Bartiq's output:

  1. Open Resource Analyzer in your project
  2. Load the Bartiq-generated estimate
  3. Begin analysis immediately
  4. Access all available metrics

Interpreting Results

The integration helps you understand Bartiq's detailed estimates:

  1. View resource breakdowns by component
  2. Understand calling relationships
  3. Identify resource bottlenecks
  4. Track optimization progress

Best Practices

Estimation Workflow

To make the most of the integration:

  1. Document estimation parameters
  2. Save baseline measurements
  3. Track changes over time
  4. Compare alternative implementations

Analysis Strategy

When working with Bartiq estimates:

  1. Start with high-level resource patterns
  2. Drill down into specific components
  3. Compare alternative implementations
  4. Document optimization decisions

Error Handling

The integration includes robust error handling:

  1. Format validation
  2. Data consistency checks
  3. Clear error messages
  4. Recovery options

This ensures reliable analysis of your resource estimates.

Future Developments

The Bartiq integration continues to evolve:

  1. Enhanced metric support
  2. Improved performance
  3. Additional analysis capabilities
  4. Expanded optimization guidance

Ongoing Development

Integration capabilities are regularly enhanced. Stay updated through Construct release notes.