Skip to main content
Ctrl+K
NordIQuEst Application Library - Home NordIQuEst Application Library - Home

Application Library

  • NordIQuEst Application Library
  • Hybrid Algorithms
    • Quantum Approximate Optimization Algorithm (QAOA)
      • Comparison of Different Optimizers for QAOA on a Max Cut instance
    • Quantum Chemistry
      • Installation instructions
      • Theory: Quantum Chemistry on Quantum Computers
      • Notebook example: VQE
    • Quantum Walk
      • Classical Random Walk on a Quantum Computer
      • Quantum Random Walk on a Quantum Computer
    • Variational Quantum Eigensolver (VQE) Tutorial
      • Cirq: Variational Quantum Eigensolver for \(H_2\)
      • Qiskit: Variational Quantum Eigensolver for \(H_2\)
    • Quantum Reservoir Computing
      • Quantum Reservoir Computing: Logistic map
  • Real Devices
    • ex3-qal9000 Demo
      • ex3-qal9000 Demo: StateTomography on QAL9000
    • Introduction to Helmi with Qiskit
  • Simulators
    • ex3 Simulators
      • Running Quantum programs on the Qiskit Simulator in eX3
      • QSIM
      • Guide of Running QuEST in eX3
    • LUMI Simulators
      • Qiskit
        • v0.12.0
        • v1.1.1
      • QSim
      • QuEST
  • Training Material Archive
    • Quantum Autumn School 2022
      • Notebooks
        • Quantum programming I
        • Quantum programming II
        • Quantum programming III
        • Use case: Optimization
        • Use case: Quantum chemistry
        • Quantum software testing with Quito
      • Slides
        • The HPC-QC landscape
        • Overview of different QC hardware approaches and QC types
        • Introduction to high-level languages for QC
        • The hybrid HPC-QC approach
        • Overview of the software stack
        • Hybrid classical/quantum algorithms
        • Quantum software testing
    • Quantum Autumn School 2023
      • Notebooks
        • Tutorial - Quantum chemistry
        • Tutorial - Introduction to Helmi with qiskit
        • Tutorial - Quantum Alternating Operator Ansatz
        • Solutions - Tutorial - Quantum Alternating Operator Ansatz
        • Tutorial - Qubit Spectroscopy Analysis
      • Slides
        • HPC-QC integration
        • QC software stack
        • Hybrid Classical/Quantum Algorithms
    • NeIC 2024 Workshop: Quantum Computing 101
      • Setup
      • Workshop: Quantum Computing 101 Part I
      • Workshop: Quantum Computing 101 Part II
    • Quantum Autumn School 2024
      • Notebooks
        • Tutorial - Fault-Tolerant Quantum Computing with CSS codes
        • Tutorial - MAP Decoding Exercise
        • Tutorial - Solving Flight Scheduling Optimization using QAOA
        • Tutorial - Introduction to Helmi
        • Tutorial - Pricing a European call option using quantum computing
        • Tutorial - Pricing a European call option on a quantum computer
        • Tutorial - Variational Quantum Algorithms
        • Tutorial - Estimating the Surface Code Threshold
      • Slides
        • Integration of High Performance Computing and Quantum Computing
        • Quantum Computing for Materials Science
        • Tergite Software Stack
        • Introduction to Helmi
        • Quantum walks on quantum computers
        • Quantum Extreme Learning Machine: Case Studies on Software Testing
        • Option pricing on a quantum computer
        • Quantum Error Correction: Theory and Hands-on
        • Distributed Quantum Computing
        • Quantum Amplitude Estimation
        • Quantum Sweden Innovation Platform
        • Introduction to variational quantum algorithms: VQE and QAOA
        • Icelandic National Competence Center (NCC) for HPC & AI – Quantum Computing Activities
  • Quantum Software Testing Tools
    • Run Software Testing Tools on Jupyter Notebook
    • Welcome to Quito!
    • Welcome to QuSBT!
    • Welcome to QuCAT!

Information

  • Contributors
  • Acknowledgement
  • .rst

Quantum Approximate Optimization Algorithm (QAOA)

Contents

  • Setup

Quantum Approximate Optimization Algorithm (QAOA)#

Download the requirements.txt

Setup#

Requires Python 3.10 or newer (tested with Python 3.13 and 3.14).

python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Then open the notebooks in Jupyter, e.g. with pip install jupyterlab && jupyter lab.

  • Comparison of Different Optimizers for QAOA on a Max Cut instance
    • 1. Import the python QAOA package
    • 2. Create Barabási–Albert graph instance, more examples can be found here https://github.com/OpenQuantumComputing/data
    • 3. Create a QAOA instance
    • 4.1 draw the circuit for the initial state
    • 4.2 draw the circuit for the problem
    • 4.3 draw the circuit for the mixer
    • 6. Below the approximation ratios are plotted for the different optimizers. From the figure we see that the different optimizers give roughly the same approximation ratio.

previous

Hybrid Algorithms

next

Comparison of Different Optimizers for QAOA on a Max Cut instance

Contents
  • Setup

By NordIQuEst

© Copyright 2024, NordIQuEst.

https://nordiquest.net

Funding

NordIQuEst is a project of the Nordic e-Infrastructure Collaboration (NeIC).. NeIC is an organisational unit under NordForsk..

Project Manager: Alberto Lanzanova (alberto.lanzanova at csc.fi)