diff --git a/Project.toml b/Project.toml index 93c13209..7f5e0928 100644 --- a/Project.toml +++ b/Project.toml @@ -53,7 +53,7 @@ QuantumClifford = "0.9.9" QuantumInterface = "0.3.5" QuantumOptics = "1.1.0" QuantumOpticsBase = "0.5.3" -QuantumSymbolics = "0.3" +QuantumSymbolics = "0.4.3" Random = "1" Reexport = "1.2.2" ResumableFunctions = "0.6.9" diff --git a/ext/QuantumSavoryMakie/QuantumSavoryMakie.jl b/ext/QuantumSavoryMakie/QuantumSavoryMakie.jl index 25f5482a..2aa65390 100644 --- a/ext/QuantumSavoryMakie/QuantumSavoryMakie.jl +++ b/ext/QuantumSavoryMakie/QuantumSavoryMakie.jl @@ -150,7 +150,7 @@ function Makie.plot!(rn::RegisterNetPlot{<:Tuple{RegisterNet}}) ## the colors and locations for various observables if !isnothing(rn[:observables][]) for (O, rsidx, links) in rn[:observables][] - val = real(observable(tuple((network[rs...] for rs in rsidx)...), O, NaN)) + val = real(observable(tuple((network[rs...] for rs in rsidx)...), O; something=NaN)) # TODO issue a warning if val has (percentage-wise) significant imaginary component (here, for plotting, when we implicitly are taking the real part) for (iʳᵉᵍ, iˢˡᵒᵗ) in rsidx xˢ = registercoords[iʳᵉᵍ][1] diff --git a/src/StatesZoo/StatesZoo.jl b/src/StatesZoo/StatesZoo.jl index f8df7992..c03e21b7 100644 --- a/src/StatesZoo/StatesZoo.jl +++ b/src/StatesZoo/StatesZoo.jl @@ -2,7 +2,7 @@ module StatesZoo using DocStringExtensions using QuantumSymbolics, QuantumOpticsBase -using QuantumSymbolics: withmetadata, @withmetadata, Metadata +using QuantumSymbolics: @withmetadata, Metadata import QuantumSymbolics: express_nolookup import LinearAlgebra diff --git a/test/test_aqua.jl b/test/test_aqua.jl index aa035f27..e873294c 100644 --- a/test/test_aqua.jl +++ b/test/test_aqua.jl @@ -1,6 +1,10 @@ using Aqua using QuantumSavory +if get(ENV,"JET_TEST","")=="true" +# JET generates new methods with ambiguities +else + @test Test.detect_ambiguities(QuantumSavory) == Tuple{Method, Method}[] Aqua.test_all(QuantumSavory, @@ -10,3 +14,5 @@ Aqua.test_all(QuantumSavory, ) @test length(Aqua.Piracy.hunt(QuantumSavory)) == 6 + +end \ No newline at end of file