-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
minimization of expectation value #227
Comments
The problem is just that Z is a numpy array whereas the tensors during the optimization are torch tensors, which are not compatible. The 'proper' way to handle this is to add You could also just convert |
Thank you so much for your fast reply, if I understand you correctly you suggest:
This leads to the error RuntimeError: both inputs should have same dtype I understand that Let me know your comments. |
Hi @ValentinKasper, yes for |
minimization of expectation value
The following minimal example
leads to the error
TypeError: tensordot(): argument 'other' (position 2) must be Tensor, not numpy.ndarray
Unforturnately, I am unable to track it down. Can you please help? Thanks a lot
The text was updated successfully, but these errors were encountered: