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
Hope all are well. I have a quick question I'd appreciate guidance on. I'm trying to see what operations I have added to a circuit, but can't seem to find any methods to do it.
importcudaqqc=cudaq.make_kernel()
qr=qc.qalloc(2)
qc.h(qr[0])
qc.cx(qr[0], qr[1])
# HOW TO DO?forgateinqc:
print(gate)
As CUDA-Q kernel contains the whole MLIR tree (in a couple of dialects, such as Quake, CC, etc.), it's not possible to iterate over it in the linear gate operation sequence shown above.
Please see #3676 (specifically, the python/tests/backends/test_trace_kernel.py tests). I believe this will provide what you are looking for once it is merged.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Greetings there,
Hope all are well. I have a quick question I'd appreciate guidance on. I'm trying to see what operations I have added to a circuit, but can't seem to find any methods to do it.
All reactions