Skip to main navigation Skip to search Skip to main content

Migrating QAOA from Qiskit 1.x to 2.x: An experience report

  • Julien Cardinal
  • , Imen Benzarti
  • , Ghizlane El Boussaidi
  • , Christophe Pere
  • École de technologie supérieure

Research output: Contribution to Book/Report typesContribution to conference proceedingspeer-review

Abstract

Migrating quantum algorithms across evolving frameworks introduces subtle behavioral changes that affect accuracy and reproducibility. This paper reports our experience converting the Quantum Approximate Optimization Algorithm (QAOA) from Qiskit Algorithms with Qiskit 1.x (v1 primitives) to a custom implementation using Qiskit 2.x (v2 primitives). Despite identical circuits, optimizers, and Hamiltonians, the new version produced drastically different results. A systematic analysis revealed the root cause: the sampling budget - the number of circuit executions (shots) per iteration. The library's implicit use of unlimited shots yielded dense probability distributions, whereas the v2 default of 10000 shots captured only 23% of the state space. Increasing shots to 250000 restored library-level accuracy. This study highlights how hidden parameters at the quantum-classical interaction level can dominate hybrid algorithm performance and provides actionable recommendations for developers and framework designers to ensure reproducible results in quantum software migration.

Original languageEnglish
Title of host publicationProceedings - 2026 IEEE/ACM International Workshop on Quantum Software Engineering, Q-SE 2026
PublisherAssociation for Computing Machinery, Inc
Pages25-32
Number of pages8
ISBN (Electronic)9798400723834
DOIs
Publication statusPublished - 2 Jun 2026
Event7th International Workshop on Quantum Software Engineering, Q-SE 2026 - Rio de Janeiro, Brazil
Duration: 12 Apr 202618 Apr 2026

Publication series

NameProceedings - 2026 IEEE/ACM International Workshop on Quantum Software Engineering, Q-SE 2026

Conference

Conference7th International Workshop on Quantum Software Engineering, Q-SE 2026
Country/TerritoryBrazil
CityRio de Janeiro
Period12/04/2618/04/26

!!!Keywords

  • QAOA
  • Quantum algorithms
  • Quantum Optimization
  • Software Architecture Recovery problem

Fingerprint

Dive into the research topics of 'Migrating QAOA from Qiskit 1.x to 2.x: An experience report'. These topics are generated from the title and abstract of the publication. Together, they form a unique fingerprint.

Cite this