euro-hpc-pl / SpinGlassEngine.jl

Apache License 2.0
1 stars 1 forks source link

Problem with precision propagation #24

Closed bartekGardas closed 2 months ago

bartekGardas commented 2 months ago

Here, https://github.com/euro-hpc-pl/SpinGlassEngine.jl/blob/master/src/contractor.jl, and in some other places we have fixed T = Float64 which prevents us from executing the code using different precisions. Can we fix this? SpinGlassTensors.jl seems to already have a proper type propagation. Probably the easiest way to go about this (although I'm not sure if optimal) would be to incorporated the desired precision into MpsContractor{T <: AbstractStrategy, R <: AbstractGauge} <: AbstractContractor and then propagate it downward.