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.11.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-qcec 3.11.0
File Size Uploaded
mqt_qcec-3.11.0.tar.gz 341.0 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for mqt-qcec 3.11.0
File
mqt_qcec-3.11.0-cp315-abi3t-win_arm64.whl CPython 3.15 abi3t Windows ARM64 Details
mqt_qcec-3.11.0-cp315-abi3t-win_amd64.whl CPython 3.15 abi3t Windows x86-64 Details
mqt_qcec-3.11.0-cp315-abi3t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.15 abi3t Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details
mqt_qcec-3.11.0-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.11.0-cp315-abi3t-macosx_13_0_arm64.whl CPython 3.15 abi3t macOS 13.0+ ARM64 Details
mqt_qcec-3.11.0-cp311-abi3-win_arm64.whl CPython 3.11 abi3 Windows ARM64 Details
mqt_qcec-3.11.0-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details
mqt_qcec-3.11.0-cp311-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 abi3 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details
mqt_qcec-3.11.0-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.11.0-cp311-abi3-macosx_13_0_arm64.whl CPython 3.11 abi3 macOS 13.0+ ARM64 Details

Total release size: 4.5 MB

Release files / mqt_qcec-3.11.0.tar.gz

Download URL mqt_qcec-3.11.0.tar.gz
Size 341.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9fac941fbf72bbae61a0323881eb5604b3371a7aad60c236ab3f2ec8668da052
BLAKE2b-256 checksum
How to use checksums
b3eb9ac2986c52aaa17d914c45d4bca1c91f1ad922546827b7ce2e8b0d6b19a5
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 9, 2026.

Transparency log

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

Download URL mqt_qcec-3.11.0-cp315-abi3t-win_arm64.whl
Size 712.2 kB
Tags CPython 3.15 Windows ARM64 abi3t
SHA-256 checksum
How to use checksums
4a17634d8c79cd3fbc46a0521d803d8d29d7decfe61303698fc1d1e3bac73e8c
BLAKE2b-256 checksum
How to use checksums
4968d29dae4dfdd0e2aa5675da1bf2caad2f6ee66e63002fe321e206718af402
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 9, 2026.

Transparency log

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

Download URL mqt_qcec-3.11.0-cp315-abi3t-win_amd64.whl
Size 513.6 kB
Tags CPython 3.15 Windows x86-64 abi3t
SHA-256 checksum
How to use checksums
628181f8a6908146d27ec7941a3bcfa948575844406f9403b74bac4f7c23227e
BLAKE2b-256 checksum
How to use checksums
7b70187644104f3b406035273bfca71cf0cbc8e034a4a49cdb8e98cbd468ca97
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 9, 2026.

Transparency log

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

Download URL mqt_qcec-3.11.0-cp315-abi3t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 318.5 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
6c928bba48510a4e9f1f188fd62b37e94f39e506ab3c18201a5ff97cacd100f7
BLAKE2b-256 checksum
How to use checksums
49e5dbf5d7804f339993b8407040bed8eabec2906e546f7a94179cd0ee6d0919
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 9, 2026.

Transparency log

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

Download URL mqt_qcec-3.11.0-cp315-abi3t-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Size 297.1 kB
Tags CPython 3.15 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 abi3t
SHA-256 checksum
How to use checksums
ecb037680c6f2388e37ba802c956e295eaea64f8422110e0682b3acb88c50ad2
BLAKE2b-256 checksum
How to use checksums
8aafd7f53d85f7b2b62daf621de205f091dc1482545a733327e261445268365a
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 9, 2026.

Transparency log

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

Download URL mqt_qcec-3.11.0-cp315-abi3t-macosx_13_0_arm64.whl
Size 274.8 kB
Tags CPython 3.15 abi3t macOS 13.0+ ARM64
SHA-256 checksum
How to use checksums
2a0f049eb566b31020b991854f83ab9891d550f22bbbd88138f4da92845c28b1
BLAKE2b-256 checksum
How to use checksums
d4cdd5251d8d27ed18569058e6f2a1594882029fd37bfcccb6e92a0ce03cf2fe
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 9, 2026.

Transparency log

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

Download URL mqt_qcec-3.11.0-cp311-abi3-win_arm64.whl
Size 690.8 kB
Tags CPython 3.11 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
28225348de1b99cfdce15de0836e6e6d3002d3c4d1b13566e7a066f0864229f1
BLAKE2b-256 checksum
How to use checksums
c9d36101fd5e68d385fd73368d66f1526c78ab33036ac13bf11ec246bf1f4607
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 9, 2026.

Transparency log

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

Download URL mqt_qcec-3.11.0-cp311-abi3-win_amd64.whl
Size 499.0 kB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
cef1d125a936ffba5324dcdd219755b760f0969286124baabc24d24abce0bdd5
BLAKE2b-256 checksum
How to use checksums
a8eebb3dad9641182afc22b388ec05deba3bb4ec3e298307b9f02e3fecc7d6f7
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 9, 2026.

Transparency log

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

Download URL mqt_qcec-3.11.0-cp311-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 318.2 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
42f5c1cda3444b973ce2246fe1ad3f396c0265711392f46ee060b090e6bf7906
BLAKE2b-256 checksum
How to use checksums
ecad1f6262f080ebbf64f249ff978edbb95723aae8bf4ae0cd633aa29d9b8519
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 9, 2026.

Transparency log

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

Download URL mqt_qcec-3.11.0-cp311-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Size 297.0 kB
Tags CPython 3.11 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
3717f0ed1fc3187635a5e4a3d941aae73e4134b34a87bb3586269fe50455614d
BLAKE2b-256 checksum
How to use checksums
6fce6ef12a827408c36972553ba2896d57d7a8e90f67a5b461cd50733d549470
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 9, 2026.

Transparency log

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

Download URL mqt_qcec-3.11.0-cp311-abi3-macosx_13_0_arm64.whl
Size 275.1 kB
Tags CPython 3.11 abi3 macOS 13.0+ ARM64
SHA-256 checksum
How to use checksums
f4bb39703d56da866a085303b25f870812f10edb0fb15eda2a50cb35d500a573
BLAKE2b-256 checksum
How to use checksums
69a1c70a8d92c4b7574ea1e90885795d1796b29c926572a8b5680c57faed886e
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 9, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

3.11.0 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