Skip to content

Commit

Permalink
Restructure documentation
Browse files Browse the repository at this point in the history
Make all pages visible by fixing the `pages` keyword in the `makedocs`
function, rearrange the sections, use the new package name.
  • Loading branch information
phaerrax committed Mar 11, 2024
1 parent dc4ce88 commit c7617c0
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 59 deletions.
17 changes: 11 additions & 6 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@ using LindbladVectorizedTensors
using ITensors
using Documenter

DocMeta.setdocmeta!(LindbladVectorizedTensors, :DocTestSetup, :(using LindbladVectorizedTensors); recursive=true)
DocMeta.setdocmeta!(
LindbladVectorizedTensors,
:DocTestSetup,
:(using LindbladVectorizedTensors);
recursive=true,
)

makedocs(;
modules=[LindbladVectorizedTensors],
checkdocs = :none,
checkdocs=:none,
authors="Davide Ferracin <davide.ferracin@protonmail.com> and contributors",
sitename="LindbladVectorizedTensors.jl",
format=Documenter.HTML(;
Expand All @@ -16,10 +21,10 @@ makedocs(;
),
pages=[
"Home" => "index.md",
"New site types" => "included_site_types.md",
"Examples" => "gksl_example.md",
"Reference" => "physical_operators.md",
],
)

deploydocs(;
repo="github.com/phaerrax/LindbladVectorizedTensors.jl",
devbranch="main",
)
deploydocs(; repo="github.com/phaerrax/LindbladVectorizedTensors.jl", devbranch="main")
2 changes: 1 addition & 1 deletion docs/src/gksl_example.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Application: GKSL equation
# GKSL equation

With the states and operators defined by this package, we can define a Lindbladian
operator acting on density matrices in a GKSL equation.
Expand Down
2 changes: 1 addition & 1 deletion docs/src/included_site_types.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SiteTypes included with PseudomodesTTEDOPA
# SiteTypes included in this package

This package extends the SiteType collection provided by ITensor, by defining types for
(vectorized) density matrices associated to built-in and operators acting on them.
Expand Down
53 changes: 2 additions & 51 deletions docs/src/index.md
Original file line number Diff line number Diff line change
@@ -1,52 +1,3 @@
# PseudomodesTTEDOPA.jl
# LindbladVectorizedTensors.jl

Documentation for PseudomodesTTEDOPA.jl

### Spin chain operators
```@docs
exchange_interaction
exchange_interaction_adjoint
exchange_interaction′
spin_chain
spin_chain_adjoint
spin_chain′
```

### Pseudomode operators
```@docs
dissipator_loss
dissipator_gain
dissipator
mixedlindbladplus
mixedlindbladminus
```

### Markovian closure operators
```@docs
Closure
```
```@docs
closure
```
```@docs
length(mc::Closure)
freqs(mc::Closure)
innercoups(mc::Closure)
outercoups(mc::Closure)
damps(mc::Closure)
freq(mc::Closure, j::Int)
innercoup(mc::Closure, j::Int)
outercoup(mc::Closure, j::Int)
damp(mc::Closure, j::Int)
```

```@docs
closure_op(mc::Closure, sites::Vector{<:Index}, chain_edge_site::Int)
closure_op_adjoint(
mc::Closure, sites::Vector{<:Index}, chain_edge_site::Int, gradefactor::Int
)
closure_op′
filled_closure_op
filled_closure_op_adjoint
filled_closure_op′
```
Documentation for LindbladVectorizedTensors.
50 changes: 50 additions & 0 deletions docs/src/physical_operators.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Physical operators

## Spin chain operators
```@docs
exchange_interaction
exchange_interaction_adjoint
exchange_interaction′
spin_chain
spin_chain_adjoint
spin_chain′
```

## Pseudomode operators
```@docs
dissipator_loss
dissipator_gain
dissipator
mixedlindbladplus
mixedlindbladminus
```

## Markovian closure operators
```@docs
Closure
```
```@docs
closure
```
```@docs
length(mc::Closure)
freqs(mc::Closure)
innercoups(mc::Closure)
outercoups(mc::Closure)
damps(mc::Closure)
freq(mc::Closure, j::Int)
innercoup(mc::Closure, j::Int)
outercoup(mc::Closure, j::Int)
damp(mc::Closure, j::Int)
```

```@docs
closure_op(mc::Closure, sites::Vector{<:Index}, chain_edge_site::Int)
closure_op_adjoint(
mc::Closure, sites::Vector{<:Index}, chain_edge_site::Int, gradefactor::Int
)
closure_op′
filled_closure_op
filled_closure_op_adjoint
filled_closure_op′
```

0 comments on commit c7617c0

Please sign in to comment.