Skip to content

Commit f449fc9

Browse files
committed
Fix typos
1 parent ea30799 commit f449fc9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/src/man/algorithms.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,22 +234,22 @@ often referred to as the 'Chepiga ansatz', named after one of the authors of thi
234234
This is supported via the following syntax:
235235

236236
```@example excitations
237-
g = 1.0
237+
g = 10.0
238238
L = 16
239239
H = transverse_field_ising(FiniteChain(L); g)
240240
ψ₀ = FiniteMPS(L, ComplexSpace(2), ComplexSpace(32))
241241
ψ, envs, = find_groundstate(ψ₀, H; verbosity=0)
242242
E₀ = real(sum(expectation_value(ψ, H, envs)))
243243
Es, ϕs = excitations(H, ChepigaAnsatz(), ψ, envs; num=1)
244-
isapprox(Es[1], 2(g - 1); rtol=1e-2) # infinite analytical result
244+
isapprox(Es[1] - E₀, 2(g - 1); rtol=1e-2) # infinite analytical result
245245
```
246246

247247
In order to improve the accuracy, a two-site version also exists, which varies two
248248
neighbouring sites:
249249

250250
```@example excitations
251251
Es, ϕs = excitations(H, ChepigaAnsatz2(), ψ, envs; num=1)
252-
isapprox(Es[1], 2(g - 1); rtol=1e-2) # infinite analytical result
252+
isapprox(Es[1] - E₀, 2(g - 1); rtol=1e-2) # infinite analytical result
253253
```
254254

255255
## `changebonds`

docs/src/man/states.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ state = InfiniteMPS(phys_spaces, virt_spaces)
117117

118118
Note that the code above creates an `InfiniteMPS` with a two-site unit cell, where the given virtual spaces are located to the right of their respective sites.
119119

120-
### Gauging
120+
### Gauging and canonical forms
121121

122122
Much like for `FiniteMPS`, we can again query the gauged tensors `AL`, `AR`, `C` and `AC`.
123123
Here however, the implementation is much easier, since they all have to be recomputed whenever a single tensor changes.

0 commit comments

Comments
 (0)