Creating QREs with Workbench¶
Resource Analyzer is designed to view Quantum Resource Estimates (QREs) generated by the Workbench library, part Construct's open source Quantum Development Kit ⧉.
From Workbench to Resource Analyzer¶
Workbench allows you to create fault tolerant quantum algorithms and generate detailed quantum resource estimates including:
- Counts of various operations like T-gates, Toffoli gates, rotations, and measurements
- Maximum qubit requirements ("qubit highwater")
- Breakdowns of resources by routines (Qubricks)
- Overall algorithm structure including the call relationships between routines
- Overall measure of resources (total operations and Active Volume)
Understanding Active Volume
Active Volume is a resource metric developed by PsiQuantum for quantifying the cost of a quantum program for an Active Volume hardware architecture. It assumes no cost for idle qubits in an algorithm. Learn more in the Active Volume paper ⧉.
To create a QRE file from Workbench that can be viewed in Resource Analyzer, export the program from your QPU:
# Export a program to Resource Analyzer file
from psiqdk.workbench.integrations import resource_analyzer
resource_analyzer.export(qpu, "filename")
This will create a filename.qre-analysis file which can be opened by Resource Analyzer.
Configuring Resource Types
The .qre-analysis file will include resource types used by the Workbench program. You can use the Workbench filter pipeline to configure your program to different gate sets for QRE analysis.
Learn more about Workbench and the Construct QDK here ⧉.