[go: nahoru, domu]

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

AttributeError: module 'tensorflow_quantum' has no attribute 'resolve_parameters' #440

Closed
Raghvender1205 opened this issue Nov 20, 2020 · 8 comments
Assignees

Comments

@Raghvender1205
Copy link

I was following up with the Quantum Data notebook on Tensorflow Quantum.
During
def prepare_pqk_circuits(qubits, classical_source, n_trotter=10):
in the last i returned
return tfq.resolve_parameters(
full_circuits, tf.convert_to_tensor([str(x) for x in symbols]),
tf.convert_to_tensor(classical_source*(n_qubits/3)/n_trotter))
but when testing and preparing data encoding around the dataset it gave me this error
and its very slow to execute

https://www.tensorflow.org/quantum/tutorials/quantum_data

@Raghvender1205
Copy link
Author

Anyone who would like to help me on this.

@MichaelBroughton
Copy link
Collaborator

Hi @Raghvender1205 . I wasn't able to reproduce this issue in cloud. I ran the tutorial by clicking on the "Run in Google Colab" button here https://www.tensorflow.org/quantum/tutorials/quantum_data and it ran all the way through just fine. If you are running on your local machine, could you first make sure you are running TensorFlow 2.3.1 as well as TensorFlow Quantum 0.4.0 to see if that fixes things ? If the error persists could you please provide more details on what OS, version of python as well as a more detailed error log etc. ?

@MichaelBroughton MichaelBroughton self-assigned this Nov 21, 2020
@Raghvender1205
Copy link
Author
Raghvender1205 commented Nov 21, 2020 via email

@MichaelBroughton
Copy link
Collaborator

Any updates on this ?

@Raghvender1205
Copy link
Author

I am not able to execute the code on jupyter due to
Lib\site-packages\tensorflow_quantum\core\ops_tfq_simulate_ops.so not found
error, but it showed no error with Google Cloud

@MichaelBroughton
Copy link
Collaborator

This is still not enough information to begin to try and diagnose the problem. Can you take a look at issues like this one: #407 and include the full output logs, what particular section caused the error as well as what OS + versions of python, tfq etc. you are working with.

@Raghvender1205
Copy link
Author
Raghvender1205 commented Dec 3, 2020 via email

@MichaelBroughton
Copy link
Collaborator

Any updates on this ?

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

2 participants