Migrating QAOA from Qiskit 1.x to 2.x: An experience report
- URL: http://arxiv.org/abs/2512.08245v1
- Date: Tue, 09 Dec 2025 04:58:56 GMT
- Title: Migrating QAOA from Qiskit 1.x to 2.x: An experience report
- Abstract summary: Migrating quantum algorithms across evolving frameworks introduces subtle behavioral changes that affect accuracy and algorithms.<n>This paper reports our experience converting the Quantum Algorithm Optimization (QAOA) from Qiskit with Qiskit 1.x (v1 primitives) to a custom implementation using Qiskit 2.x (v2 primitives)<n>Despite identical circuits, Approximates, and Hamiltonians, the new version produced drastically different results.
- Score: 0.3679863727963206
- License: http://creativecommons.org/licenses/by-nc-nd/4.0/
- 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 10 000 shots captured only 23% of the state space. Increasing shots to 250 000 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.
Related papers
- Unified Uncertainty Quantification Framework Bridging Noisy Quantum Backends Across Variational Quantum Algorithms and Quantum Signal Processing [8.883414927945458]
We present an uncertainty quantification (UQ) framework for application level benchmarking and characterization of noisy quantum backends.<n>The framework compares two workload classes under one statistical pipeline: noisy intermediate scale quantum (NISQ) variational quantum algorithms (VQAs) and Quantum Singular Value Transformation (QSVT) based Green's function reconstruction.
arXiv Detail & Related papers (2026-07-15T22:10:05Z) - Benchmarking neutral atom-based quantum processors at scale [0.22940141855172033]
neutral atom-based quantum computation has been established as a competing alternative for fault-tolerant quantum computation.<n>We present two systematic benchmarks that evaluate these quantum processors at scale.
arXiv Detail & Related papers (2025-11-28T08:19:20Z) - Quantum measurement tomography with mini-batch stochastic gradient descent [0.0]
Drawing inspiration from gradient-descent methods developed for data processing in quantum state tomography [hrefhttps://iopscience.iop.org/article088/2058-9565/ae0baaQuantum Sci.Technol.textbf10 045055 (2025)] and quantum process tomography [hrefhttps://journals.aps.org/prl/abstract103/PhysRevLett.130.150402Phys.Rev.Lett.textbf130, 150402 (2023)], we
arXiv Detail & Related papers (2025-11-19T18:30:15Z) - QSpec: Speculative Decoding with Complementary Quantization Schemes [53.960146187821685]
Quantization is widely adopted to accelerate inference and reduce memory consumption in large language models (LLMs)<n>We propose QSpec, a novel quantization paradigm that decouples efficiency from quality.<n>QSpec reuses both weights and KV cache across stages, enabling near-zero-cost switching without retraining or auxiliary models.
arXiv Detail & Related papers (2024-10-15T05:57:51Z) - Bayesian Optimization Priors for Efficient Variational Quantum Algorithms [0.0]
Quantum computers currently rely on a quantum-classical approach known as Variational Quantum Algorithms (VQAs) to solve problems.
We propose a hybrid framework for basic computational optimization that reduces the number of shots per time is charged.
Using both proposed features, we show that using both proposed features statistically outperforms an implementation within VQAs for simulations.
arXiv Detail & Related papers (2024-06-20T18:00:12Z) - Quantum Subroutine for Variance Estimation: Algorithmic Design and Applications [80.04533958880862]
Quantum computing sets the foundation for new ways of designing algorithms.
New challenges arise concerning which field quantum speedup can be achieved.
Looking for the design of quantum subroutines that are more efficient than their classical counterpart poses solid pillars to new powerful quantum algorithms.
arXiv Detail & Related papers (2024-02-26T09:32:07Z) - Unifying (Quantum) Statistical and Parametrized (Quantum) Algorithms [65.268245109828]
We take inspiration from Kearns' SQ oracle and Valiant's weak evaluation oracle.
We introduce an extensive yet intuitive framework that yields unconditional lower bounds for learning from evaluation queries.
arXiv Detail & Related papers (2023-10-26T18:23:21Z) - Zero-Shot Sharpness-Aware Quantization for Pre-trained Language Models [88.80146574509195]
Quantization is a promising approach for reducing memory overhead and accelerating inference.
We propose a novel-aware quantization (ZSAQ) framework for the zero-shot quantization of various PLMs.
arXiv Detail & Related papers (2023-10-20T07:09:56Z) - QUANTIFY: A framework for resource analysis and design verification of
quantum circuits [69.43216268165402]
QUANTIFY is an open-source framework for the quantitative analysis of quantum circuits.
It is based on Google Cirq and is developed with Clifford+T circuits in mind.
For benchmarking purposes QUANTIFY includes quantum memory and quantum arithmetic circuits.
arXiv Detail & Related papers (2020-07-21T15:36:25Z) - APQ: Joint Search for Network Architecture, Pruning and Quantization
Policy [49.3037538647714]
We present APQ for efficient deep learning inference on resource-constrained hardware.
Unlike previous methods that separately search the neural architecture, pruning policy, and quantization policy, we optimize them in a joint manner.
With the same accuracy, APQ reduces the latency/energy by 2x/1.3x over MobileNetV2+HAQ.
arXiv Detail & Related papers (2020-06-15T16:09:17Z) - Enabling Accuracy-Aware Quantum Compilers using Symbolic Resource
Estimation [3.961270923919885]
Approximation errors must be taken into account when compiling quantum programs into a low-level gate set.
We present a methodology that tracks such errors automatically and then optimize accuracy parameters to guarantee a specified overall accuracy.
We develop two prototype implementations, one in C++ based on Clang/LLVM, and another using the Q# compiler infrastructure.
arXiv Detail & Related papers (2020-03-18T18:00:24Z) - Least squares binary quantization of neural networks [19.818087225770967]
We focus on the binary quantization, in which values are mapped to -1 and 1.
Inspired by the pareto-optimality of 2-bits versus 1-bit quantization, we introduce a novel 2-bits quantization with provably least squares error.
arXiv Detail & Related papers (2020-01-09T00:01:14Z)
This list is automatically generated from the titles and abstracts of the papers in this site.
This site does not guarantee the quality of this site (including all information) and is not responsible for any consequences.