Skip to main content

A collection of functions for multipartite entanglement purification protocols (EPP) on noisy graph states

Project description


PyPI Docs Tests, Artifacts and Release

GraphEPP is a collection of functions for multipartite entanglement purification protocols (EPP) on noisy graph states.



You can install GraphEEP into your python environment from the Python Package Index: (possibly overwriting already installed package versions in your environment with its dependencies):

pip install graphepp

As with all python packages, this can possible overwrite already installed package versions with its dependencies, which is why we recommend installing it in a dedicated virtual environment.

If you encounter any problems, you can try installing it the exact versions of GraphEPP's dependencies that were used to develop it (specified in Pipfile.lock). This assumes Python 3.8 and pipenv are installed on your system:

git clone
cd graphepp
git checkout main
pipenv sync
pipenv install graphepp

and then use pipenv shell to activate the virtual environment


This project provides functions for operations on quantum states that are diagonal in the graph state basis corresponding to a chosen graph state. (for an introduction to graph states see e.g. arXiv:quant-ph/0602096) These include:

as well as auxiliary functions like local complementation of graphs.

Example use case: Perform multiple rounds of EPP on a noisy linear cluster state of 5 qubits when the CNOT operations used in the EPP are themselves imperfect (e.g. modeled by local depolarizing noise).


An earlier (unreleased) version of GraphEPP was used for these publications:

Two-dimensional quantum repeaters
J. Wallnöfer, M. Zwerger, C. Muschik, N. Sangouard, and W. Dür
Phys. Rev. A 94, 052307 (2016)
Preprint: arXiv:1604.05352 [quant-ph]

Measurement-based quantum communication with resource states generated by entanglement purification
J. Wallnöfer and W. Dür
Phys. Rev. A 95, 012303 (2017)
Preprint: arXiv:1609.05754 [quant-ph]

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

graphepp-0.4.tar.gz (45.8 kB view hashes)

Uploaded source

Built Distribution

graphepp-0.4-py3-none-any.whl (10.5 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page