-
Notifications
You must be signed in to change notification settings - Fork 0
/
snoop.jl
34 lines (23 loc) · 858 Bytes
/
snoop.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using SnoopCompileCore
tinf = @snoopi_deep begin
using MPSToolkit
disableThreading()
model = TransverseIsing1D(8)
options = DMRGOptions()
result = runDMRG(model, options)
storeDMRGResult("dmrg.h5", result)
model.parameters["hx"] = 1.5
state = result.states[1]
tebd_options = TEBDOptions(1, 2.0, 0.1, 10, 1e-12)
result = runTEBD(state, model, tebd_options)
storeTEBDResult("tebd1.h5", result)
tebd_options = TEBDOptions(2, 2.0, 0.1, 10, 1e-12)
result = runTEBD(state, model, tebd_options)
storeTEBDResult("tebd2.h5", result)
tebd_options = TEBDOptions(3, 2.0, 0.1, 10, 1e-12)
result = runTEBD(state, model, tebd_options)
storeTEBDResult("tebd3.h5", result)
end
using SnoopCompile
ttot, pcs = SnoopCompile.parcel(tinf)
SnoopCompile.write(joinpath(pwd(), "src", "Precompile"), pcs)