-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Because model WrightSim Hamiltonians have a specific size and number of non-zero elements, it is possible to create and compile a low-level matrix-vector multiplication method to be used in WrightSim propagate.py at near run-time, or more likely well in advance. The elements would be analyzed and a specific multiplication code compiled, bypassing numpy's dot and or matmul methods. The result could be a run time decrease by the sparseness of the Hamiltonian ( up to nearly 1/ length of density elements , for example leading to a time 90% faster for a 10-length density vector).
Here is a discussion of whether such a concept would be worthy and implementation be viable and how it might be accomplished.