Can't import qchem

I want to run a VQE simulation but the qchem package can’t be imported. I think this is probably because of changes in openfermion (one of qchem dependencies).

I attached the image of the error message below

Hi @eraraya-ricardo!

Yep, this is due to a new version of OpenFermion that was just released. We’ve just put out a bugfix release of QChem to fix this issue, can you try upgrading and see if this fixes it for you?

pip install pennylane-qchem --upgrade

It worked! Thanks a lot for a very fast response and fix.

1 Like