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

🐛 Fix output permutation deduction #437

Merged
merged 1 commit into from
Oct 3, 2023

Conversation

burgholzer
Copy link
Member

Description

This PR fixes the output permutation deduction in the Qiskit circuit import.
The underlying assumption in our tools is that if a circuit contains no measurements, the identity permutation shall be assumed.
However, when an initial layout is present in the input circuit, our methods would only deduce the initial layout and keep the output permutation untouched.
This resulted in a mismatch between the initial layout and the output permutation.

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.

Signed-off-by: burgholzer <burgholzer@me.com>
@burgholzer burgholzer added fix Fix for something that isn't working Core Anything related to the Core library and IR python Anything related to Python code labels Oct 3, 2023
@burgholzer burgholzer self-assigned this Oct 3, 2023
@burgholzer burgholzer merged commit 2b2675e into main Oct 3, 2023
@burgholzer burgholzer deleted the fix-output-permutation-deduction branch October 3, 2023 08:48
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 fix Fix for something that isn't working python Anything related to Python code
Projects
Status: Done
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant