Skip to content

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

Open
@Prakhar998

Description

@Prakhar998

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

Activity

lockwo

lockwo commented on Mar 19, 2021

@lockwo
Contributor

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

jaeyoo commented on Mar 23, 2021

@jaeyoo
Member

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

MichaelBroughton commented on Jun 8, 2021

@MichaelBroughton
Collaborator

Is this issue still coming up for you @Prakhar998 ?

Shuhul24

Shuhul24 commented on Jun 22, 2021

@Shuhul24

Try this :

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

jaeyoo commented on Aug 16, 2021

@jaeyoo
Member

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.

linked a pull request that will close this issue on Aug 16, 2021
lockwo

lockwo commented on Aug 24, 2022

@lockwo
Contributor

Any updates on this issue with the latest versions?

added a commit that references this issue on Mar 30, 2023

Merge pull request tensorflow#507 from quantumlib/cuquantum-lib-dir

1d417ec
added
kind/bug-reportSomething doesn't seem to work
triage/duplicateThis issue or pull request is addressed by another
area/colabConcerns Google Colab
on Dec 1, 2024
mhucka

mhucka commented on Dec 1, 2024

@mhucka
Member

@Prakhar998 This issue has not been active for a long time. Did you eventually resolve it? Can this issue report be closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/colabConcerns Google Colabarea/installationConcerns installation of TFQkind/bug-reportSomething doesn't seem to worktriage/duplicateThis issue or pull request is addressed by another

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @mhucka@MichaelBroughton@Prakhar998@jaeyoo@lockwo

      Issue actions

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