https://github.com/cda-tum/mqt-qcec
MQT QCEC - A tool for Quantum Circuit Equivalence Checking
https://github.com/cda-tum/mqt-qcec
cpp17 decision-diagrams equivalence-checker jku mqt python quantum-circuits quantum-computing tum verification zx-calculus
Last synced: 10 days ago
JSON representation
MQT QCEC - A tool for Quantum Circuit Equivalence Checking
- Host: GitHub
- URL: https://github.com/cda-tum/mqt-qcec
- Owner: cda-tum
- License: mit
- Created: 2020-01-02T12:23:35.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-04-12T07:09:33.000Z (10 days ago)
- Last Synced: 2025-04-12T08:20:48.868Z (10 days ago)
- Topics: cpp17, decision-diagrams, equivalence-checker, jku, mqt, python, quantum-circuits, quantum-computing, tum, verification, zx-calculus
- Language: C++
- Homepage: https://mqt.readthedocs.io/projects/qcec
- Size: 4.17 MB
- Stars: 96
- Watchers: 5
- Forks: 22
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Contributing: .github/contributing.rst
- License: LICENSE.md
- Support: .github/support.rst
Awesome Lists containing this project
README
[](https://pypi.org/project/mqt.qcec/)

[](https://opensource.org/licenses/MIT)
[](https://github.com/cda-tum/mqt-qcec/actions/workflows/ci.yml)
[](https://github.com/cda-tum/mqt-qcec/actions/workflows/cd.yml)
[](https://mqt.readthedocs.io/projects/qcec)
[](https://codecov.io/gh/cda-tum/mqt-qcec)# 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)_](https://mqt.readthedocs.io) by the [Chair for Design Automation](https://www.cda.cit.tum.de/) at the [Technical University of Munich](https://www.tum.de/).
It builds upon [MQT Core](https://github.com/cda-tum/mqt-core), which forms the backbone of the MQT.If you have any questions, feel free to contact us via [[email protected]](mailto:[email protected]) or by creating an issue on [GitHub](https://github.com/cda-tum/mqt-qcec/issues).
## Getting Started
QCEC is available via [PyPI](https://pypi.org/project/mqt.qcec/) for Linux, macOS, and Windows and supports Python 3.9 to 3.13.
```console
(venv) $ pip install mqt.qcec
```The following code gives an example on the usage:
```python3
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 on all available methods, options, and input formats is available at [ReadTheDocs](https://mqt.readthedocs.io/projects/qcec).**
## System Requirements and Building
The implementation is compatible with any C++17 compiler, a minimum CMake version of 3.24, and Python 3.9+.
Please refer to the [documentation](https://mqt.readthedocs.io/projects/qcec) 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](https://github.com/actions/virtual-environments).
## References
QCEC has been developed based on methods proposed in the following papers:
[](https://arxiv.org/abs/2004.08420)
L. Burgholzer and R. Wille, "[Advanced Equivalence Checking for Quantum Circuits](https://arxiv.org/abs/2004.08420)," Transactions on CAD of Integrated Circuits and Systems (TCAD), 2021[](https://arxiv.org/abs/2009.02376)
L. Burgholzer, R. Raymond, and R. Wille, "[Verifying Results of the IBM Qiskit Quantum Circuit Compilation Flow](https://arxiv.org/abs/2009.02376)," in IEEE International Conference on Quantum Computing (QCE), 2020[](https://arxiv.org/abs/2011.07288)
L. Burgholzer, R. Kueng, and R. Wille, "[Random Stimuli Generation for the Verification of Quantum Circuits](https://arxiv.org/abs/2011.07288)," in Asia and South Pacific Design Automation Conference (ASP-DAC), 2021[](https://arxiv.org/abs/2106.01099)
L. Burgholzer and R. Wille, "[Handling Non-Unitaries in Quantum Circuit Equivalence Checking](https://arxiv.org/abs/2106.01099)," in Design Automation Conference (DAC), 2022[](https://arxiv.org/abs/2208.12820)
T. Peham, L. Burgholzer, and R. Wille, "[Equivalence Checking of Quantum Circuits with the ZX-Calculus](https://arxiv.org/abs/2208.12820)," in Journal of Emerging and Selected Topics in Circuits and Systems (JETCAS), 2022[](https://arxiv.org/abs/2210.12166)
T. Peham, L. Burgholzer, and R. Wille, "[Equivalence Checking of Parameterized Quantum Circuits: Verifying the Compilation of Variational Quantum Algorithms](https://arxiv.org/abs/2210.12166)," 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.