quantum icon indicating copy to clipboard operation
quantum copied to clipboard

tensorflow quantum giving a issue like this whenever I run it on colab

Open Prakhar998 opened this issue 3 years ago • 6 comments

Screenshot at 2021-03-19 22-21-26 Please help me out with this import tensorflow as tf import tensorflow_quantum as tfq

import cirq import sympy import numpy as np import seaborn as sns import collections

visualization tools

%matplotlib inline import matplotlib.pyplot as plt from cirq.contrib.svg import SVGCircuit this happens when i use this

Prakhar998 avatar Mar 19 '21 16:03 Prakhar998

It might help if you shared the colab (or at least the pip installs). It might be some error in the installation phase (which isn't shown).

lockwo avatar Mar 19 '21 17:03 lockwo

Could you please try this?

!pip install tensorflow==2.3.1
!pip install tensorflow_quantum==0.4.0

and please don't forget to restart the runtime kernel of the colab.

jaeyoo avatar Mar 23 '21 04:03 jaeyoo

Is this issue still coming up for you @Prakhar998 ?

MichaelBroughton avatar Jun 08 '21 02:06 MichaelBroughton

Try this :

!pip install tensorflow==2.4.1
!pip install tensorflow-quantum

Shuhul24 avatar Jun 22 '21 11:06 Shuhul24

Recent update : the real culprit is related to this issue:

https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/1814653

Let me investigate & fix it soon.

jaeyoo avatar Aug 16 '21 18:08 jaeyoo

Any updates on this issue with the latest versions?

lockwo avatar Aug 24 '22 18:08 lockwo