Skip to content

Commit 080d361

Browse files
committed
initial setup + index
1 parent 7463984 commit 080d361

6 files changed

Lines changed: 159 additions & 1 deletion

File tree

‎.github/workflows/PR_comment.yml‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Docs preview comment
2+
on:
3+
pull_request:
4+
types: [labeled]
5+
6+
permissions:
7+
pull-requests: write
8+
jobs:
9+
pr_comment:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Create PR comment
13+
if: github.event_name == 'pull_request' && github.repository == github.event.pull_request.head.repo.full_name && github.event.label.name == 'documentation'
14+
uses: thollander/actions-comment-pull-request@v3
15+
with:
16+
message: 'After the build completes, the updated documentation will be available [here](https://quantumkithub.github.io/MultiTensorKit.jl/previews/PR${{ github.event.number }}/)'
17+
comment-tag: 'preview-doc'

‎.gitignore‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@ Manifest.toml
1111
benchmark/*.json
1212
docs/Manifest.toml
1313
docs/build/
14-
docs/src/index.md

‎docs/Project.toml‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name = "MultiTensorKitDocs"
2+
3+
[deps]
4+
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
5+
DocumenterCitations = "daee34ce-89f3-4625-b898-19384cb65244"
6+
MultiTensorKit = "f0555a46-f681-4ef1-bed5-d64870568636"
7+
8+
[sources]
9+
MultiTensorKit = {path = ".."}
10+
11+
[compat]
12+
Documenter = "1.11"
13+
DocumenterCitations = "1.5"

‎docs/make.jl‎

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
using Documenter
2+
using DocumenterCitations
3+
# using TensorKitSectors, TensorKit
4+
using MultiTensorKit
5+
6+
pages = [
7+
"Home" => "index.md",
8+
"Manual" => ["man/fusioncats.md", "man/multifusioncats.md", "man/extension.md", "man/implementation.md"],
9+
"Library" => "lib/library.md",
10+
"References" => "references.md",
11+
]
12+
13+
# bibliography
14+
bibpath = joinpath(@__DIR__, "src", "assets", "MTKrefs.bib")
15+
bib = CitationBibliography(bibpath; style = :authoryear)
16+
17+
mathengine = MathJax3(
18+
Dict(
19+
:loader => Dict("load" => ["[tex]/physics", "[tex]/mathtools"]),
20+
:tex => Dict(
21+
"inlineMath" => [["\$", "\$"], ["\\(", "\\)"]],
22+
"tags" => "ams",
23+
"packages" => [
24+
"base", "ams", "autoload", "physics",
25+
"mathtools",
26+
]
27+
)
28+
)
29+
)
30+
31+
makedocs(;
32+
sitename = "MultiTensorKit.jl", modules = [MultiTensorKit],
33+
authors = "Boris De Vos, Laurens Lootens and Lukas Devos",
34+
pages = pages, pagesonly = true, plugins = [bib],
35+
format = Documenter.HTML(;
36+
prettyurls = true, mathengine = mathengine,
37+
assets = ["assets/custom.css"]
38+
)
39+
)
40+
41+
deploydocs(; repo = "github.com/QuantumKitHub/MultiTensorKit.jl", push_preview = true)

‎docs/src/assets/custom.css‎

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
.center {
2+
display: block;
3+
margin-left: auto;
4+
margin-right: auto;
5+
}
6+
7+
/* set fixed non-trivial inversion and hue rotation */
8+
:root {
9+
--inversionFraction: 100%;
10+
--hueRotation: -180deg;
11+
}
12+
13+
/* color-invert images */
14+
.color-invertible {
15+
filter: invert(var(--inversionFraction)) hue-rotate(var(--hueRotation)) !important;
16+
-ms-filter: invert(var(--inversionFraction)) !important;
17+
-webkit-filter: invert(var(--inversionFraction)) hue-rotate(var(--hueRotation)) !important;
18+
}
19+
/* including the logo when we make one
20+
.docs-logo {
21+
filter: invert(var(--inversionFraction)) hue-rotate(var(--hueRotation)) !important;
22+
-ms-filter: invert(var(--inversionFraction)) !important;
23+
-webkit-filter: invert(var(--inversionFraction)) hue-rotate(var(--hueRotation)) !important;
24+
} */
25+
26+
/* but disable for the two light themes */
27+
.theme--documenter-light .color-invertible {
28+
filter: invert(0%) hue-rotate(0deg) !important;
29+
-ms-filter: invert(var(0%)) !important;
30+
-webkit-filter: invert(var(0%)) hue-rotate(0deg) !important;
31+
}
32+
.theme--catppuccin-latte .color-invertible {
33+
filter: invert(0%) hue-rotate(0deg) !important;
34+
-ms-filter: invert(var(0%)) !important;
35+
-webkit-filter: invert(var(0%)) hue-rotate(0deg) !important;
36+
}
37+
/* for the logo as well */
38+
/* .theme--documenter-light .docs-logo {
39+
filter: invert(0%) hue-rotate(0deg) !important;
40+
-ms-filter: invert(var(0%)) !important;
41+
-webkit-filter: invert(var(0%)) hue-rotate(0deg) !important;
42+
}
43+
.theme--catppuccin-latte .docs-logo {
44+
filter: invert(0%) hue-rotate(0deg) !important;
45+
-ms-filter: invert(var(0%)) !important;
46+
-webkit-filter: invert(var(0%)) hue-rotate(0deg) !important;
47+
} */

‎docs/src/index.md‎

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# MultiTensorKit
2+
3+
**TensorKit extension to multifusion categories**
4+
5+
## Package summary
6+
MultiTensorKit.jl provides the user a package to work with multifusion categories, the extension of regular fusion categories where the unit is no longer simple and unique.
7+
Multifusion categories naturally embed the structure of module categories over fusion categories.
8+
Hence, MultiTensorKit.jl allows not only the fusion of objects within the same
9+
fusion category (as TensorKit.jl), but also the fusion with and between module categories over these fusion categories.
10+
11+
MultiTensorKit.jl is built to be compatible with TensorKit, thus allowing the construction of symmetric tensors with new symmetries due to the module structure.
12+
Through this,
13+
tensor network simulations of quantum many-body systems with aid of [MPSKit.jl](https://github.com/QuantumKitHub/MPSKit.jl) can be performed.
14+
15+
## Table of contents
16+
17+
```@contents
18+
Pages = ["man/fusioncats.md", "man/multifusioncats.md", "man/extension.md", "man/implementation.md", "lib/library.md", "references.md"]
19+
Depth = 2
20+
```
21+
22+
## Installation
23+
24+
MultiTensorKit.jl is currently not registered to the Julia General Registry.
25+
You can install the package as
26+
```
27+
pkg> add https://github.com/QuantumKitHub/MultiTensorKit.jl.git
28+
```
29+
30+
## Usage
31+
32+
As the name suggests, MultiTensorKit is an extension of [TensorKit.jl](https://github.com/Jutho/TensorKit.jl) and
33+
[TensorKitSectors.jl](https://github.com/QuantumKitHub/TensorKitSectors.jl).
34+
Therefore, we recommend including TensorKit
35+
to your project.
36+
Additionally, MultiTensorKit was made to be functional with [MPSKit.jl](https://github.com/QuantumKitHub/MPSKit.jl)
37+
and [MPSKitModels.jl](https://github.com/QuantumKitHub/MPSKitModels.jl) for Matrix Product State (MPS) calculations, supporting symmetries
38+
which go beyond TensorKit.
39+
In particular, TensorKit v0.16.0 and MPSKit v0.13.9 contain the necessary functionality to deal with the multifusion categorical structure provided by MultiTensorKit.
40+
All these packages are registered in JuliaRegistries and can be added through the package manager.
41+

0 commit comments

Comments
 (0)