carstenbauer / MonteCarlo.jl

Classical and quantum Monte Carlo simulations in Julia
https://carstenbauer.github.io/MonteCarlo.jl/dev/
Other
185 stars 18 forks source link

Hermitian optimizations #170

Closed ffreyer closed 1 year ago

ffreyer commented 1 year ago

The hopping matrix and thus the its matrix exponential is Hermitian which means rather than $A{ij} B{jk}$ we can calculate $A{ji} B{jk}$ which is more cashe friendly. Using this speeds up the add_*_slice_matrix_*() functions:

(1 - new/old time @ L = 8 square lattice)