# table – Kronecker Product \$ n \$ matrices

I would like to write code to make the Kronecker product of $$n$$ matrices, for example when $$n = 4$$ And the matrices are matrices of Pauli.

``````KroneckerProduct[PauliMatrix[1], PauliMatrix[1], PauliMatrix[1], PauliMatrix[1]]
``````

Is there any convenient way to incorporate the general first? $$n$$ in the code, so you do not have to write the code every time you change $$n$$?