Skip to content

Commit 3cf00ec

Browse files
committed
improve QobjEvo tests
1 parent 0da8418 commit 3cf00ec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/core-test/quantum_objects_evo.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using SparseArrays
44
using StaticArraysCore
55
using SciMLOperators
6+
import SciMLOperators: AddedOperator
67

78
# DomainError: incompatible between size of array and type
89
@testset "Thrown Errors" begin
@@ -228,6 +229,8 @@
228229
# test number of lazy operators and assume_hermitian = Val(false)
229230
L_td_assume_herm = liouvillian(H_td)
230231
L_td_assume_not_herm = liouvillian(H_td, assume_hermitian = Val(false))
232+
@test L_td_assume_herm.data isa AddedOperator
233+
@test L_td_assume_not_herm.data isa AddedOperator
231234
@test length(L_td_assume_herm.data.ops) == 3 # 1-time-indep. + 2-time-dep.
232235
@test length(L_td_assume_not_herm.data.ops) == 5 # 1-time-indep. + 2 x 2-time-dep.
233236
@test L_td_assume_herm(p, t) L_td_assume_not_herm(p, t) # check the matrix since H_td is itself Hermitian

0 commit comments

Comments
 (0)