Skip to content

Commit 980fe55

Browse files
lkdvosJutho
andauthored
Docfixes and v0.14.10 bump (#282)
* More linkupdates * use Base.showerror * Add missing HomSpace constructors * format and update tutorial * format and update spaces * format and update sectors * update docs Project * format and update tensors * Bump v0.14.10 * Add PR comment action * Apply suggestions from code review Co-authored-by: Jutho <[email protected]> * Add CategoryData.jl link --------- Co-authored-by: Jutho <[email protected]>
1 parent 02676d0 commit 980fe55

File tree

15 files changed

+420
-389
lines changed

15 files changed

+420
-389
lines changed

.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/TensorKit.jl/previews/PR${{ github.event.number }}/)'
17+
comment-tag: 'preview-doc'

CITATION.cff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ authors:
88
given-names: "Jutho"
99
orcid: "https://orcid.org/0000-0002-0858-291X"
1010
title: "TensorKit.jl"
11-
version: "0.14.9"
11+
version: "0.14.10"
1212
doi: "10.5281/zenodo.8421339"
1313
date-released: "2025-07-18"
14-
url: "https://github.com/Jutho/TensorKit.jl"
14+
url: "https://github.com/QuantumKitHub/TensorKit.jl"
1515
preferred-citation:
1616
type: article
1717
authors:

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "TensorKit"
22
uuid = "07d1fe3e-3e46-537d-9eac-e9e13d0d4cec"
33
authors = ["Jutho Haegeman"]
4-
version = "0.14.9"
4+
version = "0.14.10"
55

66
[deps]
77
LRUCache = "8ac3fa9e-de4c-5943-b1dc-09c6b5f20637"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ A Julia package for large-scale tensor computations, with a hint of category the
3232
[ci-img]: https://github.com/QuantumKitHub/TensorKit.jl/actions/workflows/CI.yml/badge.svg
3333
[ci-url]: https://github.com/QuantumKitHub/TensorKit.jl/actions/workflows/CI.yml
3434

35-
[codecov-img]: https://codecov.io/gh/QuantumKitHub/TensorKit.jl/branch/master/graph/badge.svg
35+
[codecov-img]: https://codecov.io/gh/QuantumKitHub/TensorKit.jl/branch/main/graph/badge.svg
3636
[codecov-url]: https://codecov.io/gh/QuantumKitHub/TensorKit.jl
3737

3838
[aqua-img]: https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg

benchmark/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ To do this, you can use the `--modules` flag to specify which modules to run.
1212
Alternatively, you can use the `TensorKitBenchmarks` module directly, which is designed after `BaseBenchmarks` to allow for conditional loading of the benchmarks.
1313

1414
For a more streamlined CLI experience, you can use [`AirspeedVelocity.jl`](https://github.com/MilesCranmer/AirspeedVelocity.jl) to run the benchmarks.
15-
The following command will run the benchmarks and compare with the current master branch:
15+
The following command will run the benchmarks and compare with the current main branch:
1616

1717
```bash
1818
benchpkg TensorKit \
19-
--rev=dirty,master \
19+
--rev=dirty,main \
2020
-o benchmark/results/ \
2121
-exeflags="--threads=4"
2222
```
@@ -25,7 +25,7 @@ To compare with previous results, the following command can be used:
2525

2626
```bash
2727
benchpkgtable TensorKit \
28-
--rev=dirty,master \
28+
--rev=dirty,main \
2929
-i benchmark/results/ \
3030
-o benchmark/results/ \
3131
```

docs/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[deps]
22
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
33
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
4+
TensorKit = "07d1fe3e-3e46-537d-9eac-e9e13d0d4cec"
45
TensorKitSectors = "13a9c161-d5da-41f0-bcbd-e1a08ae0647f"
56

67
[compat]

docs/make.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ makedocs(; modules=[TensorKit, TensorKitSectors],
1717
pages=pages,
1818
pagesonly=true)
1919

20-
deploydocs(; repo="github.com/Jutho/TensorKit.jl.git", push_preview=true)
20+
deploydocs(; repo="github.com/QuantumKitHub/TensorKit.jl.git", push_preview=true)

docs/src/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ actually a specific case of the type [`TensorMap`](@ref)) and defines for these
1414
number of vector space operations (scalar multiplication, addition, norms and inner
1515
products), index operations (permutations) and linear algebra operations (multiplication,
1616
factorizations). Finally, tensor contractions can be performed using the `@tensor` macro
17-
from [TensorOperations.jl](https://github.com/Jutho/TensorOperations.jl).
17+
from [TensorOperations.jl](https://github.com/QuantumKitHub/TensorOperations.jl).
1818

1919
Currently, most effort is oriented towards tensors as they appear in the context of quantum
2020
many body physics and in particular the field of tensor networks. Such tensors often have

docs/src/man/sectors.md

Lines changed: 123 additions & 117 deletions
Large diffs are not rendered by default.

docs/src/man/spaces.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ to introduce some syntactic sugar without committing type piracy. In particular,
5757
```@repl tensorkit
5858
3 ∈ ℝ
5959
5.0 ∈ ℂ
60-
5.0+1.0*im ∈ ℝ
60+
5.0 + 1.0 * im ∈ ℝ
6161
Float64 ⊆ ℝ
6262
ComplexF64 ⊆ ℂ
6363
ℝ ⊆ ℂ
@@ -81,17 +81,17 @@ objects of the same concrete type (i.e. with the same type parameters in case of
8181
parametric type). In particular, every `ElementarySpace` should implement the following
8282
methods
8383

84-
* `dim(::ElementarySpace) -> ::Int` returns the dimension of the space as an `Int`
84+
* `dim(::ElementarySpace)` returns the dimension of the space
8585

8686
* `dual(::S) where {S<:ElementarySpace} -> ::S` returns the
8787
[dual space](http://en.wikipedia.org/wiki/Dual_space) `dual(V)`, using an instance of
8888
the same concrete type (i.e. not via type parameters); this should satisfy
89-
`dual(dual(V))==V`
89+
`dual(dual(V)) == V`
9090

9191
* `conj(::S) where {S<:ElementarySpace} -> ::S` returns the
9292
[complex conjugate space](http://en.wikipedia.org/wiki/Complex_conjugate_vector_space)
9393
`conj(V)`, using an instance of the same concrete type (i.e. not via type parameters);
94-
this should satisfy `conj(conj(V))==V` and we automatically have
94+
this should satisfy `conj(conj(V)) == V` and we automatically have
9595
`conj(V::ElementarySpace{ℝ}) = V`.
9696

9797
For convenience, the dual of a space `V` can also be obtained as `V'`.
@@ -186,15 +186,15 @@ struct ProductSpace{S<:ElementarySpace, N} <: CompositeSpace{S}
186186
end
187187
```
188188
Given some `V1::S`, `V2::S`, `V3::S` of the same type `S<:ElementarySpace`, we can easily
189-
construct `ProductSpace{S,3}((V1,V2,V3))` as `ProductSpace(V1,V2,V3)` or using
189+
construct `ProductSpace{S,3}((V1, V2, V3))` as `ProductSpace(V1, V2, V3)` or using
190190
`V1 ⊗ V2 ⊗ V3`, where `` is simply obtained by typing `\otimes`+TAB. In fact, for
191191
convenience, also the regular multiplication operator `*` acts as tensor product between
192192
vector spaces, and as a consequence so does raising a vector space to a positive integer
193193
power, i.e.
194194
```@repl tensorkit
195195
V1 = ℂ^2
196196
V2 = ℂ^3
197-
V1 ⊗ V2 ⊗ V1' == V1 * V2 * V1' == ProductSpace(V1,V2,V1') == ProductSpace(V1,V2) ⊗ V1'
197+
V1 ⊗ V2 ⊗ V1' == V1 * V2 * V1' == ProductSpace(V1, V2, V1') == ProductSpace(V1, V2) ⊗ V1'
198198
V1^3
199199
dim(V1 ⊗ V2)
200200
dims(V1 ⊗ V2)

0 commit comments

Comments
 (0)