A simple python package to benchmark Quantum Boltzmann Machine models using Stochastic Gradient Descent. Based on the quantum many-body physics package `quimb`
I made changes to three programs: data.py, benchmark.py, and training.py.
I have confirmed that the output results are the same in case of without noise.
data.py
The function generate_data, which calculates target_expects originally calculated in benchmark.py, was created in this file.
It also supports depolarizing error, which was presented at the last meeting.
If the file path is given, the function outputs the pair (target_expects, target_density_matrix) as a pickle file.
For training, you can use the returned values from the function or read them from the file.
benchmark.py
Changed the program to use the above function generate_data to calculate target_expects.
In addition, the type of the argument target_eta in training.train_qbm was changed from GibbsState to qu.qarray in order to deal with the case with noise.
training.py
Changed the type of second argument of compute_qre method of QBM class from GibbsState to qu.qarray for the case with noise.
I made changes to three programs: data.py, benchmark.py, and training.py. I have confirmed that the output results are the same in case of without noise.
data.py The function generate_data, which calculates target_expects originally calculated in benchmark.py, was created in this file. It also supports depolarizing error, which was presented at the last meeting. If the file path is given, the function outputs the pair (target_expects, target_density_matrix) as a pickle file. For training, you can use the returned values from the function or read them from the file.
benchmark.py Changed the program to use the above function generate_data to calculate target_expects. In addition, the type of the argument target_eta in training.train_qbm was changed from GibbsState to qu.qarray in order to deal with the case with noise.
training.py Changed the type of second argument of compute_qre method of QBM class from GibbsState to qu.qarray for the case with noise.