Skip to main content

PyPI OS License: MIT CI CD Documentation codecov

MQT Banner

MQT QCEC - A tool for Quantum Circuit Equivalence Checking

A tool for quantum circuit equivalence checking developed as part of the Munich Quantum Toolkit (MQT). It builds upon MQT Core, which forms the backbone of the MQT.

Documentation

Key Features

  • Complementary equivalence checking engines: Decision-diagram construction, Alternating DD, Simulation-based falsification, and ZX-calculus rewriting—coordinated in an automated equivalence checking flow to prove equivalence or quickly find counterexamples.
  • Approximate equivalence checking with the projective Hilbert--Schmidt distance, including a standalone hybrid Schrödinger--Feynman checker for shallow circuits with few cross-cut gates. Guide
  • Compilation flow verification: validate transpiled/compiled circuits incl. layout permutations and measurements. Guide
  • Parameterized circuits: prove or refute equivalence with symbolic parameters. Guide
  • Partial equivalence: compare measured output distributions, handling ancillary and garbage qubits. Guide
  • Python-first API and Qiskit integration: pass QuantumCircuit or OpenQASM; one-call verify() or verify_compilation(). Quickstart • API
  • Efficient and portable: C++20 core with DD engines and ZX backend, prebuilt wheels for Linux/macOS/Windows via PyPI.

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 QCEC a reality!

Contributors to munich-quantum-toolkit/qcec

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:

Sponsor the MQT

Getting Started

MQT QCEC is available via PyPI.

uv pip install mqt.qcec

The following code gives an example on the usage:

from mqt import qcec

# verify the equivalence of two circuits provided as qasm files
result = qcec.verify("circ1.qasm", "circ2.qasm")

# print the result
print(result.equivalence)

Detailed documentation and examples are available at ReadTheDocs.

System Requirements and Building

Building the project requires a C++ compiler with support for C++20 and CMake 3.28 or newer. For details on how to build the project, please refer to the documentation. Building (and running) is continuously tested under Linux, macOS, and Windows using the latest available system versions for GitHub Actions. MQT QCEC is compatible with all officially supported Python versions.

Cite This

Please cite the work that best fits your use case.

MQT QCEC (the tool)

When citing the software itself or results produced with it, cite the MQT QCEC paper:

@article{burgholzerQCECJKQTool2021,
  title        = {{{QCEC}}: {{A JKQ}} tool for quantum circuit equivalence checking},
  author       = {Burgholzer, Lukas and Wille, Robert},
  year         = 2021,
  month        = feb,
  journal      = {Software Impacts},
  doi          = {10.1016/j.simpa.2020.100051}
}

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. Burgholzer and R. Wille. Advanced Equivalence Checking for Quantum Circuits. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems (TCAD), 2021.

[2] L. Burgholzer, R. Raymond, and R. Wille. Verifying Results of the IBM Qiskit Quantum Circuit Compilation Flow. In IEEE International Conference on Quantum Computing and Engineering (QCE), 2020.

[3] L. Burgholzer, R. Kueng, and R. Wille. Random Stimuli Generation for the Verification of Quantum Circuits. In Asia and South Pacific Design Automation Conference (ASP-DAC), 2021.

[4] L. Burgholzer and R. Wille. Handling Non-Unitaries in Quantum Circuit Equivalence Checking. In Design Automation Conference (DAC), 2022.

[5] T. Peham, L. Burgholzer, and R. Wille. Equivalence Checking of Quantum Circuits with the ZX-Calculus. IEEE Journal on Emerging and Selected Topics in Circuits and Systems (JETCAS), 2022.

[6] T. Peham, L. Burgholzer, and R. Wille. Equivalence Checking of Parameterized Quantum Circuits: Verifying the Compilation of Variational Quantum Algorithms. In 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

Metadata

Release files for mqt-qcec 3.10.2

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-qcec 3.10.2
File Size Uploaded
mqt_qcec-3.10.2.tar.gz 335.2 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for mqt-qcec 3.10.2
File
mqt_qcec-3.10.2-cp315-abi3t-win_arm64.whl CPython 3.15 abi3t Windows ARM64 Details
mqt_qcec-3.10.2-cp315-abi3t-win_amd64.whl CPython 3.15 abi3t Windows x86-64 Details
mqt_qcec-3.10.2-cp315-abi3t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.15 abi3t Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details
mqt_qcec-3.10.2-cp315-abi3t-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl CPython 3.15 abi3t Linux glibc 2.28+ ARM64, Linux glibc 2.26+ ARM64 Details
mqt_qcec-3.10.2-cp315-abi3t-macosx_13_0_arm64.whl CPython 3.15 abi3t macOS 13.0+ ARM64 Details
mqt_qcec-3.10.2-cp311-abi3-win_arm64.whl CPython 3.11 abi3 Windows ARM64 Details
mqt_qcec-3.10.2-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details
mqt_qcec-3.10.2-cp311-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 abi3 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details
mqt_qcec-3.10.2-cp311-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl CPython 3.11 abi3 Linux glibc 2.28+ ARM64, Linux glibc 2.26+ ARM64 Details
mqt_qcec-3.10.2-cp311-abi3-macosx_13_0_arm64.whl CPython 3.11 abi3 macOS 13.0+ ARM64 Details

Total release size: 4.4 MB

Release files / mqt_qcec-3.10.2.tar.gz

Download URL mqt_qcec-3.10.2.tar.gz
Size 335.2 kB
Tags Source
SHA-256 checksum
How to use checksums
55c7a5ed1354c13d51e883746614fe14002ad542839fd05a67996899025ffaec
BLAKE2b-256 checksum
How to use checksums
c41029df824ee0e2b5d2e561c12ebcc719bd6a4341b7f144c60b4acf59270839
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.

Transparency log

Release files / mqt_qcec-3.10.2-cp315-abi3t-win_arm64.whl

Download URL mqt_qcec-3.10.2-cp315-abi3t-win_arm64.whl
Size 703.3 kB
Tags CPython 3.15 Windows ARM64 abi3t
SHA-256 checksum
How to use checksums
6f12171f589055d839139aa37b7445e4266c02bec08695aabc43e12b8cc50a2a
BLAKE2b-256 checksum
How to use checksums
8c8e66e2c6519bb50baabfd32057bdaf020ec3bbf9ff1f53a506a73ccf53fb33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.

Transparency log

Release files / mqt_qcec-3.10.2-cp315-abi3t-win_amd64.whl

Download URL mqt_qcec-3.10.2-cp315-abi3t-win_amd64.whl
Size 505.7 kB
Tags CPython 3.15 Windows x86-64 abi3t
SHA-256 checksum
How to use checksums
a9e2c66197aa9af57739582f9dd3fd661516c26f5d88f4034a091a8b11b2b4f9
BLAKE2b-256 checksum
How to use checksums
c734cb7a71bfb4d3e8807d18f9be8f5fbf710e9cd946285b4ad632b7322b4b26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.

Transparency log

Release files / mqt_qcec-3.10.2-cp315-abi3t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL mqt_qcec-3.10.2-cp315-abi3t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 308.8 kB
Tags CPython 3.15 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 abi3t
SHA-256 checksum
How to use checksums
8de76772c61e43debebf497dff22d292122225bccbc9b0ae47e82f93bdf81ad2
BLAKE2b-256 checksum
How to use checksums
37319336434126a05cb9f8cffd1cf8b5622903dbf24ebfb9148570dc848d5ee4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.

Transparency log

Release files / mqt_qcec-3.10.2-cp315-abi3t-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Download URL mqt_qcec-3.10.2-cp315-abi3t-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Size 285.4 kB
Tags CPython 3.15 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 abi3t
SHA-256 checksum
How to use checksums
d0f2e239e76ee092ec37f58d8ad835a1df76551e1402944ad16eb397f8164e57
BLAKE2b-256 checksum
How to use checksums
bbf57e5d09a33e327dd41e80eadb85e0cd501d2a42bd81eb8218c6df29dbfd69
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.

Transparency log

Release files / mqt_qcec-3.10.2-cp315-abi3t-macosx_13_0_arm64.whl

Download URL mqt_qcec-3.10.2-cp315-abi3t-macosx_13_0_arm64.whl
Size 264.3 kB
Tags CPython 3.15 abi3t macOS 13.0+ ARM64
SHA-256 checksum
How to use checksums
e09abc0eb05627574692830932f3aba84e16043243187c080febd2da597f1015
BLAKE2b-256 checksum
How to use checksums
fb443549ced4f24f60482e469cb1b2ef8edcb77bee6c27f784d5138129a9d3ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.

Transparency log

Release files / mqt_qcec-3.10.2-cp311-abi3-win_arm64.whl

Download URL mqt_qcec-3.10.2-cp311-abi3-win_arm64.whl
Size 681.7 kB
Tags CPython 3.11 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
1eb6b74aa6c8269da0ccf0575be210d8f34a306785dff4dd5743e11e2d1585e9
BLAKE2b-256 checksum
How to use checksums
a45c26dc20f2a9dd044ecaf541ddaee080f9f2fbe38c8941416e74fd401d86f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.

Transparency log

Release files / mqt_qcec-3.10.2-cp311-abi3-win_amd64.whl

Download URL mqt_qcec-3.10.2-cp311-abi3-win_amd64.whl
Size 491.0 kB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
f6e2d39a4cb5b9223d433353d063798c81063759fb087910dd16472af2fcb38e
BLAKE2b-256 checksum
How to use checksums
73dc5399016d65ef15cafcd4b68b65f4fa581f9bf619fda78f6d1c5a12f181ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.

Transparency log

Release files / mqt_qcec-3.10.2-cp311-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL mqt_qcec-3.10.2-cp311-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 308.4 kB
Tags CPython 3.11 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
fa8bbfb9175edb3c2ea6524f20995c766bf2cf801abed1e3d54c7e9be942fb87
BLAKE2b-256 checksum
How to use checksums
4b335e4af70a47619ff748a983504915473552c6eb963b329f22c4247e3a4d60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.

Transparency log

Release files / mqt_qcec-3.10.2-cp311-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Download URL mqt_qcec-3.10.2-cp311-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Size 285.2 kB
Tags CPython 3.11 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
14c0e91c713d76d03aadf4eb02c02e1936839bc47e0ef41dcde255b5fe652fb1
BLAKE2b-256 checksum
How to use checksums
02a328bf2f0f54baa24955cc6897ed8e7abb5b04ba6b8c0993935f9344c7343d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.

Transparency log

Release files / mqt_qcec-3.10.2-cp311-abi3-macosx_13_0_arm64.whl

Download URL mqt_qcec-3.10.2-cp311-abi3-macosx_13_0_arm64.whl
Size 264.4 kB
Tags CPython 3.11 abi3 macOS 13.0+ ARM64
SHA-256 checksum
How to use checksums
233f1004fe39f82f444b5d535b2de9f3093eee501bba4cf3f188344b0aa5e82e
BLAKE2b-256 checksum
How to use checksums
dd0acc2e175df128d41b0ba3c7ab0f3e45deceb733b25cb2821251a49c072fd5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

3.10.2 This release

11 release files

3.9.0

31 release files

3.6.1

25 release files

3.6.0

25 release files

3.4.0

25 release files

3.3.0

43 release files

3.1.0

37 release files

2.8.2

31 release files

2.8.1

43 release files

2.7.1

50 release files

2.6.0

36 release files

2.5.0

36 release files

2.4.5

36 release files

2.4.4

36 release files

2.4.1

36 release files

2.4.0

36 release files

2.3.1

36 release files

2.3.0

26 release files

2.2.2

21 release files

2.1.2

35 release files

2.1.1

35 release files

2.0.0

25 release files

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