Skip to content

Commit 7840ab9

Browse files
committed
modify documentation
1 parent 888e03d commit 7840ab9

File tree

7 files changed

+43
-31
lines changed

7 files changed

+43
-31
lines changed

docs/make.jl

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,15 @@ DocMeta.setdocmeta!(QuantumToolbox, :DocTestSetup, :(using QuantumToolbox); recu
1010

1111
const DRAFT = false # set `true` to disable cell evaluation
1212

13-
bib = CitationBibliography(joinpath(@__DIR__, "src", "bibliography.bib"), style=:authoryear)
13+
bib = CitationBibliography(
14+
joinpath(@__DIR__, "src", "resources", "bibliography.bib"),
15+
style=:authoryear,
16+
)
1417

1518
const PAGES = [
1619
"Home" => "index.md",
1720
"Getting Started" => [
18-
"Introduction" => "getting_started.md",
21+
"Brief Example" => "getting_started.md",
1922
"Key differences from QuTiP" => "qutip_differences.md",
2023
"The Importance of Type-Stability" => "type_stability.md",
2124
# "Cite QuantumToolbox.jl" => "cite.md",
@@ -51,9 +54,11 @@ const PAGES = [
5154
"tutorials/logo.md",
5255
],
5356
],
54-
"API" => "api.md",
55-
"Bibliography" => "bibliography.md",
56-
# "Change Log" => "changelog.md",
57+
"Resources" => [
58+
"API" => "resources/api.md",
59+
# "Change Log" => "resources/changelog.md",
60+
"Bibliography" => "resources/bibliography.md",
61+
],
5762
]
5863

5964
makedocs(;

docs/src/getting_started.md

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,6 @@
22
CurrentModule = QuantumToolbox
33
```
44

5-
## [Installation](@id doc:Installation)
6-
7-
!!! note "Requirements"
8-
`QuantumToolbox.jl` requires `Julia 1.10+`.
9-
10-
To install `QuantumToolbox.jl`, run the following commands inside Julia's interactive session (also known as REPL):
11-
```julia
12-
using Pkg
13-
Pkg.add("QuantumToolbox")
14-
```
15-
Alternatively, this can also be done in Julia's [Pkg REPL](https://julialang.github.io/Pkg.jl/v1/getting-started/) by pressing the key `]` in the REPL to use the package mode, and then type the following command:
16-
```julia-REPL
17-
(1.10) pkg> add QuantumToolbox
18-
```
19-
More information about `Julia`'s package manager can be found at [`Pkg.jl`](https://julialang.github.io/Pkg.jl/v1/).
20-
21-
To load the package and check the version information, use either [`QuantumToolbox.versioninfo()`](@ref) or [`QuantumToolbox.about()`](@ref), namely
22-
```julia
23-
using QuantumToolbox
24-
QuantumToolbox.versioninfo()
25-
QuantumToolbox.about()
26-
```
27-
285
## Brief Example
296

307
We now provide a brief example to demonstrate the similarity between [QuantumToolbox.jl](https://github.com/qutip/QuantumToolbox.jl) and [QuTiP](https://github.com/qutip/qutip).

docs/src/index.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ hero:
1313
- theme: brand
1414
text: Getting Started
1515
link: /getting_started
16+
- theme: alt
17+
text: Users Guide
18+
link: /users_guide/QuantumObject/QuantumObject
1619
- theme: alt
1720
text: View on Github
1821
link: https://github.com/qutip/QuantumToolbox.jl
@@ -37,6 +40,31 @@ features:
3740
---
3841
```
3942

43+
# [Introduction](@id doc:Introduction)
44+
4045
[QuantumToolbox.jl](https://github.com/qutip/QuantumToolbox.jl) is a cutting-edge Julia package designed for quantum physics simulations, closely emulating the popular Python [QuTiP](https://github.com/qutip/qutip) package. It uniquely combines the simplicity and power of Julia with advanced features like GPU acceleration and distributed computing, making simulation of quantum systems more accessible and efficient. Taking advantage of the Julia language features (like multiple dispatch and metaprogramming), QuantumToolbox.jl is designed to be easily extendable, allowing users to build upon the existing functionalities.
4146

4247
*__With this package, moving from Python to Julia for quantum physics simulations has never been easier__*, due to the similar syntax and functionalities.
48+
49+
# [Installation](@id doc:Installation)
50+
51+
!!! note "Requirements"
52+
`QuantumToolbox.jl` requires `Julia 1.10+`.
53+
54+
To install `QuantumToolbox.jl`, run the following commands inside Julia's interactive session (also known as REPL):
55+
```julia
56+
using Pkg
57+
Pkg.add("QuantumToolbox")
58+
```
59+
Alternatively, this can also be done in Julia's [Pkg REPL](https://julialang.github.io/Pkg.jl/v1/getting-started/) by pressing the key `]` in the REPL to use the package mode, and then type the following command:
60+
```julia-REPL
61+
(1.10) pkg> add QuantumToolbox
62+
```
63+
More information about `Julia`'s package manager can be found at [`Pkg.jl`](https://julialang.github.io/Pkg.jl/v1/).
64+
65+
To load the package and check the version information, use either [`QuantumToolbox.versioninfo()`](@ref) or [`QuantumToolbox.about()`](@ref), namely
66+
```julia
67+
using QuantumToolbox
68+
QuantumToolbox.versioninfo()
69+
QuantumToolbox.about()
70+
```

docs/src/api.md renamed to docs/src/resources/api.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ CurrentModule = QuantumToolbox
44

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

7-
## Contents
7+
<!-- Disable this first (until we find a way to fix it)
8+
**Table of contents**
89
910
```@contents
1011
Pages = ["api.md"]
1112
```
13+
-->
1214

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

File renamed without changes.

docs/src/bibliography.md renamed to docs/src/resources/bibliography.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,5 @@
22
CurrentModule = QuantumToolbox
33
```
44

5-
# [Bibliography](@id doc:Bibliography)
6-
75
```@bibliography
86
```

docs/src/users_guide/time_evolution/intro.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
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)
34
**Table of contents**
45
56
```@contents
@@ -14,6 +15,7 @@ Pages = [
1415
]
1516
Depth = 1:2
1617
```
18+
-->
1719

1820
# [Introduction](@id doc-TE:Introduction)
1921

0 commit comments

Comments
 (0)