Resource Analyzer Viewer¶
The Resource Analyzer Viewer enables you to visualize Quantum Resource Estimates (QREs) in VS Code or a Jupyter notebooks. This integrated viewer transforms complex resource estimation data into interactive visual hierarchies, helping you understand and optimize quantum algorithm resource requirements.
Key Features¶
- Interactive Hierarchical View: Navigate resource estimates through expandable tree structures.
- Multiple Resource Metrics: View multiple resource types like Active Volume and Toffs simultaneously or individually.
- Percentage Analysis: Understand resource distribution across algorithm components.
Generate a .qre-analysis file¶
You can use Workbench to generate a .qre-analysis file. Use the resource_analyzer integration to export the file.
from psiqdk.workbench import QPU
from psiqdk.workbench.integrations import resource_analyzer
qpu = QPU(num_qubits = 10)
...
resource_analyzer.export(qpu, "path/to/file")
View a .qre-analysis file¶
You can use the CallGraph or FlameGraph objects to view any .qre-analysis file directly within in a Jupyter notebook, import either class and pass a local file path or remote URL.
Both CallGraph or FlameGraph objects have class has inputs, data and src. Only specify one:
- data: Renders the QRE from the text of the .qre-analysis file directly as a string
- src: Renders the QRE from either a file path or a web url.
Next Steps¶
- Circuit Designer Viewer — View circuit files in VS Code and Jupyter
- Resource Analyzer ⧉ — Learn about Resoruce Analyzer and how it can be used to analyze quantum circuit