DISCLAIMER: This codebase is sampled from Tensorflow Quantum and Google's Training with Multiple Workers using TensorFlow Quantum blog. Google Cloud is utilized to create multiple workers.
Steps:
- Use
./setup.sh infra
followed by./setup.sh params
to set up the necessary Google Cloud resources and initalize parameters into the rest of the code files. The parameters insidesetup.sh
will need to be modified according to your Google Cloud setup. - Run
make training
to create two workers that will then initalize a quantum circuit, respectively, and begin to train data. From here, the edges and weights as well as loss and accuracy should be stored in Google Cloud.