Hi i am trying to switch my code base to switch from direct sampling method (where for every element in the system, I take a trace over all other sites and find the most likely assignement for my current index and proceed).
Instead i want to use the METTS method (https://arxiv.org/pdf/1002.1305 ) and see if there is any computational advantage in using it.
This code used to have a example but I cant find it anymore. Old link was:
https://github.com/ITensor/ITensors.jl/blob/main/src/lib/ITensorMPS/examples/finite_temperature/metts.jl
Any advice on where to find this?
You can find it here:
using ITensors, ITensorMPS
using Printf
#=
This example code implements the minimally entangled typical thermal state (METTS).
For more information on METTS, see the following references:
- "Minimally entangled typical quantum states at finite temperature", Steven R. White,
Phys. Rev. Lett. 102, 190601 (2009)
and arxiv:0902.4475 (https://arxiv.org/abs/0902.4475)
- "Minimally entangled typical thermal state algorithms", E M Stoudenmire and Steven R White,
New Journal of Physics 12, 055026 (2010) https://doi.org/10.1088/1367-2630/12/5/055026
=#
function ITensors.op(::OpName"expτSS", ::SiteType"S=1/2", s1::Index, s2::Index; τ)
h =
1 / 2 * op("S+", s1) * op("S-", s2) +
1 / 2 * op("S-", s1) * op("S+", s2) +
op("Sz", s1) * op("Sz", s2)
This file has been truncated. show original
If you found that link somewhere in the documentation could you let us know so we could fix it?