Skip to content

Commit ad5d17f

Browse files
committed
Update documenter to v1
1 parent f809569 commit ad5d17f

File tree

6 files changed

+41
-10
lines changed

6 files changed

+41
-10
lines changed

docs/Project.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
[deps]
22
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
3+
MPSKit = "bb1c41ca-d63c-52ed-829e-0820dda26502"
4+
MPSKitModels = "ca635005-6f8c-4cd1-b51d-8491250ef2ab"
35

46
[compat]
5-
Documenter = "0.25 - 0.30"
7+
Documenter = "1"

docs/make.jl

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
# if examples is not the current active environment, switch to it
2+
if Base.active_project() != joinpath(@__DIR__, "Project.toml")
3+
using Pkg
4+
Pkg.activate(@__DIR__)
5+
Pkg.develop(PackageSpec(; path=(@__DIR__) * "/../"))
6+
Pkg.resolve()
7+
Pkg.instantiate()
8+
end
9+
110
using Documenter
211
using MPSKitModels
312

@@ -13,6 +22,7 @@ makedocs(;
1322
"man/mpoham.md",
1423
"man/lattices.md",
1524
"man/models.md"],
16-
"Index" => "package_index.md"])
25+
"Index" => "package_index.md"],
26+
checkdocs=:public)
1727

1828
deploydocs(; repo="github.com/QuantumKitHub/MPSKitModels.jl.git")

docs/src/man/lattices.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ In order to facilitate this mapping, the combination of the `@mpoham` macro and
1010
```@docs
1111
AbstractLattice
1212
FiniteChain
13+
FiniteCylinder
14+
FiniteStrip
1315
InfiniteChain
1416
InfiniteCylinder
1517
InfiniteHelix
@@ -26,6 +28,7 @@ LatticePoint
2628
linearize_index
2729
vertices
2830
nearest_neighbours
31+
next_nearest_neighbours
2932
bipartition
3033
```
3134

@@ -39,4 +42,4 @@ Any mapping of linear indices can be used, but the following patterns can be hel
3942
```@docs
4043
backandforth_pattern
4144
frontandback_pattern
42-
```
45+
```

docs/src/man/models.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ CurrentModule = MPSKitModels
99
```@docs
1010
transverse_field_ising
1111
kitaev_model
12+
quantum_potts
1213
heisenberg_XXX
1314
heisenberg_XXZ
1415
heisenberg_XYZ
1516
bilinear_biquadratic_model
17+
tj_model
1618
hubbard_model
1719
bose_hubbard_model
1820
quantum_chemistry_hamiltonian
@@ -25,4 +27,4 @@ classical_ising
2527
sixvertex
2628
hard_hexagon
2729
qstate_clock
28-
```
30+
```

docs/src/man/mpoham.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# The `@mpoham` macro
22

33
```@meta
4-
CurrentModule = TensorKit
4+
CurrentModule = MPSKitModels
55
```
66

77
When dealing with (quasi-) one-dimensional systems that are defined by a sum of local operators, a convenient representation exists in terms of a sparse matrix product operator with an upper diagonal structure (`MPOHamiltonian`).
@@ -10,3 +10,10 @@ The generation of such an object starting from a sum of local operators is facil
1010
```@docs
1111
@mpoham
1212
```
13+
14+
Internally, the macro generates operators that have some knowledge of the lattice structure, through the following structures:
15+
16+
```@docs
17+
LocalOperator
18+
SumOfLocalOperators
19+
```

docs/src/man/operators.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ S_zz
3434
S_plusmin
3535
S_minplus
3636
S_exchange
37+
spinmatrices
3738
```
3839

3940
For convenience, the Pauli matrices can also be recovered as ``σⁱ = 2 Sⁱ``.
@@ -62,6 +63,8 @@ Supported values of `symmetry` for the `X` operator are `Trivial` and `ZNIrrep{Q
6263
potts_X
6364
potts_Z
6465
potts_ZZ
66+
potts_field
67+
weyl_heisenberg_matrices
6568
```
6669

6770
## Bosonic operators
@@ -102,8 +105,12 @@ c_number
102105

103106
Spinful fermions.
104107

105-
```@docs
106-
e_plus
107-
e_min
108-
e_number
109-
```
108+
```@autodocs
109+
Modules = [MPSKitModels.HubbardOperators]
110+
```
111+
112+
TJ-model operators.
113+
114+
```@autodocs
115+
Modules = [MPSKitModels.TJOperators]
116+
```

0 commit comments

Comments
 (0)