Skip to content

Commit dafeb34

Browse files
committed
Fix docs
1 parent 6c1db64 commit dafeb34

File tree

4 files changed

+76
-71
lines changed

4 files changed

+76
-71
lines changed

docs/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
33
HDF5 = "f67ccb44-e63f-5c2f-98bd-6dc0ccc4ba2f"
44
ITensorMPS = "0d1a4710-d33b-49a5-8f18-73bdf49b47e2"
5+
ITensors = "9136182c-28ba-11e9-034c-db9fb085ebd5"
56
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
67
Strided = "5e0ebb24-38b0-5f93-81fe-25c709ecae67"
78

docs/settings.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
using Documenter
22
using ITensors
3-
using ITensorMPS: ITensorMPS
3+
using ITensorMPS
44

5+
# Allows using ITensorMPS.jl docstrings in ITensors.jl documentation:
6+
# https://github.com/JuliaDocs/Documenter.jl/issues/1734
57
DocMeta.setdocmeta!(ITensors, :DocTestSetup, :(using ITensors); recursive=true)
68
DocMeta.setdocmeta!(ITensorMPS, :DocTestSetup, :(using ITensorMPS); recursive=true)
79

810
sitename = "ITensors.jl"
911

1012
settings = Dict(
13+
# Allows using ITensorMPS.jl docstrings in ITensors.jl documentation:
14+
# https://github.com/JuliaDocs/Documenter.jl/issues/1734
1115
:modules => [ITensors, ITensorMPS],
1216
:pages => [
1317
"Introduction" => "index.md",

docs/src/DMRG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# DMRG
22

33
```@docs
4-
ITensorMPS.dmrg
4+
dmrg
55
```

docs/src/MPSandMPO.md

Lines changed: 69 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -32,125 +32,125 @@ MPO(::Type{<:Number}, ::Vector{<:Index}, ::String)
3232
## Copying behavior
3333

3434
```@docs
35-
copy(::ITensors.AbstractMPS)
36-
deepcopy(::ITensors.AbstractMPS)
35+
copy(::ITensorMPS.AbstractMPS)
36+
deepcopy(::ITensorMPS.AbstractMPS)
3737
```
3838

3939
## Properties
4040

4141
```@docs
42-
eltype(::ITensors.AbstractMPS)
43-
flux(::ITensors.AbstractMPS)
44-
hasqns(::ITensors.AbstractMPS)
45-
length(::ITensors.AbstractMPS)
46-
maxlinkdim(::ITensors.AbstractMPS)
42+
eltype(::ITensorMPS.AbstractMPS)
43+
flux(::ITensorMPS.AbstractMPS)
44+
hasqns(::ITensorMPS.AbstractMPS)
45+
length(::ITensorMPS.AbstractMPS)
46+
maxlinkdim(::ITensorMPS.AbstractMPS)
4747
```
4848

4949
## Obtaining and finding indices
5050

5151
```@docs
52-
siteinds(::typeof(commoninds), ::ITensors.AbstractMPS, ::ITensors.AbstractMPS, ::Int)
53-
siteinds(::typeof(uniqueinds), ::ITensors.AbstractMPS, ::ITensors.AbstractMPS, ::Int)
52+
siteinds(::typeof(commoninds), ::ITensorMPS.AbstractMPS, ::ITensorMPS.AbstractMPS, ::Int)
53+
siteinds(::typeof(uniqueinds), ::ITensorMPS.AbstractMPS, ::ITensorMPS.AbstractMPS, ::Int)
5454
findsite
5555
findsites
5656
firstsiteinds
57-
linkind(::ITensors.AbstractMPS,::Int)
57+
linkind(::ITensorMPS.AbstractMPS,::Int)
5858
siteind(::MPS, ::Int)
5959
siteind(::typeof(first), ::MPS, ::Int)
6060
siteinds(::MPS)
6161
siteind(::MPO, ::Int)
6262
siteinds(::MPO)
63-
siteinds(::ITensors.AbstractMPS, ::Int)
63+
siteinds(::ITensorMPS.AbstractMPS, ::Int)
6464
```
6565

6666
## Priming and tagging
6767

6868
```@docs
69-
prime(::ITensors.AbstractMPS)
70-
prime(::typeof(siteinds), ::ITensors.AbstractMPS)
71-
prime(::typeof(linkinds), ::ITensors.AbstractMPS)
72-
prime(::typeof(siteinds), ::typeof(commoninds), ::ITensors.AbstractMPS, ::ITensors.AbstractMPS)
73-
prime(::typeof(siteinds), ::typeof(uniqueinds), ::ITensors.AbstractMPS, ::ITensors.AbstractMPS)
74-
75-
swapprime(::ITensors.AbstractMPS, args...; kwargs...)
76-
77-
setprime(::ITensors.AbstractMPS)
78-
setprime(::typeof(siteinds), ::ITensors.AbstractMPS)
79-
setprime(::typeof(linkinds), ::ITensors.AbstractMPS)
80-
setprime(::typeof(siteinds), ::typeof(commoninds), ::ITensors.AbstractMPS, ::ITensors.AbstractMPS)
81-
setprime(::typeof(siteinds), ::typeof(uniqueinds), ::ITensors.AbstractMPS, ::ITensors.AbstractMPS)
82-
83-
noprime(::ITensors.AbstractMPS)
84-
noprime(::typeof(siteinds), ::ITensors.AbstractMPS)
85-
noprime(::typeof(linkinds), ::ITensors.AbstractMPS)
86-
noprime(::typeof(siteinds), ::typeof(commoninds), ::ITensors.AbstractMPS, ::ITensors.AbstractMPS)
87-
noprime(::typeof(siteinds), ::typeof(uniqueinds), ::ITensors.AbstractMPS, ::ITensors.AbstractMPS)
88-
89-
addtags(::ITensors.AbstractMPS)
90-
addtags(::typeof(siteinds), ::ITensors.AbstractMPS)
91-
addtags(::typeof(linkinds), ::ITensors.AbstractMPS)
92-
addtags(::typeof(siteinds), ::typeof(commoninds), ::ITensors.AbstractMPS, ::ITensors.AbstractMPS)
93-
addtags(::typeof(siteinds), ::typeof(uniqueinds), ::ITensors.AbstractMPS, ::ITensors.AbstractMPS)
94-
95-
removetags(::ITensors.AbstractMPS)
96-
removetags(::typeof(siteinds), ::ITensors.AbstractMPS)
97-
removetags(::typeof(linkinds), ::ITensors.AbstractMPS)
98-
removetags(::typeof(siteinds), ::typeof(commoninds), ::ITensors.AbstractMPS, ::ITensors.AbstractMPS)
99-
removetags(::typeof(siteinds), ::typeof(uniqueinds), ::ITensors.AbstractMPS, ::ITensors.AbstractMPS)
100-
101-
replacetags(::ITensors.AbstractMPS)
102-
replacetags(::typeof(siteinds), ::ITensors.AbstractMPS)
103-
replacetags(::typeof(linkinds), ::ITensors.AbstractMPS)
104-
replacetags(::typeof(siteinds), ::typeof(commoninds), ::ITensors.AbstractMPS, ::ITensors.AbstractMPS)
105-
replacetags(::typeof(siteinds), ::typeof(uniqueinds), ::ITensors.AbstractMPS, ::ITensors.AbstractMPS)
106-
107-
settags(::ITensors.AbstractMPS)
108-
settags(::typeof(siteinds), ::ITensors.AbstractMPS)
109-
settags(::typeof(linkinds), ::ITensors.AbstractMPS)
110-
settags(::typeof(siteinds), ::typeof(commoninds), ::ITensors.AbstractMPS, ::ITensors.AbstractMPS)
111-
settags(::typeof(siteinds), ::typeof(uniqueinds), ::ITensors.AbstractMPS, ::ITensors.AbstractMPS)
69+
prime(::ITensorMPS.AbstractMPS)
70+
prime(::typeof(siteinds), ::ITensorMPS.AbstractMPS)
71+
prime(::typeof(linkinds), ::ITensorMPS.AbstractMPS)
72+
prime(::typeof(siteinds), ::typeof(commoninds), ::ITensorMPS.AbstractMPS, ::ITensorMPS.AbstractMPS)
73+
prime(::typeof(siteinds), ::typeof(uniqueinds), ::ITensorMPS.AbstractMPS, ::ITensorMPS.AbstractMPS)
74+
75+
swapprime(::ITensorMPS.AbstractMPS, args...; kwargs...)
76+
77+
setprime(::ITensorMPS.AbstractMPS)
78+
setprime(::typeof(siteinds), ::ITensorMPS.AbstractMPS)
79+
setprime(::typeof(linkinds), ::ITensorMPS.AbstractMPS)
80+
setprime(::typeof(siteinds), ::typeof(commoninds), ::ITensorMPS.AbstractMPS, ::ITensorMPS.AbstractMPS)
81+
setprime(::typeof(siteinds), ::typeof(uniqueinds), ::ITensorMPS.AbstractMPS, ::ITensorMPS.AbstractMPS)
82+
83+
noprime(::ITensorMPS.AbstractMPS)
84+
noprime(::typeof(siteinds), ::ITensorMPS.AbstractMPS)
85+
noprime(::typeof(linkinds), ::ITensorMPS.AbstractMPS)
86+
noprime(::typeof(siteinds), ::typeof(commoninds), ::ITensorMPS.AbstractMPS, ::ITensorMPS.AbstractMPS)
87+
noprime(::typeof(siteinds), ::typeof(uniqueinds), ::ITensorMPS.AbstractMPS, ::ITensorMPS.AbstractMPS)
88+
89+
addtags(::ITensorMPS.AbstractMPS)
90+
addtags(::typeof(siteinds), ::ITensorMPS.AbstractMPS)
91+
addtags(::typeof(linkinds), ::ITensorMPS.AbstractMPS)
92+
addtags(::typeof(siteinds), ::typeof(commoninds), ::ITensorMPS.AbstractMPS, ::ITensorMPS.AbstractMPS)
93+
addtags(::typeof(siteinds), ::typeof(uniqueinds), ::ITensorMPS.AbstractMPS, ::ITensorMPS.AbstractMPS)
94+
95+
removetags(::ITensorMPS.AbstractMPS)
96+
removetags(::typeof(siteinds), ::ITensorMPS.AbstractMPS)
97+
removetags(::typeof(linkinds), ::ITensorMPS.AbstractMPS)
98+
removetags(::typeof(siteinds), ::typeof(commoninds), ::ITensorMPS.AbstractMPS, ::ITensorMPS.AbstractMPS)
99+
removetags(::typeof(siteinds), ::typeof(uniqueinds), ::ITensorMPS.AbstractMPS, ::ITensorMPS.AbstractMPS)
100+
101+
replacetags(::ITensorMPS.AbstractMPS)
102+
replacetags(::typeof(siteinds), ::ITensorMPS.AbstractMPS)
103+
replacetags(::typeof(linkinds), ::ITensorMPS.AbstractMPS)
104+
replacetags(::typeof(siteinds), ::typeof(commoninds), ::ITensorMPS.AbstractMPS, ::ITensorMPS.AbstractMPS)
105+
replacetags(::typeof(siteinds), ::typeof(uniqueinds), ::ITensorMPS.AbstractMPS, ::ITensorMPS.AbstractMPS)
106+
107+
settags(::ITensorMPS.AbstractMPS)
108+
settags(::typeof(siteinds), ::ITensorMPS.AbstractMPS)
109+
settags(::typeof(linkinds), ::ITensorMPS.AbstractMPS)
110+
settags(::typeof(siteinds), ::typeof(commoninds), ::ITensorMPS.AbstractMPS, ::ITensorMPS.AbstractMPS)
111+
settags(::typeof(siteinds), ::typeof(uniqueinds), ::ITensorMPS.AbstractMPS, ::ITensorMPS.AbstractMPS)
112112
```
113113

114114
## Operations
115115

116116
```@docs
117117
expect(::MPS, ::Any)
118118
correlation_matrix(::MPS, ::AbstractString, ::AbstractString)
119-
dag(::ITensors.AbstractMPS)
120-
dense(::ITensors.AbstractMPS)
121-
movesite(::ITensors.AbstractMPS, ::Pair{Int, Int};orthocenter::Int,kwargs...)
119+
dag(::ITensorMPS.AbstractMPS)
120+
dense(::ITensorMPS.AbstractMPS)
121+
movesite(::ITensorMPS.AbstractMPS, ::Pair{Int, Int};orthocenter::Int,kwargs...)
122122
orthogonalize!
123123
replacebond!(::MPS, ::Int, ::ITensor)
124124
sample(::MPS)
125125
sample!(::MPS)
126126
sample(::MPO)
127-
swapbondsites(::ITensors.AbstractMPS, ::Int; kwargs...)
127+
swapbondsites(::ITensorMPS.AbstractMPS, ::Int; kwargs...)
128128
truncate!
129129
```
130130

131131
## Gate evolution
132132

133133
```@docs
134-
product(::ITensor, ::ITensors.AbstractMPS)
135-
product(::Vector{ITensor}, ::ITensors.AbstractMPS)
134+
product(::ITensor, ::ITensorMPS.AbstractMPS)
135+
product(::Vector{ITensor}, ::ITensorMPS.AbstractMPS)
136136
```
137137

138138
## Algebra Operations
139139

140140
```@docs
141-
inner(::MPST, ::MPST) where {MPST <: ITensors.AbstractMPS}
142-
dot(::MPST, ::MPST) where {MPST <: ITensors.AbstractMPS}
143-
loginner(::MPST, ::MPST) where {MPST <: ITensors.AbstractMPS}
144-
logdot(::MPST, ::MPST) where {MPST <: ITensors.AbstractMPS}
141+
inner(::MPST, ::MPST) where {MPST <: ITensorMPS.AbstractMPS}
142+
dot(::MPST, ::MPST) where {MPST <: ITensorMPS.AbstractMPS}
143+
loginner(::MPST, ::MPST) where {MPST <: ITensorMPS.AbstractMPS}
144+
logdot(::MPST, ::MPST) where {MPST <: ITensorMPS.AbstractMPS}
145145
inner(::MPS, ::MPO, ::MPS)
146146
dot(::MPS, ::MPO, ::MPS)
147147
inner(::MPO, ::MPS, ::MPO, ::MPS)
148148
dot(::MPO, ::MPS, ::MPO, ::MPS)
149-
norm(::ITensors.AbstractMPS)
150-
normalize(::ITensors.AbstractMPS)
151-
normalize!(::ITensors.AbstractMPS)
152-
lognorm(::ITensors.AbstractMPS)
153-
+(::ITensors.AbstractMPS...)
149+
norm(::ITensorMPS.AbstractMPS)
150+
normalize(::ITensorMPS.AbstractMPS)
151+
normalize!(::ITensorMPS.AbstractMPS)
152+
lognorm(::ITensorMPS.AbstractMPS)
153+
+(::ITensorMPS.AbstractMPS...)
154154
contract(::MPO, ::MPS)
155155
apply(::MPO, ::MPS)
156156
contract(::MPO, ::MPO)

0 commit comments

Comments
 (0)