-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
optimize_1q_decomposition: 'NoneType' object has no attribute 'global_phase' #9842
Comments
Notice that
|
The immediate cause for why it doesn't work is because |
To be clear, I mean |
Fixed by #9843. |
even when the synthesis result is a single |
How would you know that the synthesis is a single |
I see.. so |
Whether you need a "universal" basis depends on the synthesis plugin you're using. The default one has a variety of possible universal 1q decomposers, but your basis set has to be a superset of at least one of them to work. These are the available decomposers: ONE_QUBIT_EULER_BASIS_GATES = {
"U3": ["u3"],
"U321": ["u3", "u2", "u1"],
"U": ["u"],
"PSX": ["p", "sx"],
"U1X": ["u1", "rx"],
"RR": ["r"],
"ZYZ": ["rz", "ry"],
"ZXZ": ["rz", "rx"],
"XZX": ["rz", "rx"],
"XYX": ["rx", "ry"],
"ZSXX": ["rz", "sx", "x"],
"ZSX": ["rz", "sx"],
} |
Environment
What is happening?
When
unitary_synthesis
is called with a particularly restrictivebasis_gates
, it seems to generate aNone
output asbest_synth_circuit
, which makesoptimize_1q_decomposition
raise.How can we reproduce the issue?
What should happen?
work or nicer error
Any suggestions?
No response
The text was updated successfully, but these errors were encountered: