Skip to content

Filtering and Settings

Resource Analyzer provides various filtering and customization options to help focus your analysis and improve visualization performance.

Graph Setup

Access graph settings by clicking the gear icon in the toolbar.

Graph Setup Panel

Cost Filters

Filter nodes based on resource usage:

Filtering Controls

  • Filter costs less than

    • Enter a threshold value
    • Choose between percentage or absolute values
    • Removes nodes below the specified threshold
  • Hide gates

    • Removes individual gate operations from view
    • Improves performance for large graphs
    • Focuses visualization on high-level structure
  • Hide nodes of type

    • Specify node types to exclude
    • Common types: split, merge, swap, had, passthr
    • Supports comma-separated lists

Cost Properties

Configure how resource costs are used for color gradients:

Cost Controls

  • Cost property

    • Select which metric determines node coloring (see note below)
    • Options include toffs, t_gates, and other available metrics
    • Changes affect all visualization types
  • Cost scale

    • Log10 (default): Best for quantum resources
    • Log2: Alternative logarithmic scale
    • Linear: Direct value mapping
  • Scale max

    • Max root cost: Color relative to total program cost
    • Custom value: Set specific maximum for color scaling

Cost property selection

Choosing which Cost Property selection is be used for costing and the color gradient is only availble when "All Resource Counts" is selected.

View Options

Expansion Controls

  • Expand All: Shows complete call graph
  • Collapse All: Shows only top-level nodes
  • Individual node expansion: Click arrows to expand/collapse

Performance Impact

Using "Expand All" on large graphs may impact performance. Consider using filters before expanding.

Zoom and Navigation

  • Use zoom controls (+/-) to adjust view scale
  • Click and drag to pan around the visualization
  • Use the Full screen button for maximized view

Best Practices

Performance Optimization

  1. Start with "Hide gates" enabled
  2. Set reasonable cost filters (e.g., >1%)
  3. Collapse unused branches
  4. Use specific metric views when possible

Analysis Focus

  1. Use percentage filters for relative analysis
  2. Use absolute filters for specific thresholds
  3. Combine filters to isolate areas of interest
  4. Adjust cost scale based on analysis needs

Quick Setup

For most analyses, start with:

  • Hide gates enabled
  • Filter costs less than 1%
  • Log10 scale
  • Max root cost selected