Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in tfq_simulate_ops #762

Open
VishuKalier2003 opened this issue Apr 4, 2023 · 3 comments
Open

Error in tfq_simulate_ops #762

VishuKalier2003 opened this issue Apr 4, 2023 · 3 comments

Comments

@VishuKalier2003
Copy link

I tried to open and extract the files using tfq_simulate_ops but it didnt work. Can someone please provide me with more insights.

@lockwo
Copy link
Contributor

lockwo commented Apr 4, 2023

What are you trying to do that you are encountering this? Install from source ?

@QuantumJaeYoo
Copy link
Collaborator

Could you please guide us where the error happens?

@jaeyoo
Copy link
Member

jaeyoo commented Apr 14, 2023

Hi @VishuKalier2003 ,

I installed tensorflow quantum from scratch based on the newly updated https://github.com/jaeyoo/quantum/blob/master/docs/install.md#4-build-tensorflow-from-source. Please pay attention to the TF build line with the explanations:

Build the TensorFlow package (Since TF v2.8, _GLIBCXX_USE_CXX11_ABI is set to 1, and the c++ codes are all compiled with -std=c++17):

Because we are bumping up to TF v2.11.0, your old TF with ABI=0 will give you the error message like tfq_simulate_ops load_library failure.

Please, please rebuild TF and install it in your "NEW" python venv from scratch.

  bazel build -c opt --cxxopt="-O3" --cxxopt="-march=native" --cxxopt="-std=c++17" --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=1" //tensorflow/tools/pip_package:build_pip_package

As you can see, ABI is changed from 0 to 1, and std is upgraded to c++17.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants