This repository contains the code related to the manuscript "Variational measurement-based quantum computation for generative modeling". The article mainly talks about the applications of quantum circuits based on Measurement-Based Quantum Computation(MBQC) in the realm of generative modeling. All the simulations are implemented using Pennylane and pytorch.
-
The mathematica file named "mbqcvqc_example_publish.nb" contains the necessary code to prove Theorem1 in the manuscript.
-
The folder generative VMBQC contains two files:
$(a)$ The VMBQC_functions.py script contains the main model of our manuscript i.e. the quantum circuit built using the theory of Quantum Cellular Automata inspired from MBQC. We refer to our article for details.$(b)$ The 8 qubits Double Gaussian.ipynb file contains the steps of the algorithm of our manuscript starting from initializing the model, sampling bitstrings, and calculating MMD loss and gradients manually to optimize the entire model. We again refer to our article for details.