This has been brought up as in cda-tum/mqt-qcec/issues/489.
Turns out the endianness of the DCX gate matrix was wrong and this has not been detected because the tests where multiplying the gates of the definition for verification purposes in the wrong order.
After adjusting the tests, another incorrect endianness result popped up for the xx_minus_yy gate.
Both issues have now been fixed.
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 has been brought up as in cda-tum/mqt-qcec/issues/489. Turns out the endianness of the DCX gate matrix was wrong and this has not been detected because the tests where multiplying the gates of the definition for verification purposes in the wrong order. After adjusting the tests, another incorrect endianness result popped up for the
xx_minus_yy
gate.Both issues have now been fixed.
Checklist: