Closed adekusar-drl closed 3 years ago
Hmm, interesting we should probably open a bug with symengine about this, they should be able to easily support single precision floats as a bind type. But int the meantime wesshould fix this in terra with a float cast on symbol values if it's a np float type.
I filed an issue with symengine here: https://github.com/symengine/symengine.py/issues/351
I pushed up a terra PR to fix this https://github.com/Qiskit/qiskit-terra/pull/6368 if you could test that this resolves the issue for the TorchConnector
that would be great.
@mtreinish Thanks a lot! The patch fixes the problem. Waiting for the PR to unblock the CI.
Information
symengine
installedWhat is the current behavior?
TorchConnector tutorial fails.
Steps to reproduce the problem
A script to reproduce the error:
Fails with:
What is the expected behavior?
The script should run without exceptions.