ProjectQ-Framework / ProjectQ

ProjectQ: An open source software framework for quantum computing
https://projectq.ch
Apache License 2.0
893 stars 275 forks source link

NoGateDecompositionError: No replacement found for Measure^\dagger | Qureg[16]! #475

Closed saifawan2703 closed 1 month ago

saifawan2703 commented 2 months ago

Hello,

I encountered a NoGateDecompositionError while using the ProjectQ framework. The specific error message is: No replacement found for Measure^\dagger | Qureg[16]! Could anyone provide insights on what might be causing this issue? Are there specific conditions under which this error occurs, and how can I resolve it?

damiansteiger commented 2 months ago

The error happens because there exists no inverse of a measurement ("Measure^\dagger").

Did you accidentally use Measure within a with Dagger(eng) section?