Skip to content

Commit d63eb5f

Browse files
ytdHuangalbertomercurio
authored andcommitted
fix type check in QobjEvo
1 parent 1cccacf commit d63eb5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qobj/quantum_object_evo.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ function QuantumObjectEvolution(
194194
f !== identity && throw(ArgumentError("The function `f` is not supported for QuantumObjectEvolution inputs."))
195195
if type isa Nothing
196196
type = op.type
197-
else
197+
elseif type != op.type
198198
throw(
199199
ArgumentError(
200200
"The type of the QuantumObjectEvolution object cannot be changed when using another QuantumObjectEvolution object as input.",

0 commit comments

Comments
 (0)