quantum icon indicating copy to clipboard operation
quantum copied to clipboard

tensorflow quantum can not be imported ??

Open Rayhan740 opened this issue 1 year ago • 6 comments

I am using google colab and where I am using python 3.8. So, where tensorflow quantum is installed but when I try to import tensorflow quantum then it doesn't work!!! how can I fix ...... and google tensorflow quantum and version compatibility is really a pain!!!!

Rayhan740 avatar Jun 19 '23 15:06 Rayhan740

I honestly stopped using Colab with TFQ, so many issues with compatibility. But if you must, this worked for me: https://github.com/tensorflow/quantum/issues/782#issuecomment-1594142647

lockwo avatar Jun 19 '23 16:06 lockwo

tried but didn't worked!! 😑

Rayhan740 avatar Jun 21 '23 21:06 Rayhan740

Dang, unlucky. Colab is a real mess now.

lockwo avatar Jun 22 '23 06:06 lockwo

Hello, I understand that this is an alternative solution, but on qBraid TFQ and Tensorflow + Cirq are properly versioned and installable.

One thing to double check after activating the environment is to make sure your kernel is Python [ Tensorflow ] @Rayhan740 See video below:

https://www.youtube.com/watch?v=iqYmB7H2R2E

I've been there myself with all the compatibility issues, not to mention I couldn't find the TFQ distribution for python 3.8 on my Mac M1. 🥲

rryoung98 avatar Jul 06 '23 23:07 rryoung98

yes I am using qbraid as an alternative to colab.

Rayhan740 avatar Jul 12 '23 02:07 Rayhan740

Duplicate of #798

knottyanyon avatar Sep 22 '23 13:09 knottyanyon