Skip to content

Code that coarse-grains the Quantum-enhanced Markov Chain Monte Carlo

License

Notifications You must be signed in to change notification settings

quantumsoftwarelab/CGQeMCMC

 
 

Repository files navigation

Coarse grained Quantum-enhanced Markov Chain Monte Carlo

This is the code that was used for the numerical results in the paper: Quantum-enhanced Markov Chain Monte Carlo for systems larger than your Quantum Computer

It builds upon the numerics in Layden's work on the Quantum enhanced Markov Chain Monte Carlo (QeMCMC), with the main contribution focussed on applying a "coarse graining" to the quantum proposal in order to analyse the possibility of some dampened quantum speedup remaining while the number of required qubits is lowered.

Please see also https://github.com/pafloxy/quMCMC, which was used as a starting point for this code.

Authors and contact

For questions and suggestions, please contact Stuart Ferguson: S.A.Ferguson-3@sms.ed.ac.uk

This project was created by:

  • Stuart Ferguson

License

Distributed under the MIT License. See LICENSE.txt for more information.

Acknowledgements

Tutorial

An example experiment is given in the folder titled "Experiment", where a Markov Chain Monte Carlo algorithm is run for an example 9 spin instance. Classical "Uniform" and "local" update proposals are compared with a CGQeMCMC implimentation using only 3 simulated qubits. Even though the number of qubits is quadratically reduced from the number requred by the original algorithm of Layden et al, we still see quantum speedup. The following results can be viewed by running Analyse_all.py.

9_spin_E_example

We also include a tutorial jupyter notebook "tutorial.ipynb"

About

Code that coarse-grains the Quantum-enhanced Markov Chain Monte Carlo

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 62.4%
  • Jupyter Notebook 37.6%