Skip to content
This repository was archived by the owner on Jul 19, 2026. It is now read-only.
 
 

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quantifying the advantages of applying quantum approximate algorithms to portfolio optimisation source code

This repository contains the source code required to plot the data presented in:

Yuan, H., Long, C. K., Lepage, H. V. & Barnes, C. H. Quantifying the advantages of applying quantum approximate algorithms to portfolio optimisation. Quantum Science and Technology (2026) doi:http://iopscience.iop.org/article/10.1088/2058-9565/ae4a48.

A Python library is developed for this project and have been packaged. The decision to distribute the library separately was taken to increase the reusability of the code and improve the code quality and robustness by decoupling the modules. The supporting libray to reproduce the data is in

Source code repository: https://github.com/HomoY/QGMVP

How to install

  • Clone the repo
  • cd to the repo folder and run pip install -r requirements.txt from the cloned repo under your virtual environment
  • chmod +x fetchdata.sh and ./fetchdata.sh to download data from figshare
  • You will also need to install $\LaTeX$ to get figures correct.

Reproducing the figures

Open figure.ipynb in Jupyter Notebook or VS Code and run the code cells sequentially to reproduce the figures and results.

About

The source code required to reproduce and plot the data in: Yuan et al 2026 Quantum Sci. Technol.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages