Skip to content

Commit 44fecdf

Browse files
Fix benchmarks and docs and minor changes
1 parent 5e5c3d9 commit 44fecdf

File tree

3 files changed

+9
-20
lines changed

3 files changed

+9
-20
lines changed

benchmarks/runbenchmarks.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
using BenchmarkTools
2+
using LinearAlgebra
3+
using SparseArrays
24
using QuantumToolbox
35
using OrdinaryDiffEq
46
using LinearSolve

docs/make.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ using Changelog
1010
# Load of packages required to compile the extension documentation
1111
using CairoMakie
1212

13-
DocMeta.setdocmeta!(QuantumToolbox, :DocTestSetup, :(using QuantumToolbox); recursive = true)
13+
doctest_setup = quote
14+
using LinearAlgebra
15+
using SparseArrays
16+
using QuantumToolbox
17+
end
18+
DocMeta.setdocmeta!(QuantumToolbox, :DocTestSetup, doctest_setup; recursive = true)
1419

1520
# some options for `makedocs`
1621
const DRAFT = false # set `true` to disable cell evaluation

src/QuantumToolbox.jl

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
module QuantumToolbox
22

3-
"The argument sel should be a Tuple or a StaticVector for better performance. Try to use `sel = (1, 2)` instead of `sel = [1, 2]`. Alternatively, you can do `import QuantumToolbox: SVector` and use `dims = SVector(1, 2)`."
4-
5-
"The argument sel should be a Tuple or a StaticVector for better performance. Try to use `sel = (1, 2)` instead of `sel = [1, 2]`. Alternatively, you can do `import QuantumToolbox: SVector` and use `sel = SVector(1, 2)`."
6-
73
using LinearAlgebra
84
using SparseArrays
95
import StaticArraysCore: SVector
@@ -71,21 +67,7 @@ import StaticArraysCore: MVector
7167
# Export functions from the other modules
7268

7369
# LinearAlgebra
74-
export ishermitian,
75-
issymmetric,
76-
isposdef,
77-
adjoint,
78-
transpose,
79-
dot,
80-
tr,
81-
svdvals,
82-
norm,
83-
normalize,
84-
normalize!,
85-
diag,
86-
kron,
87-
Hermitian,
88-
Symmetric
70+
export ishermitian, issymmetric, isposdef, dot, tr, svdvals, norm, normalize, normalize!, diag, Hermitian, Symmetric
8971

9072
# SparseArrays
9173
export permute

0 commit comments

Comments
 (0)