bqskit
bqskit copied to clipboard
CU1 gate cannot be printed to qasm
It occurs to me that when using ControlledGate(U1Gate())
, the feature to output qasm
file is having issue.
Thanks for making this bug report. To clarify, we should be able to build a ControlledGate(U1Gate())
and save to qasm, load that same qasm, and have the same gate.
from bqskit.ir.gates import ControlledGate, U1Gate
g = ControlledGate(U1Gate())
from bqskit import Circuit
c = Circuit(2)
c.append_gate(g, (0, 1))
c.to('qasm')
This seems to be printing fine. @bachbao, do you have a case where this isn't working?
Closing for now, feel free to re-open.