tensorflow / quantum

Hybrid Quantum-Classical Machine Learning in TensorFlow
https://www.tensorflow.org/quantum
Apache License 2.0
1.79k stars 572 forks source link

_tfq_simulate_ops.so cannot open shared file #757

Open deepquantum88 opened 1 year ago

deepquantum88 commented 1 year ago

Hi,

I am installing TFQ (0.7.2) on python=3.9.7 version and TensorFlow 2.11.0, protobuf=3.17.3. But throws an error. Earlier I worked with TFQ (0.7.2) with python 3.8.16 and TF= 2.7.0. It worked fine.

But now i have to use python=3.9 and it throws an error of file _tfq_simulate_ops.so.

Please help.

lockwo commented 1 year ago

I don't think 2.11.0 support is finalized yet (see https://github.com/tensorflow/quantum/pull/756 and https://github.com/tensorflow/quantum/pull/755). When it is finalized it will be through TFQ nightly, 0.7.2 requires TF 2.7.0 (see the requirements file for 0.7.2: https://github.com/tensorflow/quantum/blob/v0.7.2/requirements.txt#L8)

deepquantum88 commented 1 year ago

can you please specify the steps to install with bazel. I checked tfq website. and installed bazel 5.3.0. But not sure how to make it compatible tf2.11.0 and tfq with bazel.

lockwo commented 1 year ago

To install with bezel, see the install from source instructions: https://www.tensorflow.org/quantum/install

deepquantum88 commented 1 year ago

I tried installing but it throws an error of undefined symbol _ZNK10tensorflow80p....

lockwo commented 1 year ago

Hmmm there are probably other issues in TFQ that need to be fixed before being stable than, TF 2.11 support will probably be out with the next release.

deepquantum88 commented 1 year ago

any hope when it will be released?

lockwo commented 1 year ago

I do not know the release schedule for 0.8, though there was a 11 month gap between 0.7 and 0.6, and a 8 month gap between 0.6 and 0.5 for context.

jaeyoo commented 1 year ago

https://github.com/tensorflow/quantum/issues/762#issuecomment-1509371564

Please, please rebuild TF 2.11.0 with the right build options: ABI is set to 1, std c++ is 17.

Here is the newly updated installation guideline:

https://github.com/tensorflow/quantum/blob/master/docs/install.md#4-build-tensorflow-from-source