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

🚸 Support for adding tests to NALAC #629

Closed ystade closed 3 months ago

ystade commented 3 months ago

Description

This PR contains modifications that were necessary for the tests of the Neutral Atom Logical Array Compiler, see cda-tum/mqt-qmap#470.

Checklist:

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 91.6%. Comparing base (7eb0ab7) to head (5ebe377). Report is 90 commits behind head on main.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/cda-tum/mqt-core/pull/629/graphs/tree.svg?width=650&height=150&src=pr&token=MqstsRKdqp&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum)](https://app.codecov.io/gh/cda-tum/mqt-core/pull/629?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum) ```diff @@ Coverage Diff @@ ## main #629 +/- ## ===================================== Coverage 91.6% 91.6% ===================================== Files 148 148 Lines 14738 14736 -2 Branches 2365 2366 +1 ===================================== + Hits 13506 13510 +4 + Misses 1232 1226 -6 ``` | [Flag](https://app.codecov.io/gh/cda-tum/mqt-core/pull/629/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum) | Coverage Δ | | |---|---|---| | [cpp](https://app.codecov.io/gh/cda-tum/mqt-core/pull/629/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum) | `91.4% <100.0%> (+<0.1%)` | :arrow_up: | | [python](https://app.codecov.io/gh/cda-tum/mqt-core/pull/629/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum) | `99.7% <ø> (ø)` | | | [Files with missing lines](https://app.codecov.io/gh/cda-tum/mqt-core/pull/629?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum) | Coverage Δ | | |---|---|---| | [include/mqt-core/Permutation.hpp](https://app.codecov.io/gh/cda-tum/mqt-core/pull/629?src=pr&el=tree&filepath=include%2Fmqt-core%2FPermutation.hpp&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum#diff-aW5jbHVkZS9tcXQtY29yZS9QZXJtdXRhdGlvbi5ocHA=) | `100.0% <100.0%> (ø)` | | | [include/mqt-core/na/NAComputation.hpp](https://app.codecov.io/gh/cda-tum/mqt-core/pull/629?src=pr&el=tree&filepath=include%2Fmqt-core%2Fna%2FNAComputation.hpp&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum#diff-aW5jbHVkZS9tcXQtY29yZS9uYS9OQUNvbXB1dGF0aW9uLmhwcA==) | `100.0% <ø> (ø)` | | | [include/mqt-core/na/NADefinitions.hpp](https://app.codecov.io/gh/cda-tum/mqt-core/pull/629?src=pr&el=tree&filepath=include%2Fmqt-core%2Fna%2FNADefinitions.hpp&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum#diff-aW5jbHVkZS9tcXQtY29yZS9uYS9OQURlZmluaXRpb25zLmhwcA==) | `98.0% <ø> (ø)` | | | [...clude/mqt-core/na/operations/NAGlobalOperation.hpp](https://app.codecov.io/gh/cda-tum/mqt-core/pull/629?src=pr&el=tree&filepath=include%2Fmqt-core%2Fna%2Foperations%2FNAGlobalOperation.hpp&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum#diff-aW5jbHVkZS9tcXQtY29yZS9uYS9vcGVyYXRpb25zL05BR2xvYmFsT3BlcmF0aW9uLmhwcA==) | `80.0% <ø> (ø)` | | | [include/mqt-core/operations/CompoundOperation.hpp](https://app.codecov.io/gh/cda-tum/mqt-core/pull/629?src=pr&el=tree&filepath=include%2Fmqt-core%2Foperations%2FCompoundOperation.hpp&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum#diff-aW5jbHVkZS9tcXQtY29yZS9vcGVyYXRpb25zL0NvbXBvdW5kT3BlcmF0aW9uLmhwcA==) | `100.0% <ø> (ø)` | | | [...nclude/mqt-core/operations/NonUnitaryOperation.hpp](https://app.codecov.io/gh/cda-tum/mqt-core/pull/629?src=pr&el=tree&filepath=include%2Fmqt-core%2Foperations%2FNonUnitaryOperation.hpp&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum#diff-aW5jbHVkZS9tcXQtY29yZS9vcGVyYXRpb25zL05vblVuaXRhcnlPcGVyYXRpb24uaHBw) | `100.0% <ø> (+8.3%)` | :arrow_up: | | [include/mqt-core/operations/Operation.hpp](https://app.codecov.io/gh/cda-tum/mqt-core/pull/629?src=pr&el=tree&filepath=include%2Fmqt-core%2Foperations%2FOperation.hpp&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum#diff-aW5jbHVkZS9tcXQtY29yZS9vcGVyYXRpb25zL09wZXJhdGlvbi5ocHA=) | `80.0% <ø> (-1.7%)` | :arrow_down: | | [src/na/NAComputation.cpp](https://app.codecov.io/gh/cda-tum/mqt-core/pull/629?src=pr&el=tree&filepath=src%2Fna%2FNAComputation.cpp&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum#diff-c3JjL25hL05BQ29tcHV0YXRpb24uY3Bw) | `100.0% <100.0%> (ø)` | | | [src/na/operations/NALocalOperation.cpp](https://app.codecov.io/gh/cda-tum/mqt-core/pull/629?src=pr&el=tree&filepath=src%2Fna%2Foperations%2FNALocalOperation.cpp&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum#diff-c3JjL25hL29wZXJhdGlvbnMvTkFMb2NhbE9wZXJhdGlvbi5jcHA=) | `100.0% <100.0%> (ø)` | | | [src/operations/CompoundOperation.cpp](https://app.codecov.io/gh/cda-tum/mqt-core/pull/629?src=pr&el=tree&filepath=src%2Foperations%2FCompoundOperation.cpp&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum#diff-c3JjL29wZXJhdGlvbnMvQ29tcG91bmRPcGVyYXRpb24uY3Bw) | `86.4% <100.0%> (ø)` | | | ... and [1 more](https://app.codecov.io/gh/cda-tum/mqt-core/pull/629?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum) | | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/cda-tum/mqt-core/pull/629/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum)
ystade commented 3 months ago

And something broke due the change in getUsedQubits :/