(Jan-25-2021, 11:40 PM)bowlofred Wrote: Yes, it should. I can't actually test it, because I don't have any of your functions or data structures.
You could call the function directly and see the argument list that it generates.
print(kron_argument_list(1)) print(kron_argument_list(2))
I wrote your function and when I called function like that:
a = kron(*kron_argument_list([i for i in range(qbt)]))I have this error:
TypeError: 'tuple' object cannot be interpreted as an integer
And I have this error: TypeError: 'tuple' object cannot be interpreted as an integer, when I tried the following script
a = kron(*kron_argument_list(qbt))