You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raise QASMUnsupportedError(
pytket.qasm.qasm.QASMUnsupportedError: Cannot print command of type: CnZ
A user might be confused by this if they didn't explicitly add CnZ gates into their circuit. After tracking down the root cause we saw that CnZ and CnY gates aren't supported here. These gates come from using Z or Y gates inside a multiplexor with more than 2 states. We feel that an Error message to that effect, perhaps here, would allow the user to debug this much faster.
The text was updated successfully, but these errors were encountered:
IlanIwumbwe
changed the title
'circuit_to_qasm_str' proposed enhancementcircuit_to_qasm_str proposed enhancement
Aug 20, 2024
Benny and I found this by running a randomly generated circuit through the pytket
circuit_to_qasm_str
function.When we run this circuit:
We get:
raise QASMUnsupportedError( pytket.qasm.qasm.QASMUnsupportedError: Cannot print command of type: CnZ
A user might be confused by this if they didn't explicitly add
CnZ
gates into their circuit. After tracking down the root cause we saw thatCnZ
andCnY
gates aren't supported here. These gates come from usingZ
orY
gates inside a multiplexor with more than 2 states. We feel that an Error message to that effect, perhaps here, would allow the user to debug this much faster.The text was updated successfully, but these errors were encountered: