Open frankwswang opened 5 years ago
The static matrix in kernel is too large, please use
c2 = concentrate(11, chain(4, chain(4, chain(4, chain(4, put(4, 1=>Ry(pi)), put(4, 2=>Ry(pi)))))), 7:10)
put is not suited for large blocks, since it will use static gates to avoid allocation, speed up the simulation. Which is not proper for large blocks.
For CPU, it coverts the gate to a dynamic matrix if the gate matrix is too large, however, the same trick is not possible for CuYao, I can fix it by throwing a better error message.
I tagged this because we need better error message
MWE: