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

"RuntimeError: atan is not defined for Complex Infinity" when running squash pass on large circuit #1204

Closed
cqc-alec opened this issue Jan 9, 2024 · 0 comments · Fixed by #1208
Labels
bug Something isn't working

Comments

@cqc-alec
Copy link
Collaborator

cqc-alec commented Jan 9, 2024

import json
from pytket import Circuit, OpType
from pytket.passes import auto_squash_pass

with open('prefail_circ.json','r') as f:
    circ_dict = json.load(f)

circ = Circuit.from_dict(circ_dict)
auto_squash_pass({OpType.PhasedX, OpType.Rz}).apply(circ)

prefail_circ.json

@cqc-alec cqc-alec added the bug Something isn't working label Jan 9, 2024
@cqc-alec cqc-alec mentioned this issue Jan 10, 2024
5 tasks
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