Skip to main content

A quantum simulator based on decision diagrams written in C++

Project description

PyPI OS License: MIT CI CD Documentation codecov

MQT DDSIM - A quantum circuit simulator based on decision diagrams written in C++

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


If you have any questions, feel free to contact us via or by creating an issue on GitHub.

Getting Started

DDSIM bundled with the provider and backends for Qiskit is available via PyPI for Linux, macOS, and Windows and supports Python 3.8 to 3.12.

(venv) $ pip install mqt.ddsim

The following code gives an example on the usage:

from qiskit import *
from mqt import ddsim

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


backend = ddsim.DDSIMProvider().get_backend("qasm_simulator")

job = execute(circ, backend, shots=10000)
counts = job.result().get_counts(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 and a minimum CMake version of 3.19. 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.


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

[^1]: The Munich Quantum Toolkit was formerly known under the acronym JKQ and developed by the Institute for Integrated Circuits at the Johannes Kepler University Linz).

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_ddsim-1.20.0.tar.gz (41.4 MB view hashes)

Uploaded source

Built Distributions

mqt_ddsim-1.20.0-cp312-abi3-win_amd64.whl (721.6 kB view hashes)

Uploaded cp312

mqt_ddsim-1.20.0-cp311-cp311-win_amd64.whl (720.6 kB view hashes)

Uploaded cp311

mqt_ddsim-1.20.0-cp310-cp310-win_amd64.whl (718.1 kB view hashes)

Uploaded cp310

mqt_ddsim-1.20.0-cp39-cp39-win_amd64.whl (718.8 kB view hashes)

Uploaded cp39

mqt_ddsim-1.20.0-cp38-cp38-win_amd64.whl (732.8 kB view hashes)

Uploaded cp38

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