-
Notifications
You must be signed in to change notification settings - Fork 47
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
ZXGraphlikeOptimisation()
can cause RunTime error
#1566
Comments
Any ideas @willsimmons1465 ? Seems like |
Hi, sorry only just seen this. Someone else internally reported a similar error last week which looks to be the same thing. We found this to be a device-dependent error, failing e.g. on arm64 macs but not on x86 macs. I'll have a hunt around to see if I can find some culprits and borrow someone else's device. The behaviour where it works for integer angles is somewhat expected, since rotations with multiples of pi/2 have additional simplification rules for them in ZX, so whatever the bug is, these extra rules seem to drag the diagram out of the buggy edge case |
@IlanIwumbwe Thanks for reporting this error. The fix from #1690 will be included in the next release of pytket. In the meantime, this input was found to work correctly (at least most of the time) on a variety of devices, so if you need the results soon try rerunning your task on a different system |
Thanks for authoring a fix. This was detected by a fuzz testing tool Benny and I built so we were just interested in finding bugs in compilers like this one. |
Benny and I found this by generating a random
Pytket
circuit.When we run this code:
We get this runtime error:
We tried to minimize the test case but deleting any one of the gates would make it work. Additionally, if any of the arguments to the rotation gates are integers, it also works.
The text was updated successfully, but these errors were encountered: