We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
QobjEvo
1 parent 1cccacf commit d63eb5fCopy full SHA for d63eb5f
src/qobj/quantum_object_evo.jl
@@ -194,7 +194,7 @@ function QuantumObjectEvolution(
194
f !== identity && throw(ArgumentError("The function `f` is not supported for QuantumObjectEvolution inputs."))
195
if type isa Nothing
196
type = op.type
197
- else
+ elseif type != op.type
198
throw(
199
ArgumentError(
200
"The type of the QuantumObjectEvolution object cannot be changed when using another QuantumObjectEvolution object as input.",
0 commit comments