diff --git a/.github/workflows/ci-jet.yml b/.github/workflows/ci-jet.yml index c80577ea..ffa8d9d7 100644 --- a/.github/workflows/ci-jet.yml +++ b/.github/workflows/ci-jet.yml @@ -35,7 +35,7 @@ jobs: - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-runtest@v1 env: - QUANTUMOPTICS_JET_TEST: true + JET_TEST: true - uses: julia-actions/julia-processcoverage@v1 - uses: codecov/codecov-action@v3 with: diff --git a/Project.toml b/Project.toml index 9b821571..a1ee17a5 100644 --- a/Project.toml +++ b/Project.toml @@ -19,7 +19,7 @@ Adapt = "1, 2, 3.3" FFTW = "1.2" FillArrays = "0.13, 1" LRUCache = "1" -QuantumInterface = "0.2.2" +QuantumInterface = "0.3.0" Strided = "1, 2" UnsafeArrays = "1" julia = "1.3" diff --git a/src/operators_sparse.jl b/src/operators_sparse.jl index 7c12a240..a6728f61 100644 --- a/src/operators_sparse.jl +++ b/src/operators_sparse.jl @@ -69,6 +69,7 @@ identityoperator(::Type{T}, ::Type{S}, b::Basis) where {T<:DataOperator,S<:Numbe Operator(b, b, Eye{S}(length(b))) identityoperator(::Type{T}, b1::Basis, b2::Basis) where T<:Number = identityoperator(DataOperator, T, b1, b2) # XXX This is purposeful type piracy over QuantumInterface, that hardcodes the use of QuantumOpticsBase.DataOperator in identityoperator. Also necessary for backward compatibility. +identityoperator(::Type{T}, b::Basis) where T<:Number = identityoperator(DataOperator, T, b) """ diagonaloperator(b::Basis) diff --git a/test/test_jet.jl b/test/test_jet.jl index 01b53330..8d33eb57 100644 --- a/test/test_jet.jl +++ b/test/test_jet.jl @@ -22,7 +22,7 @@ end using LinearAlgebra, LRUCache, Strided, Dates, SparseArrays @testset "jet" begin - if get(ENV,"QUANTUMOPTICS_JET_TEST","")=="true" + if get(ENV,"JET_TEST","")=="true" rep = report_package("QuantumOpticsBase"; report_pass=MayThrowIsOk(), # TODO have something more fine grained than a generic "do not care about thrown errors" ignored_modules=( # TODO fix issues with these modules or report them upstream