Comments (2)
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:
Reply: Yes, we need to have the python package Matplotlib installed before installing PyPlot and I forgot to mention this. In the revised Readme.md, I will point this out.
I added "../src" to LOAD_PATH to make the example work:
Reply: I tried the code on three devices: Linux, Mac intel, and Mac M1. It seems that they all work well.
First, I use these four command lines to build the working env:
$ git clone https://github.com/LWKJJONAK/Quantum_Neural_Network_Classifiers
$ cd Quantum_Neural_Network_Classifiers
$ julia --project=amplitude_encode -e "using Pkg; Pkg.instantiate()"
$ julia --project=block_encode -e "using Pkg; Pkg.instantiate()"
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:
CircuitStyles.textcolor[]="yellow"
CircuitStyles.linecolor[]="yellow"
Reply: Thank you for this suggestion, and I will put these codes in the revised Readme.md.
from quantum_neural_network_classifiers.
Thanks for the detailed reply. I admit I did not read the README.md file carefully. I am at fault. Sorry about that.
Gordon.
from quantum_neural_network_classifiers.
Related Issues (3)
- TODO HOT 1
- Amplitude -encoding HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quantum_neural_network_classifiers.