-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Overflow error: Seed Transpiler Validation #12938
Comments
This is a very interesting and unexpected bug introduced as part of the oxidation. Probably can be fixed in python-land by |
Seeds are almost universally understood as positive integers, but in reality all that should matter is that they're a random sequence of bits. I think erroring out is the better course of action here; "fixing up" human-provided seeds to make them suitably random is well-known to be very very tricky. Using something like |
Got it. The fix should raise a |
Yeah, that's fine, if we think the error message needs improving. |
Environment
What is happening?
The pass manager crashes when i am provided with negative
seed_transpiler
value to the for layout method is 'sabre' even for normal circuit.The seed_transpiler is not validated properly.
The issue is also found when run with complex circuit with more number of two qubit gates.
How can we reproduce the issue?
What should happen?
There should be an unsigned int overflowerror
Any suggestions?
Validation of seed_transpiler value in
generate_preset_pass_manager
functionThe text was updated successfully, but these errors were encountered: