Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 8 additions & 24 deletions docs/src/examples/2d_ising_partition_function/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,23 +91,7 @@ Z = InfinitePartitionFunction(O)
````

````
InfinitePartitionFunction{TensorKit.TensorMap{ComplexF64, TensorKit.ComplexSpace, 2, 2, Vector{ComplexF64}}}(TensorKit.TensorMap{ComplexF64, TensorKit.ComplexSpace, 2, 2, Vector{ComplexF64}}[TensorMap((ℂ^2 ⊗ ℂ^2) ← (ℂ^2 ⊗ ℂ^2)):
[:, :, 1, 1] =
3.169519816780443 + 0.0im 0.4999999999999995 + 0.0im
0.4999999999999995 + 0.0im 0.1505971059561009 + 0.0im

[:, :, 2, 1] =
0.4999999999999995 + 0.0im 0.1505971059561009 + 0.0im
0.1505971059561009 + 0.0im 0.4999999999999995 + 0.0im

[:, :, 1, 2] =
0.4999999999999995 + 0.0im 0.1505971059561009 + 0.0im
0.1505971059561009 + 0.0im 0.4999999999999995 + 0.0im

[:, :, 2, 2] =
0.1505971059561009 + 0.0im 0.4999999999999995 + 0.0im
0.4999999999999995 + 0.0im 3.169519816780443 + 0.0im
;;])
InfinitePartitionFunction{TensorKit.TensorMap{ComplexF64, TensorKit.ComplexSpace, 2, 2, Vector{ComplexF64}}}(TensorKit.TensorMap{ComplexF64, TensorKit.ComplexSpace, 2, 2, Vector{ComplexF64}}[TensorMap{ComplexF64, TensorKit.ComplexSpace, 2, 2, Vector{ComplexF64}}(ComplexF64[3.169519816780443 + 0.0im, 0.4999999999999995 + 0.0im, 0.4999999999999995 + 0.0im, 0.1505971059561009 + 0.0im, 0.4999999999999995 + 0.0im, 0.1505971059561009 + 0.0im, 0.1505971059561009 + 0.0im, 0.4999999999999995 + 0.0im, 0.4999999999999995 + 0.0im, 0.1505971059561009 + 0.0im, 0.1505971059561009 + 0.0im, 0.4999999999999995 + 0.0im, 0.1505971059561009 + 0.0im, 0.4999999999999995 + 0.0im, 0.4999999999999995 + 0.0im, 3.169519816780443 + 0.0im], (ℂ^2 ⊗ ℂ^2) ← (ℂ^2 ⊗ ℂ^2));;])
````

## Contracting the partition function
Expand All @@ -124,7 +108,7 @@ env, = leading_boundary(env₀, Z; tol = 1.0e-8, maxiter = 500);

````
[ Info: CTMRG init: obj = +1.784252138312e+00 -1.557258880375e+00im err = 1.0000e+00
[ Info: CTMRG conv 63: obj = +3.353928644031e+00 err = 4.6032264022e-09 time = 5.74 sec
[ Info: CTMRG conv 63: obj = +3.353928644031e+00 err = 4.6025219721e-09 time = 4.33 sec

````

Expand Down Expand Up @@ -159,9 +143,9 @@ e = expectation_value(Z, (1, 1) => E, env)
````

````
λ = 3.353928644031378 + 7.047583922370844e-16im
m = 0.9736086674403002 + 0.0im
e = -1.8637796145082448 + 1.4610281815259345e-16im
λ = 3.35392864403138 - 7.635344033856476e-16im
m = 0.9736086674403008 + 0.0im
e = -1.8637796145082446 - 3.652351409579798e-17im

````

Expand Down Expand Up @@ -205,9 +189,9 @@ extrapolation):
````

````
(-(log(λ)) / beta - f_exact) / f_exact = -8.807417386354037e-16 + 1.736415096112634e-16im
(abs(m) - abs(m_exact)) / abs(m_exact) = -3.420952570843561e-16
(e - e_exact) / e_exact = -0.02373206809908996 - 7.653023727290916e-17im
(-(log(λ)) / beta - f_exact) / f_exact = -2.2018543465885093e-16 - 1.8812300485443252e-16im
(abs(m) - abs(m_exact)) / abs(m_exact) = 3.420952570843561e-16
(e - e_exact) / e_exact = -0.02373206809909008 + 1.9131411940819196e-17im

````

Expand Down
8 changes: 4 additions & 4 deletions docs/src/examples/2d_ising_partition_function/main.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -260,13 +260,13 @@
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "1.11.5"
"version": "1.12.5"
},
"kernelspec": {
"name": "julia-1.11",
"display_name": "Julia 1.11.5",
"name": "julia-1.12",
"display_name": "Julia 1.12.5",
"language": "julia"
}
},
"nbformat": 4
}
}
160 changes: 80 additions & 80 deletions docs/src/examples/3d_ising_partition_function/index.md

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions docs/src/examples/3d_ising_partition_function/main.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -409,13 +409,13 @@
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "1.11.5"
"version": "1.12.5"
},
"kernelspec": {
"name": "julia-1.11",
"display_name": "Julia 1.11.5",
"name": "julia-1.12",
"display_name": "Julia 1.12.5",
"language": "julia"
}
},
"nbformat": 4
}
}
327 changes: 155 additions & 172 deletions docs/src/examples/bose_hubbard/index.md

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions docs/src/examples/bose_hubbard/main.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
"cell_type": "code",
"source": [
"boundary_alg = (; tol = 1.0e-8, alg = :simultaneous, trunc = (; alg = :fixedspace))\n",
"gradient_alg = (; tol = 1.0e-6, maxiter = 10, alg = :eigsolver, iterscheme = :diffgauge)\n",
"gradient_alg = (; tol = 1.0e-6, maxiter = 10, alg = :linsolver, iterscheme = :fixed)\n",
"optimizer_alg = (; tol = 1.0e-4, alg = :lbfgs, maxiter = 150, ls_maxiter = 2, ls_maxfg = 2);"
],
"metadata": {},
Expand Down Expand Up @@ -247,11 +247,11 @@
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "1.11.7"
"version": "1.12.5"
},
"kernelspec": {
"name": "julia-1.11",
"display_name": "Julia 1.11.7",
"name": "julia-1.12",
"display_name": "Julia 1.12.5",
"language": "julia"
}
},
Expand Down
55 changes: 30 additions & 25 deletions docs/src/examples/boundary_mps/index.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/src/examples/boundary_mps/main.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -390,11 +390,11 @@
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "1.12.2"
"version": "1.12.5"
},
"kernelspec": {
"name": "julia-1.12",
"display_name": "Julia 1.12.2",
"display_name": "Julia 1.12.5",
"language": "julia"
}
},
Expand Down
Loading