cda-tum / mqt-core

MQT Core - The Backbone of the Munich Quantum Toolkit
http://mqt.readthedocs.io/projects/core
MIT License
52 stars 28 forks source link

✨ Reduce false negatives of `CompoundOperation::isInverseOf` #601

Open ystade opened 4 months ago

ystade commented 4 months ago

What's the problem this feature will solve?

So far the function isInverseOf in include/mqt-core/operations/CompoundOperation.hpp#L71 produces some false negatives, also see this comment.

Describe the solution you'd like

As suggested in the referenced comment, the function falttenOperations could be used to circumvent some false negatives.