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

Add matrix type for spin/flavour symmetric matrices #153

Open ffreyer opened 2 years ago

ffreyer commented 2 years ago

I.e. a type for matrices of the form [A 0; 0 A]. We have this in both default Hubbard models in the hopping matrix.

I think this would be useful for measurements. Currently there is dispatch on the model type to differentiate these symmetric matrices from full matrices. But in general multiple model could have this symmetry and require the same specialized method. If we had a matrix type to dispatch on we could treat this more generally.

ffreyer commented 2 years ago

I added a Value type holding the number of flavors for dispatch in measurements instead. Not sure if that's a good solution

ffreyer commented 1 year ago

I added DiagonallyRepeatingMatrix in #165 but it's only used in measurements atm