tensorflow / quantum

Hybrid Quantum-Classical Machine Learning in TensorFlow

Home Page:https://www.tensorflow.org/quantum

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Version matching between cirq and tfq

ll971 opened this issue · comments

commented

I want to use tfq.layers.NoisyPQC to construct a noisy quantum circuit, the tfq version is 0.6.1, but there is a 'Circuit' object has no attribute' depolarize' error when using cirq.depolarize.
I want to know which version of cirq can solve this error and match tfq?

TFQ 0.6.1 has cirq requirements

cirq-core>=0.13.1
cirq-google>=0.13.1

You can see successful usage of depolarizing noise in: https://www.tensorflow.org/quantum/tutorials/noise