Skip to content

Commit 4bda75d

Browse files
authored
Merge branch 'main' into dev/dimensions
2 parents 52af74b + 5b08c04 commit 4bda75d

File tree

20 files changed

+113
-21
lines changed

20 files changed

+113
-21
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- 'ext/**'
1111
- 'test/runtests.jl'
1212
- 'test/core-test/**'
13-
- 'test/ext-test/cairomakie_ext.jl'
13+
- 'test/ext-test/cairomakie/**'
1414
- 'Project.toml'
1515
pull_request:
1616
branches:
@@ -21,7 +21,7 @@ on:
2121
- 'ext/**'
2222
- 'test/runtests.jl'
2323
- 'test/core-test/**'
24-
- 'test/ext-test/cairomakie_ext.jl'
24+
- 'test/ext-test/cairomakie/**'
2525
- 'Project.toml'
2626
types:
2727
- opened

Project.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,8 @@ julia = "1.10"
7070

7171
[extras]
7272
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
73-
CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
7473
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
7574
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
7675

7776
[targets]
78-
test = ["Aqua", "CairoMakie", "JET", "Test"]
77+
test = ["Aqua", "JET", "Test"]

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,3 +176,25 @@ Here we provide a brief performance comparison between `QuantumToolbox.jl` and o
176176
You are most welcome to contribute to `QuantumToolbox.jl` development by forking this repository and sending pull requests (PRs), or filing bug reports at the issues page. You can also help out with users' questions, or discuss proposed changes in the [QuTiP discussion group](https://groups.google.com/g/qutip).
177177

178178
For more information about contribution, including technical advice, please see the [Contributing to QuantumToolbox.jl](https://qutip.org/QuantumToolbox.jl/stable/resources/contributing) section of the documentation.
179+
180+
## Acknowledgements
181+
182+
### Fundings
183+
184+
`QuantumToolbox.jl` is supported by the [Unitary Fund](https://unitary.fund), a grant program for quantum technology projects.
185+
186+
<div align="center">
187+
<a href="https://unitary.fund">
188+
<img src="https://raw.githubusercontent.com/unitaryfund/unitary.fund/refs/heads/main/src/assets/svg/logo.svg" alt="Unitary Fund logo" width="200">
189+
</a>
190+
</div>
191+
192+
### Other Acknowledgements
193+
194+
We are also grateful to the [Zulip](https://zulip.com) team for providing a free chat service for open-source projects.
195+
196+
<div align="center">
197+
<a href="https://zulip.com">
198+
<img src="https://zulip.com/static/images/logo/zulip-org-logo.svg" alt="Zulip logo" width="200">
199+
</a>
200+
</div>

docs/make.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ const PAGES = [
7676
"Bibliography" => "resources/bibliography.md",
7777
"ChangeLog" => "resources/changelog.md",
7878
"Contributing to QuantumToolbox.jl" => "resources/contributing.md",
79+
"Acknowledgements" => "resources/acknowledgements.md",
7980
],
8081
]
8182

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# [Acknowledgements](@id doc:Acknowledgements)
2+
3+
## [Fundings](@id doc:Fundings)
4+
5+
`QuantumToolbox.jl` is supported by the [Unitary Fund](https://unitary.fund), a grant program for quantum technology projects.
6+
7+
<div align="center">
8+
<a href="https://unitary.fund">
9+
<img src="https://raw.githubusercontent.com/unitaryfund/unitary.fund/refs/heads/main/src/assets/svg/logo.svg" alt="Unitary Fund logo" width="200">
10+
</a>
11+
</div>
12+
13+
## [Other Acknowledgements](@id doc:Other-Acknowledgements)
14+
15+
We are also grateful to the [Zulip](https://zulip.com) team for providing a free chat service for open-source projects.
16+
17+
<div align="center">
18+
<a href="https://zulip.com">
19+
<img src="https://zulip.com/static/images/logo/zulip-org-logo.svg" alt="Zulip logo" width="200">
20+
</a>
21+
</div>

src/metrics.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@ matrix ``\hat{\rho}``.
2121
Pure state:
2222
```jldoctest
2323
julia> ψ = fock(2,0)
24+
2425
Quantum Object: type=Ket dims=[2] size=(2,)
2526
2-element Vector{ComplexF64}:
2627
1.0 + 0.0im
2728
0.0 + 0.0im
2829
2930
julia> ρ = ket2dm(ψ)
31+
3032
Quantum Object: type=Operator dims=[2] size=(2, 2) ishermitian=true
3133
2×2 Matrix{ComplexF64}:
3234
1.0+0.0im 0.0+0.0im
@@ -39,6 +41,7 @@ julia> entropy_vn(ρ, base=2)
3941
Mixed state:
4042
```jldoctest
4143
julia> ρ = maximally_mixed_dm(2)
44+
4245
Quantum Object: type=Operator dims=[2] size=(2, 2) ishermitian=true
4346
2×2 Diagonal{ComplexF64, Vector{ComplexF64}}:
4447
0.5-0.0im ⋅

src/negativity.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ and ``\Vert \hat{X} \Vert_1=\textrm{Tr}\sqrt{\hat{X}^\dagger \hat{X}}`` is the t
1919
2020
```jldoctest
2121
julia> Ψ = bell_state(0, 0)
22+
2223
Quantum Object: type=Ket dims=[2, 2] size=(4,)
2324
4-element Vector{ComplexF64}:
2425
0.7071067811865475 + 0.0im
@@ -27,6 +28,7 @@ Quantum Object: type=Ket dims=[2, 2] size=(4,)
2728
0.7071067811865475 + 0.0im
2829
2930
julia> ρ = ket2dm(Ψ)
31+
3032
Quantum Object: type=Operator dims=[2, 2] size=(4, 4) ishermitian=true
3133
4×4 Matrix{ComplexF64}:
3234
0.5+0.0im 0.0+0.0im 0.0+0.0im 0.5+0.0im

src/qobj/arithmetic_and_attributes.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ Note that this function only supports for [`Operator`](@ref) and [`SuperOperator
287287
288288
```jldoctest
289289
julia> a = destroy(20)
290+
290291
Quantum Object: type=Operator dims=[20] size=(20, 20) ishermitian=false
291292
20×20 SparseMatrixCSC{ComplexF64, Int64} with 19 stored entries:
292293
⎡⠈⠢⡀⠀⠀⠀⠀⠀⠀⠀⎤
@@ -327,6 +328,7 @@ Return the standard vector `p`-norm or [Schatten](https://en.wikipedia.org/wiki/
327328
328329
```jldoctest
329330
julia> ψ = fock(10, 2)
331+
330332
Quantum Object: type=Ket dims=[10] size=(10,)
331333
10-element Vector{ComplexF64}:
332334
0.0 + 0.0im
@@ -551,6 +553,7 @@ Note that this function will always return [`Operator`](@ref). No matter the inp
551553
Two qubits in the state ``\ket{\psi} = \ket{e,g}``:
552554
```jldoctest
553555
julia> ψ = kron(fock(2,0), fock(2,1))
556+
554557
Quantum Object: type=Ket dims=[2, 2] size=(4,)
555558
4-element Vector{ComplexF64}:
556559
0.0 + 0.0im
@@ -559,6 +562,7 @@ Quantum Object: type=Ket dims=[2, 2] size=(4,)
559562
0.0 + 0.0im
560563
561564
julia> ptrace(ψ, 2)
565+
562566
Quantum Object: type=Operator dims=[2] size=(2, 2) ishermitian=true
563567
2×2 Matrix{ComplexF64}:
564568
0.0+0.0im 0.0+0.0im
@@ -568,6 +572,7 @@ Quantum Object: type=Operator dims=[2] size=(2, 2) ishermitian=true
568572
or in an entangled state ``\ket{\psi} = \frac{1}{\sqrt{2}} \left( \ket{e,e} + \ket{g,g} \right)``:
569573
```jldoctest
570574
julia> ψ = 1 / √2 * (kron(fock(2,0), fock(2,0)) + kron(fock(2,1), fock(2,1)))
575+
571576
Quantum Object: type=Ket dims=[2, 2] size=(4,)
572577
4-element Vector{ComplexF64}:
573578
0.7071067811865475 + 0.0im
@@ -576,6 +581,7 @@ Quantum Object: type=Ket dims=[2, 2] size=(4,)
576581
0.7071067811865475 + 0.0im
577582
578583
julia> ptrace(ψ, 1)
584+
579585
Quantum Object: type=Operator dims=[2] size=(2, 2) ishermitian=true
580586
2×2 Matrix{ComplexF64}:
581587
0.5+0.0im 0.0+0.0im

src/qobj/eigsolve.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,13 @@ julia> λ
5454
5555
julia> ψ
5656
2-element Vector{QuantumObject{Vector{ComplexF64}, KetQuantumObject, Dimensions{1}}}:
57-
Quantum Object: type=Ket dims=[2] size=(2,)
57+
58+
Quantum Object: type=Ket dims=[2] size=(2,)
5859
2-element Vector{ComplexF64}:
5960
-0.7071067811865475 + 0.0im
6061
0.7071067811865475 + 0.0im
61-
Quantum Object: type=Ket dims=[2] size=(2,)
62+
63+
Quantum Object: type=Ket dims=[2] size=(2,)
6264
2-element Vector{ComplexF64}:
6365
0.7071067811865475 + 0.0im
6466
0.7071067811865475 + 0.0im

src/qobj/functions.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ Returns the [Kronecker product](https://en.wikipedia.org/wiki/Kronecker_product)
161161
162162
```jldoctest
163163
julia> a = destroy(20)
164+
164165
Quantum Object: type=Operator dims=[20] size=(20, 20) ishermitian=false
165166
20×20 SparseMatrixCSC{ComplexF64, Int64} with 19 stored entries:
166167
⎡⠈⠢⡀⠀⠀⠀⠀⠀⠀⠀⎤

0 commit comments

Comments
 (0)