qadence
qadence copied to clipboard
[Bug] Using simple `float` values inside `sympy` function leads to incorrect wavefunction when using time-dependent block
Say we define a time-dependent generator for HamEvo
:
td_gen = omega * (sympy.sin(x * t) * X(0) + y * (t**2) * Y(1))
If x
and y
are instances of Parameter
(t
is the time parameter) the result of simulating HamEvo
with such generator is correct. However, if either or both x
and y
are floats or tensors - the simulation result is wrong.