quantum icon indicating copy to clipboard operation
quantum copied to clipboard

_tfq_simulate_ops.so cannot open shared file

Open deepquantum88 opened this issue 1 year ago • 8 comments

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.

deepquantum88 avatar Mar 27 '23 16:03 deepquantum88

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)

lockwo avatar Mar 27 '23 18:03 lockwo

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.

deepquantum88 avatar Mar 27 '23 19:03 deepquantum88

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

lockwo avatar Mar 27 '23 19:03 lockwo

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

deepquantum88 avatar Mar 27 '23 20:03 deepquantum88

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.

lockwo avatar Mar 27 '23 20:03 lockwo

any hope when it will be released?

deepquantum88 avatar Mar 27 '23 20:03 deepquantum88

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.

lockwo avatar Mar 27 '23 20:03 lockwo

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

jaeyoo avatar Apr 14 '23 22:04 jaeyoo