Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ancillary and garbage support #635

Open
wants to merge 38 commits into
base: main
Choose a base branch
from

Conversation

TooMuchDakka
Copy link

@TooMuchDakka TooMuchDakka commented Jun 25, 2024

Description

Adds support for ancillary as well as garbage definitions to the .real file parser. Additionally, the default 1-1 output_permutation is update if matching entries in the .input definitions exist for any .output definition (see mqt-core documentation)

Fixes #88

Checklist:

  • The pull request only contains commits that are related to it.
  • I have added appropriate tests and documentation.
  • I have made sure that all CI jobs on GitHub pass.
  • The pull request introduces no new warnings and follows the project's style guidelines.

Copy link

codecov bot commented Jun 25, 2024

Codecov Report

Attention: Patch coverage is 90.90909% with 33 lines in your changes missing coverage. Please review.

Project coverage is 87.1%. Comparing base (89f18fb) to head (c458531).

Files Patch % Lines
src/ir/parsers/RealParser.cpp 90.9% 33 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##            main    #635     +/-   ##
=======================================
+ Coverage   87.0%   87.1%   +0.1%     
=======================================
  Files        125     125             
  Lines      13781   14100    +319     
  Branches    2164    2214     +50     
=======================================
+ Hits       11996   12294    +298     
- Misses      1785    1806     +21     
Flag Coverage Δ
cpp 86.8% <90.9%> (+0.1%) ⬆️
python 99.7% <ø> (ø)
Files Coverage Δ
src/ir/parsers/RealParser.cpp 87.6% <90.9%> (+16.5%) ⬆️

... and 5 files with indirect coverage changes

@burgholzer burgholzer added enhancement New feature or request Core Anything related to the Core library and IR c++ Anything related to C++ code labels Jun 29, 2024
@burgholzer
Copy link
Member

Please make sure to add appropriate tests covering your changes and to resolve all clang-tidy warnings. You can see the clang-tidy warnings in the "Files Changed" tab here on GitHub or here: https://github.com/cda-tum/mqt-core/actions/runs/9686994807?pr=635#summary-26730667014

Tests should probably go into their own new file here: https://github.com/cda-tum/mqt-core/tree/main/test/unittests similar to https://github.com/cda-tum/mqt-core/blob/main/test/unittests/test_qasm3_parser.cpp

test/unittests/test_real_parser.cpp Fixed Show fixed Hide fixed
test/unittests/test_real_parser.cpp Fixed Show fixed Hide fixed
test/unittests/test_real_parser.cpp Fixed Show fixed Hide fixed
@TooMuchDakka TooMuchDakka marked this pull request as ready for review August 15, 2024 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ Anything related to C++ code Core Anything related to the Core library and IR enhancement New feature or request
Projects
Status: In Progress
Status: In Progress
Development

Successfully merging this pull request may close these issues.

Ancillary and garbage support for .real parser
2 participants