Skip to content

Commit 521a05b

Browse files
TortarKrastanov
andauthored
Solve piracies and ambiguities (#28)
Co-authored-by: Stefan Krastanov <[email protected]>
1 parent d385ebe commit 521a05b

File tree

5 files changed

+14
-8
lines changed

5 files changed

+14
-8
lines changed

.github/workflows/ci-julia-nightly.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
include:
1717
- os: ubuntu-latest
1818
arch: x64
19-
version: nightly
19+
version: alpha
2020
threads: 2
2121
jet: 'false'
2222
- os: ubuntu-latest
@@ -26,10 +26,9 @@ jobs:
2626
jet: 'true'
2727
steps:
2828
- uses: actions/checkout@v4
29-
- uses: julia-actions/setup-julia@v2
29+
- uses: julia-actions/install-juliaup@v2
3030
with:
31-
version: ${{ matrix.version }}
32-
arch: ${{ matrix.arch }}
31+
channel: ${{ matrix.version }}~${{ matrix.arch }}
3332
- uses: julia-actions/cache@v2
3433
- uses: julia-actions/julia-buildpkg@v1
3534
- uses: julia-actions/julia-runtest@v1

Project.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
name = "QuantumInterface"
22
uuid = "5717a53b-5d69-4fa3-b976-0bf2f97ca1e5"
33
authors = ["QuantumInterface.jl contributors"]
4-
version = "0.3.4"
4+
version = "0.3.5"
55

66
[deps]
77
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
88
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
99

1010
[compat]
11+
LinearAlgebra = "1"
12+
SparseArrays = "1"
13+
Test = "1"
1114
julia = "1.6"
1215

1316
[extras]

src/abstract_types.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,5 @@ function summary(stream::IO, x::AbstractOperator)
5353
end
5454

5555
show(stream::IO, x::AbstractOperator) = summary(stream, x)
56+
57+
traceout!(s::StateVector, i) = ptrace(s,i)

src/embed_permute.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,5 @@ permutesystems(a::AbstractOperator, perm) = arithmetic_unary_error("Permutations
8888
nsubsystems(s::AbstractKet) = nsubsystems(basis(s))
8989
nsubsystems(s::AbstractOperator) = nsubsystems(basis(s))
9090
nsubsystems(b::CompositeBasis) = length(b.bases)
91-
nsubsystems(b::Basis) = 1
91+
nsubsystems(b::Basis) = 1
92+
nsubsystems(::Nothing) = 1 # TODO Exists because of QuantumSavory; Consider removing this and reworking the functions that depend on it. E.g., a reason to have it when performing a project_traceout measurement on a state that contains only one subsystem

test/test_jet.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ end
3939
)
4040
)
4141
@show rep
42-
@test length(JET.get_reports(rep)) <= 8
42+
@test length(JET.get_reports(rep)) <= 11
4343
@test_broken length(JET.get_reports(rep)) == 0
4444

4545
rep = report_package("QuantumInterface";
@@ -49,5 +49,6 @@ end
4949
)
5050
)
5151
@show rep
52-
@test length(JET.get_reports(rep)) == 0
52+
@test length(JET.get_reports(rep)) <= 2
53+
@test_broken length(JET.get_reports(rep)) == 0
5354
end

0 commit comments

Comments
 (0)