catalyst icon indicating copy to clipboard operation
catalyst copied to clipboard

Add functionality to obtain some specs/info on quantum operations

Open zsb-xqc opened this issue 2 months ago • 1 comments

Context: The current --ppm-specs pass provides informative specs on a circuit related to ppr/ppm components, such as ppr operation count. This work extends that to include non-ppr/ppm operations, such as standard gate count, making the specs more generic. This activity was chosen as a first issue for @zsb-xqc, so it serves as a learning exercise. [sc-98690]

Description of the Change: This modification includes adding a new pass in the quantum dialect --quantum-specs-info, which is implemented in: QuantumSpecsInfo.cpp The test file is: QuantumSpecsInfoTest.mlir

Benefits: Provides general specs for all quantum operations. As a pass, it can be added at various locations in the pipeline, to see how the compilation has adjusted the gate count.

Possible Drawbacks: None, but there may be better ways to implement spec gathering.

Related GitHub Issues: None

zsb-xqc avatar Sep 08 '25 19:09 zsb-xqc