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
_decompose_expressions(circ)
358 newcirc.add_barrier(args)
359 else:
--> 360 newcirc.add_gate(op, args, **kwargs)
361 return newcirc, modified
RuntimeError: Unable to cast Python instance of type <class 'list'> to C++ type 'std::__1::vector<unsigned int, std::__1::allocator<unsigned int>>'
I recognise this error message from when we try to mix and match integers and unitids when adding conditional ops to a circuit. Made an issue to make this clearer -> #1580
It seems likely to me that the same sort of mismatch is occuring when the Circuit.add_gate method is called in the circuit construction part of the pass. See this line of code.
I've found that I get an assertion failure when I try to obtain a list of all of the
ClassicalExpBox
es contained in thisCircuit
.Unfortunately I haven't found a smaller circuit to reprodce the issue yet.
Circuit json file -> classicalexp_issue_circ.json
To reproduce, first load in the circuit
If I then try to obtain a list of all of the
ClassicalExpBox
commands...I get a crash when runnning the above from the terminal
However if I run
this executes without issue.
Note that this is a large circuit containing 20
ClassicalExpBox
esgives
The text was updated successfully, but these errors were encountered: