qadence icon indicating copy to clipboard operation
qadence copied to clipboard

[Bug] Using simple `float` values inside `sympy` function leads to incorrect wavefunction when using time-dependent block

Open vytautas-a opened this issue 7 months ago • 2 comments

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.

vytautas-a avatar Jul 03 '24 13:07 vytautas-a