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
When I run this to optimize the parameter tamps I get the following error related to the lower level C++ classes:
TypeError: add(): incompatible function arguments. The following argument types are supported: 1. (self: qforte.qforte.SQOpPool, arg0: complex, arg1: qforte.qforte.SQOperator) -> None
As far as I am concerned, this happens because the class SQOperator can only have numbers as inputs (instead of this autograd numpy arrayboxes). Transforming this autograd numpy arrayboxes to numpy arrays seems to break the optimization process so this is not an option.
Any idea on how to make this work?
Thanks a lot.
The text was updated successfully, but these errors were encountered:
Hello guys,
I am trying to run the QForte UCCNVQE algorithm but I am trying to implement it using the Adam optimizer (as in https://pennylane.readthedocs.io/en/stable/code/api/pennylane.AdamOptimizer.html) instead of using the SciPy optimizers.
When I run this to optimize the parameter
tamps
I get the following error related to the lower level C++ classes:TypeError: add(): incompatible function arguments. The following argument types are supported:
1. (self: qforte.qforte.SQOpPool, arg0: complex, arg1: qforte.qforte.SQOperator) -> None
Invoked with: , <autograd.numpy.numpy_boxes.ArrayBox object at 0x7ff8fb9c8280>, -1.000000 ( 0^ 2 )
+1.000000 ( 2^ 0 )
As far as I am concerned, this happens because the class SQOperator can only have numbers as inputs (instead of this autograd numpy arrayboxes). Transforming this autograd numpy arrayboxes to numpy arrays seems to break the optimization process so this is not an option.
Any idea on how to make this work?
Thanks a lot.
The text was updated successfully, but these errors were encountered: