quantum-compiler / quartz

The Quartz Quantum Compiler
Apache License 2.0
76 stars 19 forks source link

Segfault in computing graph xfers after PR #123 #124

Closed typerSniper closed 1 year ago

typerSniper commented 1 year ago

Hey, because of the recent PR #123, quartz segfaults while computing graph xfers from Name_4_3_complete_ECC_set.json (I suspect other ecc files would also segfault). I went through the debugger and found that the assertion assert(node->index < (int)context->input_parameters.size()); on line 165 of tasograph.cpp, fails, and the next line segfaults. I was unable to determine how to fix that :/. I suspect that for creating new parameter nodes, you need to update the context somehow, but I am not sure.

xumingkuan commented 1 year ago

Is this fixed now?

typerSniper commented 1 year ago

Indeed