From da5ecb322ac4cba1cdaa321e7c569669c4e4d0f3 Mon Sep 17 00:00:00 2001 From: Alberto Mercurio Date: Fri, 10 Oct 2025 13:34:47 +0200 Subject: [PATCH] Add code quality support for Julia v1.12 --- src/qobj/superoperators.jl | 2 +- test/core-test/code-quality/Project.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qobj/superoperators.jl b/src/qobj/superoperators.jl index 6bc9a71c3..0a561c6e1 100644 --- a/src/qobj/superoperators.jl +++ b/src/qobj/superoperators.jl @@ -160,7 +160,7 @@ See also [`spre`](@ref), [`spost`](@ref), and [`lindblad_dissipator`](@ref). function liouvillian( H::AbstractQuantumObject{OpType}, c_ops::Union{Nothing,AbstractVector,Tuple} = nothing, - Id_cache = I(prod(H.dimensions)), + Id_cache::Diagonal = I(prod(H.dimensions)), ) where {OpType<:Union{Operator,SuperOperator}} L = liouvillian(H, Id_cache) if !(c_ops isa Nothing) diff --git a/test/core-test/code-quality/Project.toml b/test/core-test/code-quality/Project.toml index 5cadfefb9..6a0832dc2 100644 --- a/test/core-test/code-quality/Project.toml +++ b/test/core-test/code-quality/Project.toml @@ -6,4 +6,4 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [compat] Aqua = "0.8" -JET = "0.9" +JET = "0.9, 0.10"