Skip to main content
QUICK REVIEW

[Paper Review] Theory and Implementation of the Quantum Approximate Optimization Algorithm: A Comprehensible Introduction and Case Study Using Qiskit and IBM Quantum Computers

Andreas Sturm|arXiv (Cornell University)|Jan 23, 2023
Quantum Computing Algorithms and ArchitectureComputer Science3 citations
TL;DR

This paper presents a comprehensive tutorial on the Quantum Approximate Optimization Algorithm (QAOA), demonstrating its theory and implementation using Qiskit and IBM Quantum hardware. It guides readers through modeling a real-world charging scheduling problem as a QUBO, implementing QAOA circuits, and executing them on the 27-qubit ibmq_ehningen device, revealing that problem size and qubit coupling complexity are critical constraints on current quantum hardware performance.

ABSTRACT

The present tutorial aims to provide a comprehensible and easily accessible introduction into the theory and implementation of the famous Quantum Approximate Optimization Algorithm (QAOA). We lay our focus on practical aspects and step-by-step guide through the realization of a proof of concept quantum application based on a real-world use case. In every step we first explain the underlying theory and subsequently provide the implementation using IBM's Qiskit. In this way we provide a thorough understanding of the mathematical modelling and the (quantum) algorithms as well as the equally important knowledge how to properly write the code implementing those theoretical concepts. As another central aspect of this tutorial we provide extensive experiments on the 27 qubits state-of-the-art quantum computer ibmq_ehningen. From the discussion of these experiments we gain an overview on the current status of quantum computers and deduce which problem sizes can meaningfully be executed on today's hardware.

Motivation & Objective

  • To provide a comprehensible, step-by-step introduction to the QAOA algorithm for researchers and practitioners.
  • To demonstrate the end-to-end workflow of modeling a real-world optimization problem as a QUBO and solving it via QAOA.
  • To evaluate the feasibility of running QAOA on current noisy intermediate-scale quantum (NISQ) hardware, particularly the 27-qubit ibmq_ehningen system.
  • To analyze the impact of classical optimization, transpilation, and error mitigation on the quality of quantum results.

Proposed method

  • Model a real-world charging scheduling problem as a binary quadratic optimization problem with hard and soft constraints.
  • Convert the problem into a QUBO using penalty methods and binary encoding for integer variables.
  • Transform the QUBO into an Ising Hamiltonian to enable QAOA implementation on quantum hardware.
  • Implement the QAOA circuit using Qiskit’s QAOAAnsatz with tunable parameters and measure all qubits.
  • Optimize the circuit via a transpilation pipeline tailored for IBM Quantum’s architecture.
  • Execute experiments on both simulators and the real ibmq_ehningen 27-qubit quantum processor, with post-processing using Pandas.

Experimental results

Research questions

  • RQ1How can a real-world scheduling problem be effectively modeled as a QUBO for quantum optimization?
  • RQ2What is the impact of problem coupling structure and qubit count on the success probability of QAOA on current NISQ devices?
  • RQ3How do classical optimization routines and parameter selection affect the convergence and quality of QAOA solutions?
  • RQ4To what extent do transpilation and error mitigation techniques improve the fidelity of experimental results on real quantum hardware?
  • RQ5What are the current hardware limitations in executing QAOA for practical problem sizes on ibmq_ehningen?

Key findings

  • The 27-qubit ibmq_ehningen quantum processor successfully executed QAOA circuits for small-scale charging scheduling problems, demonstrating the feasibility of real hardware deployment.
  • Problem size and variable coupling complexity were identified as key factors determining whether a problem is feasible on current quantum hardware, with high coupling reducing success rates.
  • Classical optimization of QAOA parameters significantly affects the quality of results, and convergence is sensitive to initial parameter choices and optimization landscape.
  • Transpilation and error mitigation techniques substantially improved the fidelity and reliability of experimental outcomes on real hardware.
  • Despite optimization, the quality of results on real devices remained limited compared to ideal simulations, highlighting current noise and decoherence challenges.
  • The study confirms that while QAOA is implementable on current hardware, meaningful results are currently restricted to small to medium-sized problems with low coupling density.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.