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 transpilation error on windows when using AQT primitives #123

Merged
merged 14 commits into from
Jan 24, 2024

Conversation

airwoodix
Copy link
Collaborator

@airwoodix airwoodix commented Jan 24, 2024

Summary

Fix transpilation errors happening on Windows where the transpiler seemingly isn't applied when using the specialized AQT primitives.

Details and comments

  • The root error comes from the use of fnmatch in the Decompose transpilation pass, applied in the bound pass manager in the AQT primitives. fnmatch, is case-sensitive on Linux but case-insensitive on Windows, which leads to wrong decomposition of the substituted rxx operations after the WrapRxxAngles pass.

  • To confirm the fix, run the examples on Windows on CI. A follow-up PR will try to run more of the testing suite.

Fixes #121.

@airwoodix airwoodix self-assigned this Jan 24, 2024
@airwoodix airwoodix force-pushed the ci-windows branch 4 times, most recently from b45a68e to 3fe41e3 Compare January 24, 2024 13:46
@airwoodix airwoodix force-pushed the ci-windows branch 2 times, most recently from 0939966 to ea17708 Compare January 24, 2024 14:17
@airwoodix airwoodix force-pushed the ci-windows branch 2 times, most recently from 8d546ea to d8163c5 Compare January 24, 2024 14:34
@airwoodix airwoodix marked this pull request as ready for review January 24, 2024 16:00
@airwoodix airwoodix mentioned this pull request Jan 24, 2024
@airwoodix airwoodix changed the title workflows/poetry: run examples on windows Fix transpilation error on windows when using AQT primitives Jan 24, 2024
@airwoodix airwoodix merged commit 22671c5 into master Jan 24, 2024
15 checks passed
@airwoodix airwoodix deleted the ci-windows branch January 24, 2024 16:21
@airwoodix
Copy link
Collaborator Author

Upstream patch: Qiskit/qiskit#11637

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Quickstart Fail
3 participants