Skip to main content

PyPI OS License: MIT CI CD Documentation codecov

MQT Logo

MQT QECC - A tool for Quantum Error Correcting Codes

MQT QECC is a tool for quantum error correcting codes and numerical simulations. It is part of the Munich Quantum Toolkit (MQT).

Documentation

Key Features

  • Decode (triangular) color codes and conduct respective numerical simulations.
    • The decoder is based on an analogy to the classical LightsOut puzzle and formulated as a MaxSAT problem. The SMT solver Z3 is used to determine minimal solutions of the MaxSAT problem, resulting in minimum-weight decoding estimates.
  • Decode bosonic quantum LDPC codes and conduct numerical simulations for analog information decoding under phenomenological (cat qubit) noise.
  • Synthesize non-deterministic and deterministic fault-tolerant state preparation circuits for qubit CSS codes.
  • Find the minimum number of code switching operations and their placement in a given quantum circuit that employs code switching as a way to implement logical operations fault-tolerantly.
  • Performing lattice surgery compilation for the color code for CNOT + T circuits with static or movable qubits.

[!NOTE] Usage for Synthesis of Fault-tolerant State Preparation Circuits using Steane-type Error Detection can be found in the branch ft-stateprep-qubit-perm. The documentation is a work in progress and this branch undergoes some final improvements before being merged into main.

[!WARNING] The C++ implementation of the union find decoder for LDPC codes and the circuit transpilation framework have been removed with v2.0.0 and are no longer available. MQT QECC is now entirely a Python package. For up-to-date software for decoding LDPC codes we refer to quantumgizmos/ldpc. If you would still like to use these features, they are available in versions before v2.0.0.

If you have any questions, feel free to create a discussion or an issue on GitHub.

Contributors and Supporters

The Munich Quantum Toolkit (MQT) is developed by the Chair for Design Automation at the Technical University of Munich and supported by MQSC. Among others, it is part of the Munich Quantum Software Stack (MQSS) ecosystem, which is being developed as part of the Munich Quantum Valley (MQV) initiative.

MQT Partner Logos

Thank you to all the contributors who have helped make MQT QECC a reality!

The MQT will remain free, open-source, and permissively licensed—now and in the future. We are firmly committed to keeping it open and actively maintained for the quantum computing community.

To support this endeavor, please consider:

  • Starring and sharing our repositories: https://github.com/munich-quantum-toolkit
  • Contributing code, documentation, tests, or examples via issues and pull requests
  • Citing the MQT in your publications (see Cite This)
  • Citing our research in your publications (see References)
  • Using the MQT in research and teaching, and sharing feedback and use cases

Getting Started

mqt.qecc is available via PyPI.

uv pip install mqt.qecc

Detailed documentation and examples are available at ReadTheDocs.

System Requirements

MQT QECC can be installed on all major operating systems with all officially supported Python versions. Building (and running) is continuously tested under Linux, macOS, and Windows using the latest available system versions for GitHub Actions.

Cite This

Please cite the work that best fits your use case.

The Munich Quantum Toolkit (the project)

When discussing the overall MQT project or its ecosystem, cite the MQT Handbook:

@inproceedings{mqt,
  title        = {The {{MQT}} Handbook: {{A}} Summary of Design Automation Tools and Software for Quantum Computing},
  shorttitle   = {{The MQT Handbook}},
  author       = {Wille, Robert and Berent, Lucas and Forster, Tobias and Kunasaikaran, Jagatheesan and Mato, Kevin and Peham, Tom and Quetschlich, Nils and Rovara, Damian and Sander, Aaron and Schmid, Ludwig and Schoenberger, Daniel and Stade, Yannick and Burgholzer, Lukas},
  year         = 2024,
  booktitle    = {IEEE International Conference on Quantum Software (QSW)},
  doi          = {10.1109/QSW62656.2024.00013},
  eprint       = {2405.17543},
  eprinttype   = {arxiv},
  addendum     = {A live version of this document is available at \url{https://mqt.readthedocs.io}}
}

Peer-Reviewed Research

When citing the underlying methods and research, please reference the most relevant peer-reviewed publications from the list below:

[1] L. Schmid, T.Peham, L. Berent, M. Müller, and R. Wille. Deterministic Fault-Tolerant State Preparation for Near-Term Quantum Error Correction: Automatic Synthesis Using Boolean Satisfiability

[2] T. Peham, L. Schmid, L. Berent, M. Müller, and R. Wille. Automated Synthesis of Fault-Tolerant State Preparation Circuits for Quantum Error Correction Codes PRX Quantum 6, 020330, 2025.

[3] L. Berent, T. Hillmann, J. Eisert, R. Wille, and J. Roffe. Analog information decoding of bosonic quantum LDPC codes. PRX Quantum 5, 020349, 2024.

[4] L. Berent, L. Burgholzer, P. J. Derks, J. Eisert, and R. Wille. Decoding quantum color codes with MaxSAT. Quantum 8, 1506, 2024.

[5] T. Grurl, C. Pichler, J. Fuss, and R. Wille. Automatic Implementation and Evaluation of Error-Correcting Codes for Quantum Computing: An Open-Source Framework for Quantum Error-Correction. International Conference on VLSI Design and International Conference on Embedded Systems (VLSID), 2023.

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


Acknowledgements

The Munich Quantum Toolkit has been supported by the European Research Council (ERC) under the European Union's Horizon 2020 research and innovation program (grant agreement No. 101001318), the Bavarian State Ministry for Science and Arts through the Distinguished Professorship Program, as well as the Munich Quantum Valley, which is supported by the Bavarian state government with funds from the Hightech Agenda Bayern Plus.

MQT Funding Footer

Download files

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

Source Distribution

mqt_qecc-2.0.0.tar.gz (2.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mqt_qecc-2.0.0-py3-none-any.whl (667.7 kB view details)

Uploaded Python 3

File details

Details for the file mqt_qecc-2.0.0.tar.gz.

File metadata

  • Download URL: mqt_qecc-2.0.0.tar.gz
  • Upload date:
  • Size: 2.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for mqt_qecc-2.0.0.tar.gz
Algorithm Hash digest
SHA256 7c9fc59912bfc142f0446264b1ee523cf6293288542311748b583b7e6ea0ce36
MD5 5bbd1eca74d6342101a168c20a01b2e9
BLAKE2b-256 89dcd40bc6f3354e95f6dbbed6ebb730e550721d835602c740a14b480e11ea9f

See more details on using hashes here.

Provenance

The following attestation bundles were made for mqt_qecc-2.0.0.tar.gz:

Publisher: cd.yml on munich-quantum-toolkit/qecc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mqt_qecc-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: mqt_qecc-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 667.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for mqt_qecc-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4dd54b320aef9c6a4df34ca4ad2a13674c77fe9f812adf0cfdb845d1b8ff652d
MD5 7c0d8e6e0db9f162aa2e7dd6f50d5bd7
BLAKE2b-256 cb6346b31e3413b34e56cc936bda37fc1e40fd706fa426f5d6cdf7866558b258

See more details on using hashes here.

Provenance

The following attestation bundles were made for mqt_qecc-2.0.0-py3-none-any.whl:

Publisher: cd.yml on munich-quantum-toolkit/qecc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page