Skip to content

🐛 Fix numerical issues in ThreeQubitRemoveUnconnected test #978

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

Conversation

MatthiasReumann
Copy link
Collaborator

@MatthiasReumann MatthiasReumann commented May 31, 2025

Description

Fixes issue as discussed in #975.

Due to numerical inaccuracy in the ThreeQubitRemoveUnconnected test, the approximation algorithm performed differently than expected. Essentially the algorithm picked the "wrong" node to delete. Consequently, the unit test failed on certain systems.

Checklist:

  • The pull request only contains commits that are focused and relevant to this change.
  • I have added appropriate tests that cover the new/changed functionality.
  • I have updated the documentation to reflect these changes.
  • I have added entries to the changelog for any noteworthy additions, changes, fixes or removals.
  • I have added migration instructions to the upgrade guide (if needed).
  • The changes follow the project's style guidelines and introduce no new warnings.
  • The changes are fully tested and pass the CI checks.
  • I have reviewed my own code changes.

@MatthiasReumann MatthiasReumann changed the title 🐛 Fix numerical issues in ThreeQubitRemoveUnconnected 🐛 Fix numerical issues in ThreeQubitRemoveUnconnected test May 31, 2025
@burgholzer burgholzer added fix Fix for something that isn't working DD Anything related to the DD package c++ Anything related to C++ code extensive-cpp-ci Adding this label indicates that extensive C++ CI runs should be started for this PR. labels May 31, 2025
@burgholzer burgholzer added this to the DD Package Improvements milestone May 31, 2025
@burgholzer burgholzer removed the extensive-cpp-ci Adding this label indicates that extensive C++ CI runs should be started for this PR. label Jun 1, 2025
Copy link
Member

@burgholzer burgholzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍🏻 thanks for the fix

@burgholzer burgholzer enabled auto-merge (squash) June 1, 2025 03:07
Copy link

codecov bot commented Jun 1, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@burgholzer burgholzer merged commit 446a776 into munich-quantum-toolkit:main Jun 1, 2025
24 checks passed
@github-project-automation github-project-automation bot moved this to Done in MQT Core Jun 1, 2025
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 DD Anything related to the DD package fix Fix for something that isn't working
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants