Reuse & Permissions

It is not necessary to obtain permission to reuse this article or its components as it is available under the terms of the Creative Commons Attribution 4.0 International license. This license permits unrestricted use, distribution, and reproduction in any medium, provided attribution to the author(s) and the published article's title, journal citation, and DOI are maintained. Please note that some figures may have been included with permission from other third parties. It is your responsibility to obtain the proper permission from the rights holder directly for these figures.

Export citation

Export citation

Choose format for download:

Download Citation
  • Open Access

Real-time error mitigation for variational optimization on quantum hardware

Matteo Robbiati1,2,*, Alejandro Sopena3,4, Andrea Papaluca3,5, and Stefano Carrazza1,2,3,6

  • *Contact author: matteo.robbiati@unimi.it

Phys. Rev. Research 8, 013262 – Published 9 March, 2026

DOI: https://doi.org/10.1103/zyb2-zl2d

Abstract

In this work, we put forward the inclusion of error mitigation routines in the process of training variational quantum circuit (VQC) models. In detail, we define a real-time quantum error mitigation (RTQEM) algorithm to assist in fitting functions on quantum chips with VQCs. While state-of-the-art QEM methods cannot address the exponential loss concentration induced by noise in current devices, we demonstrate that our RTQEM routine can enhance VQCs’ trainability by reducing the corruption of the loss function. We tested the algorithm by simulating and deploying the fit of a monodimensional u-quark parton distribution function on a superconducting single-qubit device, and we further analyzed the scalability of the proposed technique by simulating a multidimensional fit with up to eight qubits.

View figure in article

Physics Subject Headings (PhySH)

Article Text

References (73)

  1. J. Preskill, Quantum computing in the NISQ era and beyond, Quantum 2, 79 (2018).
  2. K. Bharti, A. Cervera-Lierta, T. H. Kyaw, T. Haug, S. Alperin-Lea, A. Anand, M. Degroote, H. Heimonen, J. S. Kottmann, T. Menke, W.-K. Mok, S. Sim, L.-C. Kwek, and A. Aspuru-Guzik, Noisy intermediate-scale quantum algorithms, Rev. Mod. Phys. 94, 015004 (2022).
  3. A. Peruzzo, J. McClean, P. Shadbolt, M.-H. Yung, X.-Q. Zhou, P. J. Love, A. Aspuru-Guzik, and J. L. O’Brien, A variational eigenvalue solver on a photonic quantum processor, Nat. Commun. 5, 4213 (2014).
  4. J. R. McClean, J. Romero, R. Babbush, and A. Aspuru-Guzik, The theory of variational hybrid quantum-classical algorithms, New J. Phys. 18, 023023 (2016).
  5. B. Bauer, D. Wecker, A. J. Millis, M. B. Hastings, and M. Troyer, Hybrid quantum-classical approach to correlated materials, Phys. Rev. X 6, 031045 (2016).
  6. T. Jones, S. Endo, S. McArdle, X. Yuan, and S. C. Benjamin, Variational quantum algorithms for discovering Hamiltonian spectra, Phys. Rev. A 99, 062304 (2019).
  7. E. Farhi and A. W. Harrow, Quantum supremacy through the quantum approximate optimization algorithm, arXiv:1602.07674
  8. S. Wang, E. Fontana, M. Cerezo, K. Sharma, A. Sone, L. Cincio, and P. J. Coles, Noise-induced barren plateaus in variational quantum algorithms, Nat. Commun. 12, 6961 (2021).
  9. J. R. McClean, S. Boixo, V. N. Smelyanskiy, R. Babbush, and H. Neven, Barren plateaus in quantum neural network training landscapes, Nat. Commun. 9, 4812 (2018).
  10. M. Cerezo, A. Sone, T. Volkoff, L. Cincio, and P. J. Coles, Cost function dependent barren plateaus in shallow parametrized quantum circuits, Nat. Commun. 12, 1791 (2021).
  11. A. Arrasmith, M. Cerezo, P. Czarnik, L. Cincio, and P. J. Coles, Effect of barren plateaus on gradient-free optimization, Quantum 5, 558 (2021).
  12. Z. Holmes, K. Sharma, M. Cerezo, and P. J. Coles, Connecting ansatz expressibility to gradient magnitudes and barren plateaus, PRX Quantum 3, 010313 (2022).
  13. M. Ragone, B. N. Bakalov, F. Sauvage, A. F. Kemper, C. Ortiz Marrero, M. Larocca, and M. Cerezo, A Lie algebraic theory of barren plateaus for deep parameterized quantum circuits, Nat. Commun. 15, 7172 (2024).
  14. N. L. Diaz, D. García-Martín, S. Kazi, M. Larocca, and M. Cerezo, Showcasing a barren plateau theory beyond the dynamical Lie algebra, arXiv:2310.11505.
  15. A. Kandala, K. Temme, A. D. Córcoles, A. Mezzacapo, J. M. Chow, and J. M. Gambetta, Error mitigation extends the computational reach of a noisy quantum processor, Nature (London) 567, 491 (2019).
  16. S. Wang, P. Czarnik, A. Arrasmith, M. Cerezo, L. Cincio, and P. J. Coles, Can error mitigation improve trainability of noisy variational quantum algorithms? Quantum 8, 1287 (2024).
  17. D. Qin, Y. Chen, and Y. Li, Error statistics and scalability of quantum error mitigation formulas, npj Quantum Inf. 9, 35 (2023).
  18. A. Strikis, D. Qin, Y. Chen, S. C. Benjamin, and Y. Li, Learning-based quantum error mitigation, PRX Quantum 2, 040330 (2021).
  19. M. Urbanek, B. Nachman, V. R. Pascuzzi, A. He, C. W. Bauer, and W. A. De Jong, Mitigating depolarizing noise on quantum computers with noise-estimation circuits, Phys. Rev. Lett. 127, 270502 (2021).
  20. S. A Rahman, R. Lewis, E. Mendicelli, and S. Powell, Self-mitigating Trotter circuits for SU(2) lattice gauge theory on a quantum computer, Phys. Rev. D 106, 074502 (2022).
  21. R. C. Farrell, I. A. Chernyshev, S. J. M. Powell, N. A. Zemlevskiy, M. Illa, and M. J. Savage, Preparations for quantum simulations of quantum chromodynamics in 1 + 1 dimensions. I. Axial gauge, Phys. Rev. D 107, 054512 (2023).
  22. A. N. Ciavarella, Quantum simulation of lattice QCD with improved Hamiltonians, Phys. Rev. D 108, 094513 (2023).
  23. R. C. Farrell, M. Illa, A. N. Ciavarella, and M. J. Savage, Scalable circuits for preparing ground states on digital quantum computers: The Schwinger model vacuum on 100 qubits, PRX Quantum 5, 020315 (2024).
  24. A. Pérez-Salinas, A. Cervera-Lierta, E. Gil-Fuster, and J. I. Latorre, Data re-uploading for a universal quantum classifier, Quantum 4, 226 (2020).
  25. D. P. Kingma and J. Ba, Adam: A method for stochastic optimization, arXiv:1412.6980.
  26. K. Mitarai, M. Negoro, M. Kitagawa, and K. Fujii, Quantum circuit learning, Phys. Rev. A 98, 032309 (2018).
  27. M. Schuld, V. Bergholm, C. Gogolin, J. Izaac, and N. Killoran, Evaluating analytic gradients on quantum hardware, Phys. Rev. A 99, 032331 (2019).
  28. S. Efthymiou, S. Ramos-Calderer, C. Bravo-Prieto, A. Pérez-Salinas, D. García-Martín, A. Garcia-Saez, J. I. Latorre, and S. Carrazza, Qibo: A framework for quantum simulation with hardware acceleration, Quantum Sci. Technol. 7, 015018 (2022).
  29. S. Efthymiou, M. Lazzarin, A. Pasquale, and S. Carrazza, Quantum simulation with just-in-time compilation, Quantum 6, 814 (2022).
  30. S. Carrazza, S. Efthymiou, M. Lazzarin, and A. Pasquale, An open-source modular framework for quantum computing, J. Phys.: Conf. Ser. 2438, 012148 (2023).
  31. S. Efthymiou, et al., qiboteam/qibo: Qibo 0.1.12 (2023), https://doi.org/10.5281/zenodo.17822128.
  32. S. Efthymiou, A. Orgaz-Fuertes, R. Carobene, J. Cereijo, A. Pasquale, S. Ramos-Calderer, S. Bordoni, D. Fuentes-Ruiz, A. Candido, E. Pedicillo, M. Robbiati, Y. P. Tan, J. Wilkens, I. Roth, J. I. Latorre, and S. Carrazza, Qibolab: An open-source hybrid quantum operating system, Quantum 8, 1247 (2024).
  33. S. Efthymiou, et al., qiboteam/qibolab: Qibolab 0.0.2 (2023), https://doi.org/10.5281/zenodo.17814902.
  34. R. Carobene, A. Candido, J. Serrano, A. Orgaz-Fuertes, A. Giachero, and S. Carrazza, Qibosoq: An open-source framework for quantum circuit RFSoC programming, Quantum Sci. Technol. 10, 035010 (2025).
  35. A. Pasquale, S. Efthymiou, S. Ramos-Calderer, J. Wilkens, I. Roth, and S. Carrazza, Towards an open-source framework to perform quantum calibration and characterization, arXiv:2303.10397.
  36. A. Pasquale, et al., qiboteam/qibocal: Qibocal 0.0.1 (2023), https://doi.org/10.5281/zenodo.18230323.
  37. E. Pedicillo, A. Pasquale, and S. Carrazza, Benchmarking machine learning models for quantum state classification EPJ Web Conf. 295, 12007 (2024).
  38. J. Biamonte, P. Wittek, N. Pancotti, P. Rebentrost, N. Wiebe, and S. Lloyd, Quantum machine learning, Nature (London) 549, 195 (2017).
  39. M. Schuld, I. Sinayskiy, and F. Petruccione, An introduction to quantum machine learning, Contemp. Phys. 56, 172 (2014).
  40. S. Y.-C. Chen, C.-H. H. Yang, J. Qi, P.-Y. Chen, X. Ma, and H.-S. Goan, Variational quantum circuits for deep reinforcement learning IEEE Access 8, 141007 (2020).
  41. S. Lloyd, M. Schuld, A. Ijaz, J. Izaac, and N. Killoran, Quantum embeddings for machine learning, arXiv:2001.03622.
  42. V. Havlíček, A. D. Córcoles, K. Temme, A. W. Harrow, A. Kandala, J. M. Chow, and J. M. Gambetta, Supervised learning with quantum-enhanced feature spaces, Nature (London) 567, 209 (2019).
  43. M. Incudini, D. L. Bosco, F. Martini, M. Grossi, G. Serra, and A. D. Pierro, Automatic and Effective Discovery of Quantum Kernels, in IEEE Transactions on Emerging Topics in Computational Intelligence (IEEE, 2024).
  44. A. Pérez-Salinas, J. Cruz-Martinez, A. A. Alhajri, and S. Carrazza, Determining the proton content with a quantum computer, Phys. Rev. D 103, 034027 (2021).
  45. D. E. Rumelhart, G. E. Hinton, and R. J. Williams, Learning representations by back-propagating errors, Nature (London) 323, 533 (1986).
  46. J. Duchi, E. Hazan, and Y. Singer, Adaptive subgradient methods for online learning and stochastic optimization, J. Mach. Learn. Res. 12, 2121 (2011).
  47. S. Ruder, An overview of gradient descent optimization algorithms, arXiv:1609.04747.
  48. J. Schmidhuber, Deep learning in neural networks: An overview, Neural. Net. 61, 85 (2015).
  49. A. Abbas, D. Sutter, C. Zoufal, A. Lucchi, A. Figalli, and S. Woerner, The power of quantum neural networks, Nat. Comput. Sci. 1, 403 (2021).
  50. G. E. Crooks, Gradients of parameterized quantum gates using the parameter-shift rule and gate decomposition, arXiv:1905.13311.
  51. D. Wierichs, J. Izaac, C. Wang, and C. Y.-Y. Lin, General parameter-shift rules for quantum gradients, Quantum 6, 677 (2022).
  52. A. Mari, T. R. Bromley, and N. Killoran, Estimating the gradient and higher-order derivatives on quantum hardware, Phys. Rev. A 103, 012405 (2021).
  53. L. Banchi and G. E. Crooks, Measuring analytic gradients of general quantum evolution with the stochastic parameter shift rule, Quantum 5, 386 (2021).
  54. R. Sweke, F. Wilde, J. Meyer, M. Schuld, P. K. Faehrmann, B. Meynard-Piganeau, and J. Eisert, Stochastic gradient descent for hybrid quantum-classical optimization, Quantum 4, 314 (2020).
  55. M. Robbiati, S. Efthymiou, A. Pasquale, and S. Carrazza, A quantum analytical Adam descent through parameter shift rule using Qibo, PoS ICHEP2022, 206 (2022).
  56. Y. Li and S. C. Benjamin, Efficient Variational Quantum Simulator Incorporating Active Error Minimization, Phys. Rev. X 7, 021050 (2017).
  57. K. Temme, S. Bravyi, and J. M. Gambetta, Error mitigation for short-depth quantum circuits, Phys. Rev. Lett. 119, 180509 (2017).
  58. A. Lowe, M. H. Gordon, P. Czarnik, A. Arrasmith, P. J. Coles, and L. Cincio, Unified approach to data-driven quantum error mitigation, Phys. Rev. Res. 3, 033098 (2021).
  59. P. Czarnik, A. Arrasmith, P. J. Coles, and L. Cincio, Error mitigation with Clifford quantum-circuit data, Quantum 5, 592 (2021).
  60. A. Sopena, M. H. Gordon, G. Sierra, and E. López, Simulating quench dynamics on a digital quantum computer with data-driven error mitigation, Quantum Sci. Technol. 6, 045003 (2021).
  61. E. van den Berg, Z. K. Minev, and K. Temme, Model-free readout-error mitigation for quantum expectation values, Phys. Rev. A 105, 032620 (2022).
  62. Z. Cai, R. Babbush, S. C. Benjamin, S. Endo, W. J. Huggins, Y. Li, J. R. McClean, and T. E. O’Brien, Quantum error mitigation, Rev. Mod. Phys. 95, 045005 (2023).
  63. S. Aaronson and D. Gottesman, Improved simulation of stabilizer circuits, Phys. Rev. A 70, 052328 (2004).
  64. H. Pashayan, O. Reardon-Smith, K. Korzekwa, and S. D. Bartlett, Fast Estimation of Outcome Probabilities for Quantum Circuits, PRX Quantum 3, 020361 (2022).
  65. B. Nachman, M. Urbanek, W. A. De Jong, and C. W. Bauer, Unfolding quantum computer readout noise, npj Quantum Inf. 6, 84 (2020).
  66. M. Robbiati, A. Sopena, BrunoLiegiBastonLiegi, and S. Carrazza, qiboteam/rtqem: Version 0.0.1 (2023), https://doi.org/10.5281/zenodo.10092274.
  67. R. D. Ball, S. Carrazza, J. Cruz-Martinez, L. D. Debbio, S. Forte, T. Giani, S. Iranipour, Z. Kassabov, J. I. Latorre, E. R. Nocera, R. L. Pearson, J. Rojo, R. Stegeman, C. Schwan, M. Ubiali, C. Voisey, and M. Wilson, The path to proton structure at 1% accuracy, Eur. Phys. J. C 82, 428 (2022).
  68. QuantWare (2023), https://quantware.com.
  69. Qblox Cluster (2023), https://docs.qblox.com/en/main/products/architecture/cluster/rf_cluster.html.
  70. qibolab_platforms_qrc (2023), https://github.com/qiboteam/qibolab_platforms_qrc.
  71. IQM Quantum Computers (2023), https://meetiqm.com.
  72. Zurich Instruments Quantum Computing Control System (2023), https://www.zhinst.com.
  73. A. D’Elia, et al., Characterization of a transmon qubit in a 3D cavity for quantum machine learning and photon counting, Appl. Sci. 14, 1478 (2024).

Outline

Information

Sign In to Your Journals Account

Filter

Filter

Article Lookup

Enter a citation