Quantum generative adversarial networks with Cirq + TensorFlow | PennyLane

Hello @CatalinaAlbornoz,

For Quantum generative adversarial networks with Cirq + TensorFlow | PennyLane Demos I receive the following error:

AttributeError: ‘tensorflow.python.framework.ops.EagerTensor’ object has no attribute ‘_unique_id’

Name: PennyLane
Version: 0.32.0
Summary: PennyLane is a Python quantum machine learning library by Xanadu Inc.
Home-page: GitHub - PennyLaneAI/pennylane: PennyLane is a cross-platform Python library for differentiable programming of quantum computers. Train a quantum computer the same way as a neural network.
Author:
Author-email:
License: Apache License 2.0
Location: /usr/local/lib/python3.10/dist-packages
Requires: appdirs, autograd, autoray, cachetools, networkx, numpy, pennylane-lightning, requests, rustworkx, scipy, semantic-version, toml, typing-extensions
Required-by: PennyLane-Lightning

Platform info: Linux-5.15.109±x86_64-with-glibc2.35
Python version: 3.10.12
Numpy version: 1.23.5
Scipy version: 1.10.1
Installed devices:

I also tried installing and updating tensorflow and cirq to current versions in colab.

Reference:

Hi @kevinkawchak ! Could you try install tensorflow=2.8.1 ?
This is the version we have running in the demo :slight_smile:

2 Likes