Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Prakhar998 opened this issue Mar 19, 2021 · 6 comments · May be fixed by #616
Open

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

Prakhar998 opened this issue Mar 19, 2021 · 6 comments · May be fixed by #616

Comments

@Prakhar998
Copy link

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

@lockwo
Copy link
Contributor

lockwo commented Mar 19, 2021

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).

@jaeyoo
Copy link
Member

jaeyoo commented Mar 23, 2021

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.

@MichaelBroughton
Copy link
Collaborator

Is this issue still coming up for you @Prakhar998 ?

@Shuhul24
Copy link

Try this :

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

@jaeyoo
Copy link
Member

jaeyoo commented Aug 16, 2021

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 jaeyoo linked a pull request Aug 16, 2021 that will close this issue
@lockwo
Copy link
Contributor

lockwo commented Aug 24, 2022

Any updates on this issue with the latest versions?

jaeyoo pushed a commit to jaeyoo/quantum that referenced this issue Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants