Metadata-Version: 2.4
Name: erado
Version: 1.0.0a1
Summary: Simulation suite for erasure noise and postselection as quantum error mitigation.
Project-URL: homepage, https://oqc.tech
Project-URL: repository, https://github.com/oqc-community/erado
Project-URL: documentation, https://oqc-community.github.io/erado
Author-email: Sam Griffiths <sgriffiths@oqc.tech>
License-Expression: BSD-3-Clause
License-File: LICENSE
Requires-Python: >=3.13
Requires-Dist: matplotlib>=3.10.6
Requires-Dist: numpy>=2.3.3
Requires-Dist: pydantic>=2.12.0
Requires-Dist: qiskit-aer-gpu-cu11>=0.17.2; sys_platform == 'linux'
Requires-Dist: qiskit-aer>=0.17.2; sys_platform != 'linux'
Requires-Dist: qiskit>=2.2.1
Requires-Dist: scipy>=1.16.2
Description-Content-Type: text/markdown

# erado

Simulation suite for erasure noise and postselection as quantum error mitigation.

[![build](https://github.com/oqc-tech/erado/actions/workflows/build.yaml/badge.svg)](https://github.com/oqc-tech/erado/actions/workflows/build.yaml) [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit) [![OQC PyPI](https://img.shields.io/badge/OQC%20PyPI-latest-cornflowerblue?logo=pypi)](https://pypi.int.oqc.app/simple/erado) [![docs](https://img.shields.io/badge/Sphinx-docs-orange?logo=sphinx)](https://oqc-tech.github.io/erado)

[**ērādō**](https://en.wiktionary.org/wiki/erado) \
Latin verb; *third conjugation*

1. to scrape away, pare
2. to abolish, eradicate, remove
3. to ***erase***, delete

## Overview

[`erado`](https://github.com/oqc-tech/erado) is [OQC](https://oqc.tech/)'s [Qiskit](https://github.com/Qiskit/qiskit)-based Python library for the simulation of circuit-level erasure noise and postselection, with arbitrary quantum circuits.

For installation/usage instructions and API reference, please see [the library documentation](https://oqc-tech.github.io/erado).

<!-- TODO: Update links/authors etc. below. -->

For theoretical background and numerical details, see our corresponding paper: ['The limits of erasure-based postselection for quantum error mitigation,' 2026, arXiv:xxxx.xxxx [quant-ph]](https://arxiv.org/abs/0000.00000), written by [Sam J. Griffiths](https://github.com/sgriffiths-oqc), [Jamie Friel](https://github.com/jfriel-oqc) and [Brian Vlastakis](https://github.com/bvlastakis-oqc).

If using or referencing this work, please cite the paper as follows ([BibLaTeX](https://ctan.org/pkg/biblatex)):

```bibtex
@online{griffithsLimitsErasurebasedPostselection2026,
  title = {The Limits of Erasure-Based Postselection for Quantum Error Mitigation},
  author = {Griffiths, Sam J. and Friel, Jamie and Vlastakis, Brian},
  date = {2026-03-07},
  eprint = {0000.00000},
  eprinttype = {arXiv},
  eprintclass = {quant-ph},
  doi = {00.00000/arXiv.0000.00000},
  url = {https://arxiv.org/abs/0000.00000},
  pubstate = {prepublished}
}
```

## Installation

### Published package

The `erado` Python package is published to PyPI (<https://pypi.int.oqc.app/simple>), so you can install it easily via pip (or any similar package manager), e.g.:

```shell
pip install erado -i https://pypi.int.oqc.app/simple
```

or add it as a dependency in your `pyproject.toml` file (e.g. if using uv/Poetry).

> ⚠️ **NOTE:**
> GPU capabilities are provided by the [`qiskit-aer-gpu-cu11`](https://pypi.org/project/qiskit-aer-gpu-cu11/) package, which is only available on x86_64 Linux. Therefore, `qiskit-aer-gpu-cu11` will be installed if `sys.platform() == "linux"`, otherwise `qiskit-aer` will be installed (i.e. if on Windows etc.).

### From source (uv)

This package uses [uv](https://docs.astral.sh/uv) for Python project management. For more information on installation from source and development/testing utilities, please see our [contribution guidelines](./CONTRIBUTING.md).

## Usage

*TODO: brief, simplest example(s).*

For a more detailed introduction to how and why to use this library, see our ['Getting Started'](./getting-started.rst) page.

## Acknowledgements

This work was supported by the Innovate UK Quantum Missions pilot competition 10148061 DECIDE: Dimon error correction integrated into a data-centre environment.
