This PR optimizes the isDynamic(Circuit) check by simplifying the overall implementation and making the function const.
Furthermore, the function is moved from the CircuitOptimizer to the QuantumComputation class itself.
Last, but not least, this PR fixes an issue in the CMake configuration that would prevent the algorithm tests to run properly.
Checklist:
[x] The pull request only contains commits that are related to it.
[x] I have added appropriate tests and documentation.
[x] I have made sure that all CI jobs on GitHub pass.
[x] The pull request introduces no new warnings and follows the project's style guidelines.
Description
This PR optimizes the
isDynamic
(Circuit) check by simplifying the overall implementation and making the functionconst
. Furthermore, the function is moved from theCircuitOptimizer
to theQuantumComputation
class itself.Last, but not least, this PR fixes an issue in the CMake configuration that would prevent the algorithm tests to run properly.
Checklist: