Closed vytautas-a closed 1 month ago
Say we define a time-dependent generator for HamEvo:
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.
x
y
Parameter
t
@vytautas-a Would you be able to give it a try ?
To check again in PyQ once https://github.com/pasqal-io/pyqtorch/pull/228 is done.
Fixed by PR https://github.com/pasqal-io/qadence/pull/568
Say we define a time-dependent generator for
HamEvo
:If
x
andy
are instances ofParameter
(t
is the time parameter) the result of simulatingHamEvo
with such generator is correct. However, if either or bothx
andy
are floats or tensors - the simulation result is wrong.