Skip to main content

A tool for Quantum Circuit Mapping

Project description

PyPI OS License: MIT CI CD Documentation codecov

MQT QMAP - A tool for Quantum Circuit Compilation

A tool for quantum circuit compilation developed as part of the Munich Quantum Toolkit (MQT) by the Chair for Design Automation at the Technical University of Munich. It builds upon MQT Core, which forms the backbone of the MQT.

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

Overview Paper

QMAP is available via PyPI for Linux, macOS, and Windows and supports Python 3.8 to 3.12.

(venv) $ pip install mqt.qmap

Compiling a given quantum circuit to a certain device is as easy as

from mqt import qmap
from qiskit import QuantumCircuit
from qiskit.providers.fake_provider import FakeLondon

circ = QuantumCircuit(3)
circ.h(0)
circ.cx(0, 1)
circ.cx(0, 2)

circ_mapped, results = qmap.compile(circ, arch=FakeLondon())

Optimizing a Clifford circuit is as easy as

from mqt import qmap
from qiskit import QuantumCircuit

circ = QuantumCircuit(2)
circ.h(1)
circ.cx(0, 1)
circ.h(0)
circ.h(1)

circ_opt, results = qmap.optimize_clifford(circ)

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, a minimum CMake version of 3.19, and Python 3.8+. 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.

References

QMAP has been developed based on methods proposed in the following papers:

[1] R. Wille and L. Burgholzer. MQT QMAP: Efficient Quantum Circuit Mapping. In International Symposium on Physical Design (ISPD), 2023.

[2] A. Zulehner, A. Paler, and R. Wille. An Efficient Methodology for Mapping Quantum Circuits to the IBM QX Architectures. IEEE Transactions on Computer Aided Design of Integrated Circuits and Systems (TCAD), 2018.

[3] R. Wille, L. Burgholzer, and A. Zulehner. Mapping Quantum Circuits to IBM QX Architectures Using the Minimal Number of SWAP and H Operations. In Design Automation Conference (DAC), 2019.

[4] S. Hillmich, A. Zulehner, and R. Wille. Exploiting Quantum Teleportation in Quantum Circuit Mapping. In Asia and South Pacific Design Automation Conference (ASP-DAC), 2021.

[5] L. Burgholzer, S. Schneider, and R. Wille. Limiting the Search Space in Optimal Quantum Circuit Mapping. In Asia and South Pacific Design Automation Conference (ASP-DAC), 2022.

[6] T. Peham, L. Burgholzer, and R. Wille. On Optimal Subarchitectures for Quantum Circuit Mapping. arXiv:2210.09321, 2022.

[7] S. Schneider, L. Burgholzer, and R. Wille. A SAT Encoding for Optimal Clifford Circuit Synthesis. 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.

Project details


Download files

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

Source Distribution

mqt_qmap-2.5.1.tar.gz (1.4 MB view hashes)

Uploaded Source

Built Distributions

mqt_qmap-2.5.1-cp312-cp312-win_amd64.whl (7.9 MB view hashes)

Uploaded CPython 3.12 Windows x86-64

mqt_qmap-2.5.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (13.4 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

mqt_qmap-2.5.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl (9.7 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ s390x

mqt_qmap-2.5.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (11.3 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ppc64le

mqt_qmap-2.5.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (9.4 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ARM64

mqt_qmap-2.5.1-cp312-cp312-macosx_11_0_arm64.whl (9.4 MB view hashes)

Uploaded CPython 3.12 macOS 11.0+ ARM64

mqt_qmap-2.5.1-cp312-cp312-macosx_10_15_x86_64.whl (10.7 MB view hashes)

Uploaded CPython 3.12 macOS 10.15+ x86-64

mqt_qmap-2.5.1-cp311-cp311-win_amd64.whl (7.9 MB view hashes)

Uploaded CPython 3.11 Windows x86-64

mqt_qmap-2.5.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (13.4 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

mqt_qmap-2.5.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl (9.7 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ s390x

mqt_qmap-2.5.1-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (11.3 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ppc64le

mqt_qmap-2.5.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (9.4 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

mqt_qmap-2.5.1-cp311-cp311-macosx_11_0_arm64.whl (9.4 MB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

mqt_qmap-2.5.1-cp311-cp311-macosx_10_15_x86_64.whl (10.6 MB view hashes)

Uploaded CPython 3.11 macOS 10.15+ x86-64

mqt_qmap-2.5.1-cp310-cp310-win_amd64.whl (7.9 MB view hashes)

Uploaded CPython 3.10 Windows x86-64

mqt_qmap-2.5.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (13.4 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

mqt_qmap-2.5.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl (9.7 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ s390x

mqt_qmap-2.5.1-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (11.3 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ppc64le

mqt_qmap-2.5.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (9.4 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

mqt_qmap-2.5.1-cp310-cp310-macosx_11_0_arm64.whl (9.4 MB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

mqt_qmap-2.5.1-cp310-cp310-macosx_10_15_x86_64.whl (10.6 MB view hashes)

Uploaded CPython 3.10 macOS 10.15+ x86-64

mqt_qmap-2.5.1-cp39-cp39-win_amd64.whl (7.9 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

mqt_qmap-2.5.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (13.4 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

mqt_qmap-2.5.1-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl (9.7 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ s390x

mqt_qmap-2.5.1-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (11.3 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ppc64le

mqt_qmap-2.5.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (9.4 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

mqt_qmap-2.5.1-cp39-cp39-macosx_11_0_arm64.whl (9.4 MB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

mqt_qmap-2.5.1-cp39-cp39-macosx_10_15_x86_64.whl (10.6 MB view hashes)

Uploaded CPython 3.9 macOS 10.15+ x86-64

mqt_qmap-2.5.1-cp38-cp38-win_amd64.whl (8.0 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

mqt_qmap-2.5.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (13.4 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

mqt_qmap-2.5.1-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl (9.7 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ s390x

mqt_qmap-2.5.1-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (11.3 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ppc64le

mqt_qmap-2.5.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (9.4 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

mqt_qmap-2.5.1-cp38-cp38-macosx_11_0_arm64.whl (9.4 MB view hashes)

Uploaded CPython 3.8 macOS 11.0+ ARM64

mqt_qmap-2.5.1-cp38-cp38-macosx_10_15_x86_64.whl (10.6 MB view hashes)

Uploaded CPython 3.8 macOS 10.15+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page