cuda-quantum
cuda-quantum copied to clipboard
[refactoring] [Python] Replace `MidCircuitMeasurementAnalyzer` with existing `quake-add-metadata` pass
This analysis pass may actually be a relic from the original implementation - originally we had a library mode for Python and this pass was necessary to inform the runtime that the kernel had mid circuit measurement. We can probably drop it now for the MLIR pass. But you will have to update
sample.py
to check the Module attribute instead of the python kernel metadata attribute.
Originally posted by @amccaskey in https://github.com/NVIDIA/cuda-quantum/pull/1994#discussion_r1688797509