quantum-visualizations / qmsolve

⚛️ A module for solving and visualizing the Schrödinger equation.
BSD 3-Clause "New" or "Revised" License
814 stars 111 forks source link

fixing kronecker sum for 3D #2

Closed dhudsmith closed 3 years ago

dhudsmith commented 3 years ago

scipy.sparse.kron expects only 2 input arrays. The kronecker product of 3 arrays involves a nested call to kron.