I'm trying to compile a circuit and the compilation was running indefinitely. I think I managed to narrow down the problem. For multiple cry gates in a QASM 2.0 definition saved in a file called random.qasm as following:
The compilation using the following code below seems to run indefinitely:
from bqskit.ir import Circuit
from bqskit import compile
qc_bqskit = Circuit.from_file('random.qasm')
opt_level = 1
basic_compilation = compile(qc_bqskit, optimization_level=opt_level, seed=10)
Commenting out one of the cry seems to enable the compile function to successfully finish executing. For context, I'm trying to compile a larger circuit which has mutiple cry gates as following (pricingcall.qasm) for a specific machine model and I encountered the problem of compilation which doesn't seem to finish executing.
Hi,
I'm trying to compile a circuit and the compilation was running indefinitely. I think I managed to narrow down the problem. For multiple
cry
gates in a QASM 2.0 definition saved in a file calledrandom.qasm
as following:The compilation using the following code below seems to run indefinitely:
Commenting out one of the
cry
seems to enable thecompile
function to successfully finish executing. For context, I'm trying to compile a larger circuit which has mutiplecry
gates as following (pricingcall.qasm
) for a specific machine model and I encountered the problem of compilation which doesn't seem to finish executing.Code
Looking forward to your kind attention.