Skip to content

Commit 6711c43

Browse files
Fix Documentation errors
1 parent ca21778 commit 6711c43

File tree

4 files changed

+15
-21
lines changed

4 files changed

+15
-21
lines changed

docs/make.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const PAGES = [
6161
],
6262
],
6363
"API" => "api.md",
64-
"Bibliography" => "bibliography.mb",
64+
"Bibliography" => "bibliography.md",
6565
# "Change Log" => "changelog.md",
6666
]
6767

docs/src/api.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ fidelity
240240
```@docs
241241
Lattice
242242
SingleSiteOperator
243-
Dissipativeising
243+
DissipativeIsing
244244
```
245245

246246
## [Miscellaneous](@id doc-API:Miscellaneous)
@@ -267,10 +267,4 @@ PhysicalConstants
267267
convert_unit
268268
row_major_reshape
269269
meshgrid
270-
_calculate_expectation!
271-
_adjM_condition_variational
272-
_adjM_affect!
273-
_adjM_condition_ratio
274-
_pinv!
275-
dBdz!
276270
```

docs/src/tutorials/lowrank.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Sy = mapreduce(i->SingleSiteOperator(sigmay(), i, latt), +, 1:latt.N)
9090
Sz = mapreduce(i->SingleSiteOperator(sigmaz(), i, latt), +, 1:latt.N)
9191
9292
H, c_ops = DissipativeIsing(Jx, Jy, Jz, hx, hy, hz, γ, latt; boundary_condition = Val(:periodic_bc), order = 1)
93-
e_ops = (Sx, Sy, Sz, SFxx)
93+
e_ops = (Sx, Sy, Sz)
9494
9595
tl = range(0, 10, 100)
9696
nothing # hide

src/time_evolution/lr_mesolve.jl

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ lr_mesolve_options_default = (
6161

6262
select(x::Real, xarr::AbstractArray, retval = false) = retval ? xarr[argmin(abs.(x .- xarr))] : argmin(abs.(x .- xarr))
6363

64-
"""
64+
#=
6565
_pinv_smooth!(A, T1, T2; atol::Real=0.0, rtol::Real=(eps(real(float(oneunit(T))))*min(size(A)...))*iszero(atol)) where T
6666
6767
Computes the pseudo-inverse of a matrix A, and stores it in T1. If T2 is provided, it is used as a temporary matrix.
@@ -75,7 +75,7 @@ The difference with respect to the original function is that the cutoff is done
7575
- `T2::AbstractMatrix`: A temporary matrix.
7676
- `atol::Real`: The absolute tolerance.
7777
- `rtol::Real`: The relative tolerance.
78-
"""
78+
=#
7979
function _pinv_smooth!(
8080
A::AbstractMatrix{T},
8181
T1::AbstractMatrix{T},
@@ -98,7 +98,7 @@ function _pinv_smooth!(
9898
return mul!(T1, SVD.Vt', T2)
9999
end
100100

101-
"""
101+
#=
102102
_calculate_expectation!(p,z,B,idx)
103103
104104
Calculates the expectation values and function values of the operators and functions in p.e_ops and p.f_ops, respectively, and stores them in p.expvals and p.funvals.
@@ -110,7 +110,7 @@ The function is called by the callback _save_affect_lr_mesolve!.
110110
- `z::AbstractMatrix`: The z matrix of the low-rank algorithm.
111111
- `B::AbstractMatrix`: The B matrix of the low-rank algorithm.
112112
- `idx::Integer`: The index of the current time step.
113-
"""
113+
=#
114114
function _calculate_expectation!(p, z, B, idx)
115115
e_ops = p.e_ops
116116
f_ops = p.f_ops
@@ -166,7 +166,7 @@ end
166166
# CALLBACK FUNCTIONS
167167
#=======================================================#
168168

169-
"""
169+
#=
170170
_adjM_condition_ratio(u, t, integrator)
171171
172172
Condition for the dynamical rank adjustment based on the ratio between the smallest and largest eigenvalues of the density matrix.
@@ -177,7 +177,7 @@ The spectrum of the density matrix is calculated efficiently using the propertie
177177
- `u::AbstractVector`: The current state of the system.
178178
- `t::Real`: The current time.
179179
- `integrator::ODEIntegrator`: The integrator of the problem.
180-
"""
180+
=#
181181
function _adjM_condition_ratio(u, t, integrator)
182182
ip = integrator.p
183183
opt = ip.opt
@@ -195,7 +195,7 @@ function _adjM_condition_ratio(u, t, integrator)
195195
return (err >= opt.err_max && M < N && M < opt.M_max)
196196
end
197197

198-
"""
198+
#=
199199
_adjM_condition_variational(u, t, integrator)
200200
201201
Condition for the dynamical rank adjustment based on the leakage out of the low-rank manifold.
@@ -205,7 +205,7 @@ Condition for the dynamical rank adjustment based on the leakage out of the low-
205205
- `u::AbstractVector`: The current state of the system.
206206
- `t::Real`: The current time.
207207
- `integrator::ODEIntegrator`: The integrator of the problem.
208-
"""
208+
=#
209209
function _adjM_condition_variational(u, t, integrator)
210210
ip = integrator.p
211211
opt = ip.opt
@@ -215,7 +215,7 @@ function _adjM_condition_variational(u, t, integrator)
215215
return (err >= opt.err_max && M < N && M < opt.M_max)
216216
end
217217

218-
"""
218+
#=
219219
_adjM_affect!(integrator)
220220
221221
Affect function for the dynamical rank adjustment. It increases the rank of the low-rank manifold by one, and updates the matrices accordingly.
@@ -224,7 +224,7 @@ If Δt>0, it rewinds the integrator to the previous time step.
224224
# Arguments
225225
226226
- `integrator::ODEIntegrator`: The integrator of the problem.
227-
"""
227+
=#
228228
function _adjM_affect!(integrator)
229229
ip = integrator.p
230230
opt = ip.opt
@@ -281,7 +281,7 @@ end
281281
# DYNAMICAL EVOLUTION EQUATIONS
282282
#=======================================================#
283283

284-
"""
284+
#=
285285
dBdz!(du, u, p, t)
286286
287287
Dynamical evolution equations for the low-rank manifold. The function is called by the ODEProblem.
@@ -292,7 +292,7 @@ Dynamical evolution equations for the low-rank manifold. The function is called
292292
- `u::AbstractVector`: The state vector.
293293
- `p::NamedTuple`: The parameters of the problem.
294294
- `t::Real`: The current time.
295-
"""
295+
=#
296296
function dBdz!(du, u, p, t)
297297
#NxN
298298
H, Γ = p.H, p.Γ

0 commit comments

Comments
 (0)