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

Construction of default pass with optimization level 3 fails #575

Closed
cqc-alec opened this issue Feb 28, 2025 · 1 comment · Fixed by #577
Closed

Construction of default pass with optimization level 3 fails #575

cqc-alec opened this issue Feb 28, 2025 · 1 comment · Fixed by #577
Assignees
Labels
bug Something isn't working

Comments

@cqc-alec
Copy link
Collaborator

The error is:

>       return SequencePass(passlist)
E       RuntimeError: Cannot compose these Compiler Passes due to mismatching Predicates of type: GateSetPredicate

This shows up in this test. See for example this workflow run.

@cqc-alec cqc-alec added the bug Something isn't working label Feb 28, 2025
@cqc-alec
Copy link
Collaborator Author

To reproduce the error:

from pytket.extensions.quantinuum import QuantinuumBackend, QuantinuumAPIOffline
b = QuantinuumBackend("H1-1LE", api_handler=QuantinuumAPIOffline())
b.default_compilation_pass(3)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant