Metadata-Version: 2.1
Name: qrem
Version: 0.1.7
Summary: QREM package provides a versatile set of tools for the characterization and mitigation of readout noise in NISQ quantum devices.
Author-email: "Jan Tuziemski, Filip Maciejewski, Joanna Majsak, Oskar Słowik, Marcin Kotowski, Katarzyna Kowalczyk-Murynka, Paweł Przewłocki, Piotr Podziemski, Michał Oszmaniec" <oszmaniec@cft.edu.pl>
Maintainer-email: Michał Oszmaniec <oszmaniec@cft.edu.pl>
Project-URL: Homepage, https://github.com/cft-nisq/qrem
Project-URL: GitHub, https://github.com/cft-nisq/qrem
Project-URL: Documentation, https://cft-nisq.github.io/qrem/index.html
Project-URL: Article, http://arxiv.org/abs/2311.10661
Keywords: quantum,nisq,quantum-devices,quantum-physics,physics,sdk,qiskit
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Scientific/Engineering :: Physics
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: ipykernel>=6.1.0
Requires-Dist: python-dotenv>=1.0.0
Requires-Dist: colorama>=0.4.6
Requires-Dist: orjson>=3.9.10
Requires-Dist: tqdm>=4.64.0
Requires-Dist: numpy<1.24,>=1.18.0
Requires-Dist: scipy>=1.7.0
Requires-Dist: pandas>=1.5.0
Requires-Dist: picos>=2.4.0
Requires-Dist: qiskit>=0.43.3
Requires-Dist: qiskit-ibm-runtime>=0.11.2
Requires-Dist: qiskit-ibm-provider>=0.6.1
Requires-Dist: qiskit-braket-provider>=0.0.3
Requires-Dist: amazon-braket-sdk>=1.61.0
Requires-Dist: qutip>=4.7.1
Requires-Dist: matplotlib>=3.6.0
Requires-Dist: seaborn>=0.12.0
Requires-Dist: networkx<3.0,>=0.12.0
Requires-Dist: sympy>=1.11.0
Requires-Dist: pyquil>=4.0.3
Requires-Dist: configargparse>=1.5.0
Provides-Extra: visualization
Requires-Dist: manim>=0.17.2; extra == "visualization"
Provides-Extra: test
Requires-Dist: pytest-cov~=3.0.0; extra == "test"

# QREM - Quantum Readout Errors Mitigation

This package provides a versatile set of tools for the characterization and mitigation of readout noise in NISQ devices. Standard characterization approaches become infeasible with the growing size of a device, since the number of circuits required to perform tomographic reconstruction of a measurement process grows exponentially in the number of qubits. In QREM  we use efficient techniques that circumvent those problems by focusing on reconstructing local properties of the readout noise.

You can find article based on initial version of this package [here - http://arxiv.org/abs/2311.10661](http://arxiv.org/abs/2311.10661) and the corresponding code used at the moment of writning the article [here](https://github.com/cft-nisq/qrem/tree/article-eff).

<img src="http://quantin.pl/wp-content/uploads/2023/03/washington_26_04_2022_worst_case_classical_threshold_2.png"
  alt="Plot of correlation coefficients determined in characterization on device layout"
  title="Plot of correlation coefficients determined in characterization on device layout"
  style="display: inline-block
  margin: 0 auto
  max-width: 400px"/>

## Status of development

This package is released now as an alpha version, to gather feedback while it undergoes final adjustments prior to the first release. As it is under heavy development, existing functionalities might change, while new functionalities and notebooks are expected to be added in the future.


## Documentation

Current documentation (work in progress) is available [here](https://cft-nisq.github.io/qrem/index.html)

## Introduction

The two current main functionalities are:

### **Noise characterization**

* experiment design
* hardware experiment implementation and data processing (on devices supported by qiskit/pyquil)
* readout noise characterisation
* learning of noise models

### **Noise mitigation**

* mitigation based on noise model provided by user ( currently available is CN, CTMP is under development)

## Installation

The best way to install this package is to use pip (see [pypi website](https://pypi.org/project/qrem/)):

```console
pip install qrem
```

This method will automatically install all required dependecies (see [below for list of dependecies](#dependencies)).

## Dependencies

For **qrem** package to work properly, the following libraries should be present (and will install if you install via pip):

* "numpy >= 1.18.0, < 1.24",
* "scipy >= 1.7.0",
* "tqdm >= 4.46.0",
* "colorama >= 0.4.3",
* "qiskit >= 0.39.4",
* "networkx >= 0.12.0, < 3.0",
* "pandas >= 1.5.0",
* "picos >= 2.4.0",
* "qiskit-braket-provider >= 0.0.3",
* "qutip >= 4.7.1",
* "matplotlib >= 3.6.0",
* "seaborn >= 0.12.0",
* "sympy >= 1.11.0",
* "pyquil >= 3.0.0",
* "pyquil-for-azure-quantum",
* "ipykernel >= 6.1.0",
* "configargparse >= 1.5.0",
* "python-dotenv >= 1.0.0",

## Optional dependencies

Dependecies for visualizations:

* "manim >= 0.17.2"
  
## References

**The workflow of this package is mainly based on works**:
  
[1] Filip B. Maciejewski, Zoltán Zimborás, Michał Oszmaniec, "Mitigation of readout noise in near-term quantum devices by classical post-processing based on detector tomography", [Quantum 4, 257 (2020)](https://quantum-journal.org/papers/q-2020-04-24-257/)

[2] Filip B. Maciejewski, Flavio Baccari, Zoltán Zimborás, Michał Oszmaniec, "Modeling and mitigation of cross-talk effects in readout noise with applications to the Quantum Approximate Optimization Algorithm", [Quantum 5, 464 (2021)](https://quantum-journal.org/papers/q-2021-06-01-464/)

**Further references:**

[3]. Sergey Bravyi, Sarah Sheldon, Abhinav Kandala, David C. Mckay, Jay M. Gambetta, Mitigating measurement errors in multi-qubit experiments, [Phys. Rev. A 103, 042605 (2021)](https://journals.aps.org/pra/abstract/10.1103/PhysRevA.103.042605)
  
[4]. Flavio Baccari, Christian Gogolin, Peter Wittek, and Antonio Acín, Verifying the output of quantum optimizers with ground-state energy lower bounds, [Phys. Rev. Research 2, 043163 (2020)](https://journals.aps.org/prresearch/abstract/10.1103/PhysRevResearch.2.043163)
