Skip to main content

License: MIT CI Python CI Bindings codecov

QECC: An MQT tool for Quantum Error Correcting Codes written in C++

⚠️ This project is still in early development and breaking changes might happen frequently.

(Additionally to the basic numerical results already provided, further data will be published continually)

A tool for quantum error correcting codes and numerical simulations developed by the Chair for Design Automation at the Technical University of Munich based on methods proposed in [1]. QECC is part of the Munich Quantum Toolkit (MQT).

The tool can be used to decode quantum LDPC codes and conduct respective numerical simulations.

At the moment the general QLDPC decoder [2] and a heuristic (which improves the runtime of the algorithm) [1] are implemented. Currently, open-source software by Joschka Roffe et al.: [3] is used to construct codes (toric, lifted product and hypergraph product).

Documentation

If you have any questions, feel free to contact us via quantum.cda@xcit.tum.de or by creating an issue on GitHub.

Getting Started

QECC is available via PyPI for Linux, macOS, and Windows.

(venv) $ pip install mqt.qecc

The following code gives an example on the usage:

from mqt.qecc import *
import numpy as np

H = [
    [1, 0, 0, 1, 0, 1, 1],
    [0, 1, 0, 1, 1, 0, 1],
    [0, 0, 1, 0, 1, 1, 1]
]
code = Code(H, H)
decoder = UFHeuristic()
decoder.set_code(code)
x_err = sample_iid_pauli_err(code.N, 0.05)
decoder.decode(code.get_x_syndrome(x_err))
result = decoder.result
print(result)
residual_err = np.array(x_err) ^ np.array(result.estimate)
print(code.is_x_stabilizer(residual_err))

Detailed documentation on all available methods, options, and input formats is available at ReadTheDocs.

System Requirements and Building

The implementation is compatible with any C++17 compiler and a minimum CMake version of 3.14. Please refer to the documentation on how to build the project.

Building (and running) is continuously tested under Linux, macOS, and Windows using the latest available system versions for GitHub Actions.

Reference

If you use our tool for your research, we will be thankful if you refer to it by citing the appropriate publication:

a L. Berent, L. Burgholzer, and R. Wille, "Software Tools for Decoding Quantum Low-Density Parity Check Codes," in Asia and South Pacific Design Automation Conference (ASP-DAC), 2023

Metadata

Release files for mqt.qecc 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mqt.qecc 1.1.0
File Size Uploaded Provenance Actions
mqt.qecc-1.1.0.tar.gz 1.5 MB Without provenance Details for mqt.qecc-1.1.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for mqt.qecc 1.1.0
File Actions
mqt.qecc-1.1.0-cp311-cp311-manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64 Details for mqt.qecc-1.1.0-cp311-cp311-manylinux_2_28_x86_64.whl
mqt.qecc-1.1.0-cp311-cp311-macosx_10_15_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.15+ x86-64 Details for mqt.qecc-1.1.0-cp311-cp311-macosx_10_15_x86_64.whl
mqt.qecc-1.1.0-cp310-cp310-manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ x86-64 Details for mqt.qecc-1.1.0-cp310-cp310-manylinux_2_28_x86_64.whl
mqt.qecc-1.1.0-cp310-cp310-macosx_10_15_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.15+ x86-64 Details for mqt.qecc-1.1.0-cp310-cp310-macosx_10_15_x86_64.whl
mqt.qecc-1.1.0-cp39-cp39-manylinux_2_28_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.28+ x86-64 Details for mqt.qecc-1.1.0-cp39-cp39-manylinux_2_28_x86_64.whl
mqt.qecc-1.1.0-cp39-cp39-macosx_10_15_x86_64.whl CPython 3.9 CPython 3.9 macOS 10.15+ x86-64 Details for mqt.qecc-1.1.0-cp39-cp39-macosx_10_15_x86_64.whl
mqt.qecc-1.1.0-cp38-cp38-manylinux_2_28_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.28+ x86-64 Details for mqt.qecc-1.1.0-cp38-cp38-manylinux_2_28_x86_64.whl
mqt.qecc-1.1.0-cp38-cp38-macosx_10_15_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.15+ x86-64 Details for mqt.qecc-1.1.0-cp38-cp38-macosx_10_15_x86_64.whl
mqt.qecc-1.1.0-cp37-cp37m-manylinux_2_28_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.28+ x86-64 Details for mqt.qecc-1.1.0-cp37-cp37m-manylinux_2_28_x86_64.whl
mqt.qecc-1.1.0-cp37-cp37m-macosx_10_15_x86_64.whl CPython 3.7 CPython 3.7 pymalloc macOS 10.15+ x86-64 Details for mqt.qecc-1.1.0-cp37-cp37m-macosx_10_15_x86_64.whl

Total release size: 109.3 MB

Release files / mqt.qecc-1.1.0.tar.gz

Download URL mqt.qecc-1.1.0.tar.gz
Size 1.5 MB
Tags Source
SHA-256 checksum
How to use checksums
859baf91d482d44bcb25b89c4b40caa09876455f551cad9fcbb3315e05de1195
BLAKE2b-256 checksum
How to use checksums
c3b1af93a1d08417e35345152f7d1dd5c3bfee40a8ca77e54136a6736ff5ece0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.1

Release files / mqt.qecc-1.1.0-cp311-cp311-manylinux_2_28_x86_64.whl

Download URL mqt.qecc-1.1.0-cp311-cp311-manylinux_2_28_x86_64.whl
Size 17.5 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
085e7fb74a6cb2bf5b8b56d5a4ee00040ffc69cc61064fb3b321757e1d3e327b
BLAKE2b-256 checksum
How to use checksums
04e31370daa9d435e592e600d5174fd07c524c74db03929d0a4ea49ede758140
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.1

Release files / mqt.qecc-1.1.0-cp311-cp311-macosx_10_15_x86_64.whl

Download URL mqt.qecc-1.1.0-cp311-cp311-macosx_10_15_x86_64.whl
Size 4.1 MB
Tags CPython 3.11 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
cd03cd9a179a913e507665bf548ad434a78aa034169375e3adf6f3924fc03384
BLAKE2b-256 checksum
How to use checksums
9533f475c4c84f9ba5823f67b47129b3912696b8d31d5a657b29d11e6173d955
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.1

Release files / mqt.qecc-1.1.0-cp310-cp310-manylinux_2_28_x86_64.whl

Download URL mqt.qecc-1.1.0-cp310-cp310-manylinux_2_28_x86_64.whl
Size 17.5 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
8493e16cd184753bb0c6864af75402a0865cf0271955125809ebc495bded3e4f
BLAKE2b-256 checksum
How to use checksums
c21865f5f22b2644cc11606ac1b44daa8ee9b016f5aea652e8a9adb70098e057
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.1

Release files / mqt.qecc-1.1.0-cp310-cp310-macosx_10_15_x86_64.whl

Download URL mqt.qecc-1.1.0-cp310-cp310-macosx_10_15_x86_64.whl
Size 4.1 MB
Tags CPython 3.10 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
590de15e970dfa9649a4e607c3f5f8a5c6ede34325a3f7ef3ad9d71b8630162f
BLAKE2b-256 checksum
How to use checksums
33c4e1a03275e6f119f3250631f1d9aaf8e90df47e8ccbb648bd82140f504050
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.1

Release files / mqt.qecc-1.1.0-cp39-cp39-manylinux_2_28_x86_64.whl

Download URL mqt.qecc-1.1.0-cp39-cp39-manylinux_2_28_x86_64.whl
Size 17.5 MB
Tags CPython 3.9 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
2aedf9af843069d123b0cf15e6dd162ee8a53d7e02abf76e014575a4c78d79d6
BLAKE2b-256 checksum
How to use checksums
fc8e3282f2f9b95cb7a5e7dceea65c5276a8a60659684f1de79a819aefa3c19d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.1

Release files / mqt.qecc-1.1.0-cp39-cp39-macosx_10_15_x86_64.whl

Download URL mqt.qecc-1.1.0-cp39-cp39-macosx_10_15_x86_64.whl
Size 4.1 MB
Tags CPython 3.9 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
b66f232e5aebe8f7f5f1a6b21377f143a2709d9161fae799d7790bcdf48fd326
BLAKE2b-256 checksum
How to use checksums
2aa911cdac585504292124530f08660702dee9d43d01d3ac45e1f9b3f049898f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.1

Release files / mqt.qecc-1.1.0-cp38-cp38-manylinux_2_28_x86_64.whl

Download URL mqt.qecc-1.1.0-cp38-cp38-manylinux_2_28_x86_64.whl
Size 17.5 MB
Tags CPython 3.8 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
e9d9bc1905df9e0d16d61110992e376ea7cb3e59c5f0532f2c88a0aec62fbe58
BLAKE2b-256 checksum
How to use checksums
dd29d91bf1d037d145bcfc54f228007aa21f90b5e16c4d697a92efcce1936c9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.1

Release files / mqt.qecc-1.1.0-cp38-cp38-macosx_10_15_x86_64.whl

Download URL mqt.qecc-1.1.0-cp38-cp38-macosx_10_15_x86_64.whl
Size 4.1 MB
Tags CPython 3.8 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
5f9c1a662636531d3c82a4a3fe7c02050e9c4b6b1a409fa63b8667780fbe2043
BLAKE2b-256 checksum
How to use checksums
2f035200574bb557e0ea76d0e3dbeeabbf7b4e231477a471ff684751dc2171fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.1

Release files / mqt.qecc-1.1.0-cp37-cp37m-manylinux_2_28_x86_64.whl

Download URL mqt.qecc-1.1.0-cp37-cp37m-manylinux_2_28_x86_64.whl
Size 17.5 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
4eac6061ddf0678b579e9a7e6c2ac89e29161b7af32baae17a12ecd2340562f8
BLAKE2b-256 checksum
How to use checksums
2665f018ef7913d6b5b7b97293a62f1d7182ffc8c698e83d5fdcb5a373e3c0e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.1

Release files / mqt.qecc-1.1.0-cp37-cp37m-macosx_10_15_x86_64.whl

Download URL mqt.qecc-1.1.0-cp37-cp37m-macosx_10_15_x86_64.whl
Size 4.1 MB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
f63c95b68ff2f2df8817edeb8cb244bc1e3dca7aba2d8919d210cb171cf2e588
BLAKE2b-256 checksum
How to use checksums
8715ee7d7f3f9672e5eaa5cffd6afdd749cef149a03879a6959742d9b692667c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.1

Security for mqt.qecc 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page