NVIDIA / cuda-quantum

C++ and Python support for the CUDA Quantum programming model for heterogeneous quantum-classical workflows
https://nvidia.github.io/cuda-quantum/
Other
424 stars 147 forks source link

Quake verification pass #311

Open boschmitt opened 1 year ago

boschmitt commented 1 year ago

Required prerequisites

Describe the feature

As mentioned in #302, It would be useful to create a general quake-verify pass for testing purposes. This pass would make sure that the IR has certain properties, e.g., operations having at most two controls (quake-verify{max-controls=2}), or that the kernel does not contain mid-kernel measurements (quake-verify{no-mid-measurements}).

schweitzpgi commented 1 year ago

This sounds like a good idea. I have to say I was a bit confused by the title since there already is a verification pass that can be run on the quake code (and is run after the bridge lowers the kernel code).