Skip to content

Commit 34d296c

Browse files
committed
update footer and fix toc
1 parent e02ec50 commit 34d296c

File tree

6 files changed

+35
-31
lines changed

6 files changed

+35
-31
lines changed

docs/src/.vitepress/config.mts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ export default defineConfig({
2828

2929
markdown: {
3030
math: true,
31+
32+
// options for @mdit-vue/plugin-toc
33+
// https://github.com/mdit-vue/mdit-vue/tree/main/packages/plugin-toc#options
34+
toc: { level: [1, 2] },
35+
3136
config(md) {
3237
md.use(tabsMarkdownPlugin),
3338
md.use(mathjax3),
@@ -54,8 +59,8 @@ export default defineConfig({
5459
{ icon: 'github', link: 'REPLACE_ME_DOCUMENTER_VITEPRESS' }
5560
],
5661
footer: {
57-
message: 'Made with <a href="https://luxdl.github.io/DocumenterVitepress.jl/dev/" target="_blank"><strong>DocumenterVitepress.jl</strong></a><br>',
58-
copyright: `© Copyright ${new Date().getUTCFullYear()}.`
62+
message: 'Made with <a href="https://documenter.juliadocs.org/stable/" target="_blank"><strong>Documenter.jl</strong></a>, <a href="https://vitepress.dev" target="_blank"><strong>VitePress</strong></a> and <a href="https://luxdl.github.io/DocumenterVitepress.jl/stable" target="_blank"><strong>DocumenterVitepress.jl</strong></a><br>Released under the BSD 3-Clause License. Powered by the <a href="https://www.julialang.org" target="_blank">Julia Programming Language</a>.<br>',
63+
copyright: `© Copyright ${new Date().getUTCFullYear()} <a href="https://qutip.org/" target="_blank"><strong>QuTiP.org</strong></a>.`
5964
}
6065
}
6166
})

docs/src/resources/api.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,9 @@ CurrentModule = QuantumToolbox
44

55
# [API](@id doc-API)
66

7-
<!-- Disable this first (until we find a way to fix it)
87
**Table of contents**
98

10-
```@contents
11-
Pages = ["api.md"]
12-
```
13-
-->
9+
[[toc]]
1410

1511
## [Quantum object (Qobj) and type](@id doc-API:Quantum-object-and-type)
1612

docs/src/users_guide/time_evolution/intro.md

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11
# [Time Evolution and Quantum System Dynamics](@id doc:Time-Evolution-and-Quantum-System-Dynamics)
22

3-
<!-- Disable this first (until we find a way to fix it)
43
**Table of contents**
54

6-
```@contents
7-
Pages = [
8-
"intro.md",
9-
"solution.md",
10-
"sesolve.md",
11-
"mesolve.md",
12-
"mcsolve.md",
13-
"stochastic.md",
14-
"time_dependent.md",
15-
]
16-
Depth = 1:2
17-
```
18-
-->
5+
- [Introduction](@ref doc-TE:Introduction)
6+
- [Time Evolution Solutions](@ref doc-TE:Time-Evolution-Solutions)
7+
- [Solution](@ref doc-TE:Solution)
8+
- [Multiple trajectories solution](@ref doc-TE:Multiple-trajectories-solution)
9+
- [Accessing data in solutions](@ref doc-TE:Accessing-data-in-solutions)
10+
- [Schrödinger Equation Solver](@ref doc-TE:Schrödinger-Equation-Solver)
11+
- [Unitary evolution](@ref doc-TE:Unitary-evolution)
12+
- [Example: Spin dynamics](@ref doc-TE:Example:Spin-dynamics)
13+
- [Lindblad Master Equation Solver](@ref doc-TE:Lindblad-Master-Equation-Solver)
14+
- [Von Neumann equation](@ref doc-TE:Von-Neumann-equation)
15+
- [The Lindblad master equation](@ref doc-TE:The-Lindblad-master-equation)
16+
- [Example: Dissipative Spin dynamics](@ref doc-TE:Example:Dissipative-Spin-dynamics)
17+
- [Example: Harmonic oscillator in thermal bath](@ref doc-TE:Example:Harmonic-oscillator-in-thermal-bath)
18+
- [Example: Two-level atom coupled to dissipative single-mode cavity](@ref doc-TE:Example:Two-level-atom-coupled-to-dissipative-single-mode-cavity)
19+
- [Monte-Carlo Solver](@ref doc-TE:Monte-Carlo-Solver)
20+
- [Stochastic Solver](@ref doc-TE:Stochastic-Solver)
21+
- [Solving Problems with Time-dependent Hamiltonians](@ref doc-TE:Solving-Problems-with-Time-dependent-Hamiltonians)
1922

2023
# [Introduction](@id doc-TE:Introduction)
2124

docs/src/users_guide/time_evolution/mesolve.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using QuantumToolbox
55
```
66

7-
## Von Neumann equation
7+
## [Von Neumann equation](@id doc-TE:Von-Neumann-equation)
88

99
While the evolution of the state vector in a closed quantum system is deterministic (as we discussed in the previous section: [Schrödinger Equation Solver](@ref doc-TE:Schrödinger-Equation-Solver)), open quantum systems are stochastic in nature. The effect of an environment on the system of interest is to induce stochastic transitions between energy levels, and to introduce uncertainty in the phase difference between states of the system. The state of an open quantum system is therefore described in terms of ensemble averaged states using the density matrix formalism. A density matrix ``\hat{\rho}`` describes a probability distribution of quantum states ``|\psi_n\rangle`` in a matrix representation, namely
1010

@@ -62,7 +62,7 @@ sol.expect
6262
sol.states
6363
```
6464

65-
## The Lindblad master equation
65+
## [The Lindblad master equation](@id doc-TE:The-Lindblad-master-equation)
6666

6767
The standard approach for deriving the equations of motion for a system interacting with its environment is to expand the scope of the system to include the environment. The combined quantum system is then closed, and its evolution is governed by the von Neumann equation given in Eq. \eqref{von-Neumann-Eq}
6868

@@ -108,7 +108,7 @@ Furthermore, `QuantumToolbox` solves the master equation in the [`SuperOperator`
108108
- [`liouvillian`](@ref)
109109
- [`lindblad_dissipator`](@ref)
110110

111-
## Example: Spin dynamics
111+
## [Example: Dissipative Spin dynamics](@id doc-TE:Example:Dissipative-Spin-dynamics)
112112

113113
Using the example with the dynamics of spin-``\frac{1}{2}`` from the previous section ([Schrödinger Equation Solver](@ref doc-TE:Schrödinger-Equation-Solver)), we can easily add a relaxation process (describing the dissipation of energy from the spin to the environment), by adding `[sqrt(γ) * sigmax()]` in the fourth parameter of the [`mesolve`](@ref) function.
114114

@@ -143,7 +143,7 @@ axislegend(ax, position = :rt)
143143
fig
144144
```
145145

146-
## Example: Harmonic oscillator in thermal bath
146+
## [Example: Harmonic oscillator in thermal bath](@id doc-TE:Example:Harmonic-oscillator-in-thermal-bath)
147147

148148
Consider a harmonic oscillator (single-mode cavity) couples to a thermal bath. If the single-mode cavity initially is in a `10`-photon [`fock`](@ref) state, the dynamics is calculated with the following code:
149149

@@ -181,7 +181,7 @@ lines!(ax, tlist, Num)
181181
fig
182182
```
183183

184-
## Example: Two-level atom coupled to dissipative single-mode cavity
184+
## [Example: Two-level atom coupled to dissipative single-mode cavity](@id doc-TE:Example:Two-level-atom-coupled-to-dissipative-single-mode-cavity)
185185

186186
Consider a two-level atom coupled to a dissipative single-mode cavity through a dipole-type interaction, which supports a coherent exchange of quanta between the two systems. If the atom initially is in its ground state and the cavity in a `5`-photon [`fock`](@ref) state, the dynamics is calculated with the following code:
187187

docs/src/users_guide/time_evolution/sesolve.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# [Schrödinger Equation Solver](@id doc-TE:Schrödinger-Equation-Solver)
22

3-
## Unitary evolution
3+
## [Unitary evolution](@id doc-TE:Unitary-evolution)
44

55
The dynamics of a closed (pure) quantum system is governed by the Schrödinger equation
66

@@ -19,7 +19,7 @@ where ``|\psi(t)\rangle`` is the state vector, and the Hamiltonian ``\hat{H}`` i
1919

2020
The Schrödinger equation, which governs the time-evolution of closed quantum systems, is defined by its Hamiltonian and state vector. In the previous sections, [Manipulating States and Operators](@ref doc:Manipulating-States-and-Operators) and [Tensor Products and Partial Traces](@ref doc:Tensor-products-and-Partial-Traces), we showed how Hamiltonians and state vectors are constructed in `QuantumToolbox.jl`. Given a Hamiltonian, we can calculate the unitary (non-dissipative) time-evolution of an arbitrary initial state vector ``|\psi(0)\rangle`` using the `QuantumToolbox` time evolution problem [`sesolveProblem`](@ref) or directly call the function [`sesolve`](@ref). It evolves the state vector ``|\psi(t)\rangle`` and evaluates the expectation values for a set of operators `e_ops` at each given time points, using an ordinary differential equation solver provided by the powerful julia package [`DifferentialEquation.jl`](https://docs.sciml.ai/DiffEqDocs/stable/).
2121

22-
## Example: Spin dynamics
22+
## [Example: Spin dynamics](@id doc-TE:Example:Spin-dynamics)
2323

2424
```@setup sesolve
2525
using QuantumToolbox

docs/src/users_guide/time_evolution/solution.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using QuantumToolbox
55
```
66

7-
## Solution
7+
## [Solution](@id doc-TE:Solution)
88
`QuantumToolbox` utilizes the powerful [`DifferentialEquation.jl`](https://docs.sciml.ai/DiffEqDocs/stable/) to simulate different kinds of quantum system dynamics. Thus, we will first look at the data structure used for returning the solution (`sol`) from [`DifferentialEquation.jl`](https://docs.sciml.ai/DiffEqDocs/stable/). The solution stores all the crucial data needed for analyzing and plotting the results of a simulation. A generic structure [`TimeEvolutionSol`](@ref) contains the following properties for storing simulation data:
99

1010
| **Fields (Attributes)** | **Description** |
@@ -17,7 +17,7 @@ using QuantumToolbox
1717
| `sol.reltol` | The relative tolerance which is used during the solving process. |
1818
| `sol.retcode` (or `sol.converged`) | The returned status from the solver. |
1919

20-
## Accessing data in solutions
20+
## [Accessing data in solutions](@id doc-TE:Accessing-data-in-solutions)
2121

2222
To understand how to access the data in solution, we will use an example as a guide, although we do not worry about the simulation details at this stage. The Schrödinger equation solver ([`sesolve`](@ref)) used in this example returns [`TimeEvolutionSol`](@ref):
2323

@@ -86,6 +86,6 @@ Here, the solution contains only one (final) state. Because the `states` will be
8686

8787
Some other solvers can have other output.
8888

89-
## Multiple trajectories solution
89+
## [Multiple trajectories solution](@id doc-TE:Multiple-trajectories-solution)
9090

9191
This part is still under construction, please visit [API](@ref doc-API) first.

0 commit comments

Comments
 (0)