PECOS is a library/framework for the evaluation, study, and design of QEC protocols. It also provides the ability to study and evaluate the performance advanced hybrid quantum/classical compute execution models for NISQ algorithms and beyond.
Project description
Performance Estimator of Codes On Surfaces (PECOS) is a library/framework dedicated to the study, development, and evaluation of quantum error-correction protocols. It offers tools for the study and evaluation of hybrid quantum/classical compute execution models for NISQ algorithms and beyond.
Initially conceived and developed in 2014 to verify lattice-surgery procedures presented in arXiv:1407.5103 and released publicly in 2018, PECOS filled a significant gap in the QEC/QC tools available at that time. Over the years, it has grown into a framework for studying general QECCs and hybrid computation.
With an emphasis on clarity, flexibility, and performance and catering to both QEC students and developers, PECOS is refined continually with these attributes in mind.
Features
- Quantum Error-Correction Tools: Advanced tools for studying quantum error-correction protocols and error models.
- Hybrid Quantum/Classical Execution: Evaluate advanced hybrid compute models, including support for classical compute, calls to Wasm VMs, conditional branching, and more.
- Fast Simulation: Leverage the fast stabilizer-simulation algorithm.
- Extensible: Add-ons and extensions support in C and C++ via Cython.
Getting Started
Explore the capabilities of PECOS by delving into the official documentation.
Versioning
We follow semantic versioning principles. However, before version 1.0.0, the MAJOR.MINOR.BUG format sees the roles of MAJOR and MINOR shifted down a step. This means potential breaking changes might occur between MINOR increments, such as moving from versions 0.1.0 to 0.2.0.
Latest Development
Stay updated with the latest developments on the PECOS Development branch.
Installation
- Clone or download the desired version of PECOS.
- Navigate to the root directory, where
pyproject.tomlis located. - Install using pip:
pip install .
To install optional dependencies, such as for Wasm support or state vector simulations, see pyproject.toml for list of
options. To install all optional dependencies use:
pip install .[all]
Certain simulators have special requirements and are not installed by the command above. Installation instructions for these are provided here.
For development, use (while including installation options as necessary):
On Linux/Mac:
python -m venv .venv
source .venv/bin/activate
pip install -U pip setuptools
pip install -r requirements.txt
make metadeps
pre-commit install
pip install -e .
On Windows:
python -m venv .venv
.\venv\Scripts\activate
pip install -U pip setuptools
pip install -r requirements.txt
make metadeps
pre-commit install
pip install -e .
See Makefile for other useful commands.
Tests can be run using:
pytest tests
Simulators with special requirements
Certain simulators from pecos.simulators require external packages that are not installed by pip install .[all].
CuStateVecrequires a Linux machine with an NVIDIA GPU (see requirements here). PECOS' dependencies are specified in the[cuda]section ofpyproject.tomland can be installed viapip install .[cuda]. If installation is not successful, see alternative instructions here.
Uninstall
To uninstall:
pip uninstall quantum-pecos
Citing
For publications utilizing PECOS, kindly cite PECOS such as:
@misc{pecos,
author={Ciaran Ryan-Anderson},
title={PECOS: Performance Estimator of Codes On Surfaces},
journal={GitHub},
howpublished={\url{https://github.com/PECOS-packages/PECOS}},
URL = {https://github.com/PECOS-packages/PECOS},
year={2018}
}
@phdthesis{crathesis,
author={Ciaran Ryan-Anderson},
school = {University of New Mexico},
title={Quantum Algorithms, Architecture, and Error Correction},
journal={arXiv:1812.04735},
year={2018}
}
License
This project is licensed under the Apache-2.0 License - see the LICENSE and NOTICE files for details.
Supported by
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file quantum_pecos-0.5.0.dev11.tar.gz.
File metadata
- Download URL: quantum_pecos-0.5.0.dev11.tar.gz
- Upload date:
- Size: 164.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a997e8b415e96a9050027011ab69e8b7991825768366c92b61b9ca57e980f18f
|
|
| MD5 |
0495b9e430de77b285e29ad7ddb16355
|
|
| BLAKE2b-256 |
f66ed3cd6be858d9e6070c13e377cc36180e720668e3f9967af6f597a6cde94b
|
File details
Details for the file quantum_pecos-0.5.0.dev11-py2.py3-none-any.whl.
File metadata
- Download URL: quantum_pecos-0.5.0.dev11-py2.py3-none-any.whl
- Upload date:
- Size: 322.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f5b520b7a1df31b6f0a3bed40ceb3ef99ea36348c406eecb74d6d35876e66d7
|
|
| MD5 |
38975d19da53efef795fabe05a1473e8
|
|
| BLAKE2b-256 |
004eebf73db10d684b84165acb83dae52eef934c3ec6504d85edaa0e73c83c23
|