Implementation of the Multi-Angle Quantum Approximate Optimization Algorithm (MA-QAOA) for the Maximum Cut (MaxCut) problem with Qiskit
Here you can find the code we use in some of our quantum optimization projects.
classescontains two classes, one to generate graph instances for the MaxCut problem and the other to implement and MA-QAOA-type quantum circuits.datacontains some pre-generated data (graphs created with theProblemsclass) and an example data generation notebook.documentationcontains two minimal documentation notebooks about the classes and utilities in this repository.functionscontains utilities to work with the classes inclasses, solve the MaxCut problem and othe related tasks.tutorialscontains a minimal example notebook showing a possible pipeline where the MaxCut problem is solved in a specific instance.config.pyis a configuration file used to specify some settings (e.g. the number of QAOA layers).requirements.txtcontains the requirements (install the file before using the code in this repository)LICENSEMIT License.
If you want to use the code in this repository in your projects, please cite explicitely our work, and
- Clone the repository with
git clone https://github.com/leonardoLavagna/ma_qaoa - Install the requirements with
pip install -r requirements.txt
For further guidance check the examples in the documentation and tutorials directories.
We welcome contributions to enhance the functionality and performance of the models. Please submit pull requests or open issues for any improvements or bug fixes.
This project is licensed under the MIT License.
Cite this repository or one of the associated papers, such as:
@INPROCEEDINGS{Lav24,
author={Lavagna, Leonardo and Ceschini, Andrea and Rosato, Antonello and Panella, Massimo},
booktitle={2024 International Joint Conference on Neural Networks (IJCNN)},
title={A Layerwise-Multi-Angle Approach to Fine-Tuning the Quantum Approximate Optimization Algorithm},
year={2024},
volume={},
number={},
pages={1-8},
keywords={Costs;Sensitivity;Quantum algorithm;Approximation algorithms;Prediction algorithms;Robustness;Quantum circuit},
doi={10.1109/IJCNN60899.2024.10650075}}