Skip to content

Commit b9f4992

Browse files
committed
add type stability tests for liouvillian
1 parent 9567c45 commit b9f4992

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/core-test/quantum_objects_evo.jl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,13 @@
213213
@test_throws ArgumentError cache_operator(L_td, ψ)
214214

215215
@testset "Type Inference" begin
216-
@inferred liouvillian(H_td, (a, QobjEvo(a', coef1)))
216+
H_td2 = H_td + QobjEvo(a + a', coef3)
217+
c_ops1 = (a, a')
218+
c_ops2 = (a, QobjEvo(a', coef1))
219+
@inferred liouvillian(H_td, c_ops1)
220+
@inferred liouvillian(H_td, c_ops2)
221+
@inferred liouvillian(H_td2, c_ops1)
222+
@inferred liouvillian(H_td2, c_ops2)
217223
end
218224
end
219225
end

0 commit comments

Comments
 (0)