You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for catching this @bnishanth16! It looks like the qml.dot() operation is currently not JIT compatible when the coefficients of the dot product are dynamic variables. I've shared this with the team internally, and we'll look into what is needed to fix this.
Yes unfortunately the coeffs have to be constant parameters at the moment. You can work around the problem by telling Catalyst that the x parameter should be constant, but the downside is that if x changes then the program has to be recompiled:
Experienced
TracerBoolConversionError
when trying to parameterize coeffients of qml.dot with qjit. Minimal example code below.Expected behavior: (without qjit)
Output:
Actual Behaviour: (with qjit)
Output:
System information:
Additional Information:
Replacing
qml.dot
withqml.Hamiltonian
gives the same error.The text was updated successfully, but these errors were encountered: