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

🚸 small improvements to Control and Permutation bindings #593

Merged
merged 3 commits into from
Apr 20, 2024

Conversation

burgholzer
Copy link
Member

Description

This PR brings some small improvements to the bindings of the Control and Permutation classes.
In particular, it adds hashing support and as well as equality comparisons.
For the Permutation class, it also adds an implicit conversion to a Python dictionary and fixes the Python stubs to include the constructor of the class.

This was inspired by #592 and helps to simplify some of the tests there.

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.

@burgholzer burgholzer added usability Anything related to usability Core Anything related to the Core library and IR python Anything related to Python code labels Apr 20, 2024
@burgholzer burgholzer added this to the MQT Core milestone Apr 20, 2024
@burgholzer burgholzer self-assigned this Apr 20, 2024
@burgholzer burgholzer enabled auto-merge (squash) April 20, 2024 14:40
@burgholzer burgholzer merged commit 4d6f788 into main Apr 20, 2024
36 checks passed
@burgholzer burgholzer deleted the small-bindings-improvements branch April 20, 2024 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core Anything related to the Core library and IR python Anything related to Python code usability Anything related to usability
Projects
Status: Done
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant