Suppose I have a 2^n \times 2^n matrix, is there a way to know if that matrix is decomposible to tensor product of quantum gates.
qml.QubitUnitary — PennyLane 0.40.0 documentation doesn’t return the name of the gates. Right now I have to explicitly write a tensor product of some parametrized matrices and solve a system of equations.
You could try using the decompose transform. Make sure to look at the examples there in the documentation and test that they work for you before trying to apply this to a different circuit.
There may be more efficient ways of doing this but this one should be easy to implement so that’s a bonus.