Skip to content

Commit ecb5b5e

Browse files
Add support for Julia v1.12 by fixing JET type stability warning (#559)
1 parent 7a2a5fc commit ecb5b5e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/qobj/superoperators.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ See also [`spre`](@ref), [`spost`](@ref), and [`lindblad_dissipator`](@ref).
160160
function liouvillian(
161161
H::AbstractQuantumObject{OpType},
162162
c_ops::Union{Nothing,AbstractVector,Tuple} = nothing,
163-
Id_cache = I(prod(H.dimensions)),
163+
Id_cache::Diagonal = I(prod(H.dimensions)),
164164
) where {OpType<:Union{Operator,SuperOperator}}
165165
L = liouvillian(H, Id_cache)
166166
if !(c_ops isa Nothing)

test/core-test/code-quality/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
66

77
[compat]
88
Aqua = "0.8"
9-
JET = "0.9"
9+
JET = "0.9, 0.10"

0 commit comments

Comments
 (0)