prototype-zne


Nameprototype-zne JSON
Version 1.3.1 PyPI version JSON
download
home_pageNone
SummaryZero Noise Extrapolation (ZNE) prototype for error mitigation on
upload_time2024-02-06 14:12:46
maintainerNone
docs_urlNone
authorFriederike Metz, Areeq Hasan
requires_python>=3.8
licenseNone
keywords error mitigation zero noise extrapolation quantum computing quantum information science qiskit
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage
            <!-- SHIELDS -->
<div align="left">

  ![Platform](https://img.shields.io/badge/Platform-Linux%20%7C%20macOS%20%7C%20Windows-informational)
  [![Python](https://img.shields.io/badge/Python-3.8%20%7C%203.9%20%7C%203.10%20%7C%203.11%20%7C%203.12-informational)](https://www.python.org/)
  [![Qiskit](https://img.shields.io/badge/Qiskit-%E2%89%A5%200.45.1-6133BD)](https://github.com/Qiskit/qiskit)
<br />
  [![Tests](https://github.com/qiskit-community/prototype-zne/actions/workflows/test.yml/badge.svg)](https://github.com/qiskit-community/prototype-zne/actions/workflows/test.yml)
  [![Coverage](https://coveralls.io/repos/github/qiskit-community/prototype-zne/badge.svg?branch=main)](https://coveralls.io/github/qiskit-community/prototype-zne?branch=main)
  [![Release](https://img.shields.io/github/release/qiskit-community/prototype-zne.svg?include_prereleases&label=Release)](https://github.com/qiskit-community/prototype-zne/releases)
  [![DOI](https://img.shields.io/badge/DOI-zz.nnnn/zenodo.ddddddd-informational)](https://zenodo.org/)
  [![License](https://img.shields.io/github/license/qiskit-community/prototype-zne?label=License)](LICENSE.txt)

</div>
<!-- PROJECT LOGO -->
<br />
<p align="center">
  <a href="README.md">
    <img src="https://github.com/qiskit-community/prototype-zne/blob/main/docs/media/cover.png?raw=true" alt="Logo" width="300">
  </a>
  <h2 align="center">Zero Noise Extrapolation (ZNE)</h2>
</p>
<!-- QUICK LINKS -->
<!-- <p align="center">
  <a href="https://mybinder.org/">
    <img src="https://ibm.biz/BdPq3s" alt="Launch Demo" hspace="5" vspace="10">
  </a>
  <a href="https://www.youtube.com/c/qiskit">
    <img src="https://img.shields.io/badge/watch-video-FF0000.svg?style=for-the-badge&logo=youtube" alt="Watch Video" hspace="5" vspace="10">
  </a>
</p> -->


----------------------------------------------------------------------

### Table of contents

1. [About This Project](#about-this-project)
2. [About Prototypes](#about-prototypes)
3. [Deprecation Policy](#deprecation-policy)
4. [Using Quantum Services](#using-quantum-services)
5. [Acknowledgements](#acknowledgements)
6. [References](#references)
7. [License](#license)

#### For users
1. [Installation](https://github.com/qiskit-community/prototype-zne/blob/main/INSTALL.md)
2. [Tutorials](https://github.com/qiskit-community/prototype-zne/tree/main/docs/tutorials/)
3. [Reference Guide](https://github.com/qiskit-community/prototype-zne/blob/main/docs/reference_guide.md)
4. [How-tos](https://github.com/qiskit-community/prototype-zne/tree/main/docs/how_tos/)
5. [Explanations](https://github.com/qiskit-community/prototype-zne/tree/main/docs/explanations/)
6. [How to Give Feedback](https://github.com/qiskit-community/prototype-zne/blob/main/CONTRIBUTING.md#giving-feedback)

#### For developers
1. [Contribution Guidelines](https://github.com/qiskit-community/prototype-zne/blob/main/CONTRIBUTING.md)


----------------------------------------------------------------------

### About This Project

This module builds on top of the [_Estimator_ primitive official specification](https://github.com/qiskit-community/prototype-zne/blob/main/docs/tutorials/0-estimator.ipynb), providing a highly customizable _zero noise extrapolation_ (ZNE) workflow for error mitigation on expectation value calculations. This is achieved by [injecting orchestrated ZNE capabilities](https://github.com/qiskit-community/prototype-zne/blob/main/docs/tutorials/1-zne.ipynb) into an `Estimator` class of choice in two phases:

1. [Amplifying the noise](https://github.com/qiskit-community/prototype-zne/blob/main/docs/tutorials/2-noise_amplification.ipynb) introduced by the gates of input circuits.
2. Extrapolating the returned expectation values to the zero noise limit.

In principle, this prototype is compatible with any `Estimator` class as long as it implements the [`qiskit.primitives.BaseEstimator` interface](https://github.com/Qiskit/qiskit/tree/main/qiskit/primitives) (e.g. `qiskit.primitives.Estimator`, `qiskit.primitives.BackendEstimator`, `qiskit_ibm_runtime.Estimator`). Notice, however, that error mitigation techniques only make sense in the context of noisy computations; therefore using ZNE on noisless platforms (e.g. simulators), although technically possible, will not produce better results.

Furthermore, the software architecture has been devised specifically to allow users to create their custom noise amplification and extrapolation techniques, and to plug them into the overall ZNE workflow seamlessly. Libraries of pre-implemented strategies for both of these tasks are provided in the module, and external packages can easily be made to work with this tool by providing [implementations of well defined interfaces](https://github.com/qiskit-community/prototype-zne/blob/main/docs/reference_guide.md#custom-zne-strategies) for these tasks.

Before using the module for new work, users should read through the [reference guide](https://github.com/qiskit-community/prototype-zne/blob/main/docs/reference_guide.md), specifically the [current limitations](https://github.com/qiskit-community/prototype-zne/blob/main/docs/reference_guide.md#current-limitations) of the module. Demo [tutorials](https://github.com/qiskit-community/prototype-zne/tree/main/docs/tutorials) are also available as jupyter notebooks.


----------------------------------------------------------------------

### About Prototypes

Prototypes is a collaboration between developers and researchers that will give users early access to solutions from cutting-edge research in areas like error mitigation, quantum simulation, and machine learning. These software packages are built on top of, and may eventually be integrated into the Qiskit SDK. They are a contribution as part of the Qiskit community.

Check out our [landing page](https://qiskit-community.github.io/prototypes/) and [blog post](https://medium.com/qiskit/try-out-the-latest-advances-in-quantum-computing-with-ibm-quantum-prototypes-11f51124cb61) for more information!


----------------------------------------------------------------------

### Deprecation Policy

Prototypes are meant to evolve rapidly and, as such, do not follow [Qiskit's deprecation policy](https://qiskit.org/documentation/contributing_to_qiskit.html#deprecation-policy). We may occasionally make breaking changes in order to improve the user experience. When possible, we will keep old interfaces and mark them as deprecated, as long as they can co-exist with the new ones. Each substantial improvement, breaking change, or deprecation will be documented in [`CHANGELOG.md`](https://github.com/qiskit-community/prototype-zne/blob/main/CHANGELOG.md).


----------------------------------------------------------------------

### Using Quantum Services

If you are interested in using quantum services (i.e. using a real quantum computer, not a simulator) you can look at the [Qiskit Partners program](https://qiskit.org/documentation/partners/) for partner organizations that have provider packages available for their offerings.

Importantly, *[Qiskit IBM Runtime](https://qiskit.org/documentation/partners/qiskit_ibm_runtime)* is a quantum computing service and programming model that allows users to optimize workloads and efficiently execute them on quantum systems at scale; extending the existing interface in Qiskit with a set of new *primitive* programs.


----------------------------------------------------------------------

### Acknowledgements

- __Mario Motta__: for scientific insight and guidance.
- __Julien Gacon__: for providing a util function that maps gate names to the corresponding gate classes and for general discussions.
- __Derek Wang__: for suggesting new features and stress-testing the tool.

----------------------------------------------------------------------

### References

[1] Kandala, Abhinav, et al. "Extending the computational reach of a noisy superconducting quantum processor." arXiv:1805.04492(2018).

[2] Stamatopoulos, Nikitas, et al. "Option pricing using quantum computers." Quantum4 (2020): 291.

[3] LaRose, Ryan, et al. "Mitiq: A software package for error mitigation on noisy quantum computers." arXiv:2009.04417(2020).

[4] Kim, Youngseok, et al. "Scalable error mitigation for noisy quantum circuits produces competitive expectation values." arXiv:2108.09197(2021).

[5] T. Giurgica-Tiron, Y. Hindy, R. LaRose, A. Mari and W. J. Zeng, "Digital zero noise extrapolation for quantum error mitigation," 2020 IEEE International Conference on Quantum Computing and Engineering (QCE), Denver, CO, USA, 2020, pp. 306-316, doi: 10.1109/QCE49297.2020.00045.


----------------------------------------------------------------------

### License
[Apache License 2.0](https://github.com/qiskit-community/prototype-zne/blob/main/LICENSE.txt)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "prototype-zne",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "Pedro Rivero <pedro.rivero@ibm.com>",
    "keywords": "error mitigation,zero noise extrapolation,quantum computing,quantum information science,qiskit",
    "author": "Friederike Metz, Areeq Hasan",
    "author_email": "Pedro Rivero <pedro.rivero@ibm.com>, Caleb Johnson <caleb.johnson@ibm.com>, Agata Branczyk <agata.branczyk@ibm.com>",
    "download_url": "https://files.pythonhosted.org/packages/fb/9f/c975f8ab1b8f4aa2262f09f841d1a45d2df1f07d6c16b35169a4e13ee1fa/prototype_zne-1.3.1.tar.gz",
    "platform": null,
    "description": "<!-- SHIELDS -->\n<div align=\"left\">\n\n  ![Platform](https://img.shields.io/badge/Platform-Linux%20%7C%20macOS%20%7C%20Windows-informational)\n  [![Python](https://img.shields.io/badge/Python-3.8%20%7C%203.9%20%7C%203.10%20%7C%203.11%20%7C%203.12-informational)](https://www.python.org/)\n  [![Qiskit](https://img.shields.io/badge/Qiskit-%E2%89%A5%200.45.1-6133BD)](https://github.com/Qiskit/qiskit)\n<br />\n  [![Tests](https://github.com/qiskit-community/prototype-zne/actions/workflows/test.yml/badge.svg)](https://github.com/qiskit-community/prototype-zne/actions/workflows/test.yml)\n  [![Coverage](https://coveralls.io/repos/github/qiskit-community/prototype-zne/badge.svg?branch=main)](https://coveralls.io/github/qiskit-community/prototype-zne?branch=main)\n  [![Release](https://img.shields.io/github/release/qiskit-community/prototype-zne.svg?include_prereleases&label=Release)](https://github.com/qiskit-community/prototype-zne/releases)\n  [![DOI](https://img.shields.io/badge/DOI-zz.nnnn/zenodo.ddddddd-informational)](https://zenodo.org/)\n  [![License](https://img.shields.io/github/license/qiskit-community/prototype-zne?label=License)](LICENSE.txt)\n\n</div>\n<!-- PROJECT LOGO -->\n<br />\n<p align=\"center\">\n  <a href=\"README.md\">\n    <img src=\"https://github.com/qiskit-community/prototype-zne/blob/main/docs/media/cover.png?raw=true\" alt=\"Logo\" width=\"300\">\n  </a>\n  <h2 align=\"center\">Zero Noise Extrapolation (ZNE)</h2>\n</p>\n<!-- QUICK LINKS -->\n<!-- <p align=\"center\">\n  <a href=\"https://mybinder.org/\">\n    <img src=\"https://ibm.biz/BdPq3s\" alt=\"Launch Demo\" hspace=\"5\" vspace=\"10\">\n  </a>\n  <a href=\"https://www.youtube.com/c/qiskit\">\n    <img src=\"https://img.shields.io/badge/watch-video-FF0000.svg?style=for-the-badge&logo=youtube\" alt=\"Watch Video\" hspace=\"5\" vspace=\"10\">\n  </a>\n</p> -->\n\n\n----------------------------------------------------------------------\n\n### Table of contents\n\n1. [About This Project](#about-this-project)\n2. [About Prototypes](#about-prototypes)\n3. [Deprecation Policy](#deprecation-policy)\n4. [Using Quantum Services](#using-quantum-services)\n5. [Acknowledgements](#acknowledgements)\n6. [References](#references)\n7. [License](#license)\n\n#### For users\n1. [Installation](https://github.com/qiskit-community/prototype-zne/blob/main/INSTALL.md)\n2. [Tutorials](https://github.com/qiskit-community/prototype-zne/tree/main/docs/tutorials/)\n3. [Reference Guide](https://github.com/qiskit-community/prototype-zne/blob/main/docs/reference_guide.md)\n4. [How-tos](https://github.com/qiskit-community/prototype-zne/tree/main/docs/how_tos/)\n5. [Explanations](https://github.com/qiskit-community/prototype-zne/tree/main/docs/explanations/)\n6. [How to Give Feedback](https://github.com/qiskit-community/prototype-zne/blob/main/CONTRIBUTING.md#giving-feedback)\n\n#### For developers\n1. [Contribution Guidelines](https://github.com/qiskit-community/prototype-zne/blob/main/CONTRIBUTING.md)\n\n\n----------------------------------------------------------------------\n\n### About This Project\n\nThis module builds on top of the [_Estimator_ primitive official specification](https://github.com/qiskit-community/prototype-zne/blob/main/docs/tutorials/0-estimator.ipynb), providing a highly customizable _zero noise extrapolation_ (ZNE) workflow for error mitigation on expectation value calculations. This is achieved by [injecting orchestrated ZNE capabilities](https://github.com/qiskit-community/prototype-zne/blob/main/docs/tutorials/1-zne.ipynb) into an `Estimator` class of choice in two phases:\n\n1. [Amplifying the noise](https://github.com/qiskit-community/prototype-zne/blob/main/docs/tutorials/2-noise_amplification.ipynb) introduced by the gates of input circuits.\n2. Extrapolating the returned expectation values to the zero noise limit.\n\nIn principle, this prototype is compatible with any `Estimator` class as long as it implements the [`qiskit.primitives.BaseEstimator` interface](https://github.com/Qiskit/qiskit/tree/main/qiskit/primitives) (e.g. `qiskit.primitives.Estimator`, `qiskit.primitives.BackendEstimator`, `qiskit_ibm_runtime.Estimator`). Notice, however, that error mitigation techniques only make sense in the context of noisy computations; therefore using ZNE on noisless platforms (e.g. simulators), although technically possible, will not produce better results.\n\nFurthermore, the software architecture has been devised specifically to allow users to create their custom noise amplification and extrapolation techniques, and to plug them into the overall ZNE workflow seamlessly. Libraries of pre-implemented strategies for both of these tasks are provided in the module, and external packages can easily be made to work with this tool by providing [implementations of well defined interfaces](https://github.com/qiskit-community/prototype-zne/blob/main/docs/reference_guide.md#custom-zne-strategies) for these tasks.\n\nBefore using the module for new work, users should read through the [reference guide](https://github.com/qiskit-community/prototype-zne/blob/main/docs/reference_guide.md), specifically the [current limitations](https://github.com/qiskit-community/prototype-zne/blob/main/docs/reference_guide.md#current-limitations) of the module. Demo [tutorials](https://github.com/qiskit-community/prototype-zne/tree/main/docs/tutorials) are also available as jupyter notebooks.\n\n\n----------------------------------------------------------------------\n\n### About Prototypes\n\nPrototypes is a collaboration between developers and researchers that will give users early access to solutions from cutting-edge research in areas like error mitigation, quantum simulation, and machine learning. These software packages are built on top of, and may eventually be integrated into the Qiskit SDK. They are a contribution as part of the Qiskit community.\n\nCheck out our [landing page](https://qiskit-community.github.io/prototypes/) and [blog post](https://medium.com/qiskit/try-out-the-latest-advances-in-quantum-computing-with-ibm-quantum-prototypes-11f51124cb61) for more information!\n\n\n----------------------------------------------------------------------\n\n### Deprecation Policy\n\nPrototypes are meant to evolve rapidly and, as such, do not follow [Qiskit's deprecation policy](https://qiskit.org/documentation/contributing_to_qiskit.html#deprecation-policy). We may occasionally make breaking changes in order to improve the user experience. When possible, we will keep old interfaces and mark them as deprecated, as long as they can co-exist with the new ones. Each substantial improvement, breaking change, or deprecation will be documented in [`CHANGELOG.md`](https://github.com/qiskit-community/prototype-zne/blob/main/CHANGELOG.md).\n\n\n----------------------------------------------------------------------\n\n### Using Quantum Services\n\nIf you are interested in using quantum services (i.e. using a real quantum computer, not a simulator) you can look at the [Qiskit Partners program](https://qiskit.org/documentation/partners/) for partner organizations that have provider packages available for their offerings.\n\nImportantly, *[Qiskit IBM Runtime](https://qiskit.org/documentation/partners/qiskit_ibm_runtime)* is a quantum computing service and programming model that allows users to optimize workloads and efficiently execute them on quantum systems at scale; extending the existing interface in Qiskit with a set of new *primitive* programs.\n\n\n----------------------------------------------------------------------\n\n### Acknowledgements\n\n- __Mario Motta__: for scientific insight and guidance.\n- __Julien Gacon__: for providing a util function that maps gate names to the corresponding gate classes and for general discussions.\n- __Derek Wang__: for suggesting new features and stress-testing the tool.\n\n----------------------------------------------------------------------\n\n### References\n\n[1] Kandala, Abhinav, et al. \"Extending the computational reach of a noisy superconducting quantum processor.\" arXiv:1805.04492(2018).\n\n[2] Stamatopoulos, Nikitas, et al. \"Option pricing using quantum computers.\" Quantum4 (2020): 291.\n\n[3] LaRose, Ryan, et al. \"Mitiq: A software package for error mitigation on noisy quantum computers.\" arXiv:2009.04417(2020).\n\n[4] Kim, Youngseok, et al. \"Scalable error mitigation for noisy quantum circuits produces competitive expectation values.\" arXiv:2108.09197(2021).\n\n[5] T. Giurgica-Tiron, Y. Hindy, R. LaRose, A. Mari and W. J. Zeng, \"Digital zero noise extrapolation for quantum error mitigation,\" 2020 IEEE International Conference on Quantum Computing and Engineering (QCE), Denver, CO, USA, 2020, pp. 306-316, doi: 10.1109/QCE49297.2020.00045.\n\n\n----------------------------------------------------------------------\n\n### License\n[Apache License 2.0](https://github.com/qiskit-community/prototype-zne/blob/main/LICENSE.txt)\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Zero Noise Extrapolation (ZNE) prototype for error mitigation on",
    "version": "1.3.1",
    "project_urls": {
        "Documentation": "https://github.com/qiskit-community/prototype-zne/tree/main/docs/",
        "Download": "https://pypi.org/project/prototype-zne/",
        "Home": "https://qiskit-community.github.io/prototypes/",
        "Repository": "https://github.com/qiskit-community/prototype-zne/"
    },
    "split_keywords": [
        "error mitigation",
        "zero noise extrapolation",
        "quantum computing",
        "quantum information science",
        "qiskit"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "7d5fccbd0c520deedab8e5998ea8f587e089337de0c20a3f0a900d411186b1d0",
                "md5": "598ecf6f00449f4716f3a7b2b4e6a843",
                "sha256": "c2fe9835146a1af17e7470f707208b35b712e32f021c353cdf1b25961703ccca"
            },
            "downloads": -1,
            "filename": "prototype_zne-1.3.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "598ecf6f00449f4716f3a7b2b4e6a843",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 56526,
            "upload_time": "2024-02-06T14:12:44",
            "upload_time_iso_8601": "2024-02-06T14:12:44.540305Z",
            "url": "https://files.pythonhosted.org/packages/7d/5f/ccbd0c520deedab8e5998ea8f587e089337de0c20a3f0a900d411186b1d0/prototype_zne-1.3.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "fb9fc975f8ab1b8f4aa2262f09f841d1a45d2df1f07d6c16b35169a4e13ee1fa",
                "md5": "3dfd9c7a788beb703986568ab7288415",
                "sha256": "646bb77bd795c431e3e1a5b4f440c3d18e8143bdc1d4ee2136c552be32fde4c1"
            },
            "downloads": -1,
            "filename": "prototype_zne-1.3.1.tar.gz",
            "has_sig": false,
            "md5_digest": "3dfd9c7a788beb703986568ab7288415",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 5565008,
            "upload_time": "2024-02-06T14:12:46",
            "upload_time_iso_8601": "2024-02-06T14:12:46.413053Z",
            "url": "https://files.pythonhosted.org/packages/fb/9f/c975f8ab1b8f4aa2262f09f841d1a45d2df1f07d6c16b35169a4e13ee1fa/prototype_zne-1.3.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-06 14:12:46",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "qiskit-community",
    "github_project": "prototype-zne",
    "travis_ci": true,
    "coveralls": true,
    "github_actions": true,
    "tox": true,
    "lcname": "prototype-zne"
}
        
Elapsed time: 2.90876s