-
Notifications
You must be signed in to change notification settings - Fork 13
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
Working version of example_encode on Mac M1 #4
Comments
Hi Prof. Erlebacher: Thank you very much for your comment! Here is my point-by-point reply: PyPlot cannot be installed. Use Plots.heatmap to plot an array: I added "../src" to LOAD_PATH to make the example work:
Then I can run all the tutorial codes in the .ipynb files (e.g. https://github.com/LWKJJONAK/Quantum_Neural_Network_Classifiers/blob/main/amplitude_encode/an_example_code_for_the_whole_training_procedure.ipynb). I don't know what exactly the problem is (did you follow the four command lines to install the packages? On our Mac M1 device, we made it work without adding "../src" to LOAD_PATH). We also write "using Quantum_Neural_Network_Classifiers: ent_cx, params_layer, acc_loss_evaluation" into a .jl file and use the command line "julia --project=amplitude_encode a.jl" to successfully run it. In case you have a dark background, change the line and text color of YaoPlots.plot:
Reply: Thank you for this suggestion, and I will put these codes in the revised Readme.md. |
Thanks for the detailed reply. I admit I did not read the README.md file carefully. I am at fault. Sorry about that. |
Hi,
Your code has multiple issues preventing it from running on the Mac M1 on Big Sur with Julia 1.8.2 . Below is a version that runs correctly:
Issues:
Working code
The text was updated successfully, but these errors were encountered: