TriQ icon indicating copy to clipboard operation
TriQ copied to clipboard

ir2dag.py Parsing Issue

Open evmckinney9 opened this issue 3 years ago • 1 comments

Currently ScaffCC is generating spaces in gateset2 gates that TriQ is unable to parse. image

I'm not sure if the proper spacing needs to be changed in ScaffCC or if the parsing should just be updated here. image

evmckinney9 avatar Oct 05 '21 19:10 evmckinney9

You can another parsing error if your scaffold code has something like a measure register*syn = MeasZ(*a); which gives QASM measure a -> syn; and you'll confuse TriQ qbit = line.split()[1].split('[')[1].split(']')[0] IndexError: list index out of range

evmckinney9 avatar Oct 05 '21 20:10 evmckinney9