Efficient scipy sparse array and kronecker product computation
I want to compute the Kronecker product of a long list of small matrices (say, Pauli matrices). I tried to define the small matrices using scipy.sparse.csr_array
, and use scipy.sparse.kron
to perform the Kronecker product. However, the performance isn’t ideal.