Open PabloAndresCQ opened 7 months ago
My suggestion is that we check for classical registers at the beginning of the conversion and, if we find any, raise a UserError with a message saying something like "Classical registers are not supported. Please remove all classical registers from your circuit."
Oh, I also got the same error, and I was not sure what to do. Is the solution for this to simply remove all classical registers?
If the
pytket.Circuit
has any classical register, when callingTensorNetwork
on it, we get the following error:This error occurs even if there are no operations acting on the classical registers. The issue seems to be that
self._graph.output_names
includes all wires, not only quantum ones.This issue was found by Agustin Borgna.