Skip to content

Commit 442f0a7

Browse files
committed
fix runtests
1 parent df53828 commit 442f0a7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/qobj/quantum_object_base.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ _check_QuantumObject(
183183
} = throw(
184184
DomainError(
185185
_get_dims_string(dimensions),
186-
"The given `dims` is not compatible with type = $type, should be an `Operator`.",
186+
"The given `dims` is not compatible with type = $type, should be a single list of integers.",
187187
),
188188
)
189189

test/core-test/quantum_objects_evo.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
a = MatrixOperator(rand(ComplexF64, 3, 2))
55
@test_throws DomainError QobjEvo(a, type = SuperOperator)
66

7+
a = MatrixOperator(rand(ComplexF64, 4, 4))
8+
@test_throws DomainError QobjEvo(a, type = SuperOperator, dims = ((2,), (2,)))
9+
710
a = MatrixOperator(rand(ComplexF64, 3, 2))
811
for t in (Ket, Bra, OperatorKet, OperatorBra)
912
@test_throws ArgumentError QobjEvo(a, type = t)
@@ -14,9 +17,6 @@
1417

1518
a = MatrixOperator(rand(ComplexF64, 5, 5))
1619
@test_throws DimensionMismatch QobjEvo(a, type = SuperOperator)
17-
18-
a = MatrixOperator(rand(ComplexF64, 4, 4))
19-
@test_throws DimensionMismatch QobjEvo(a, type = SuperOperator, dims = ((2,), (2,)))
2020

2121
ψ = fock(10, 3)
2222
@test_throws TypeError QobjEvo(ψ)

0 commit comments

Comments
 (0)