{"id":28194744,"url":"https://github.com/munich-quantum-toolkit/core","last_synced_at":"2025-05-16T13:13:02.828Z","repository":{"id":37094817,"uuid":"231343120","full_name":"munich-quantum-toolkit/core","owner":"munich-quantum-toolkit","description":"MQT Core - The Backbone of the Munich Quantum Toolkit","archived":false,"fork":false,"pushed_at":"2025-05-15T11:39:41.000Z","size":45990,"stargazers_count":74,"open_issues_count":40,"forks_count":35,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-05-15T11:50:32.703Z","etag":null,"topics":["mqt","quantum-computing","quantum-intermediate-representation","tum"],"latest_commit_sha":null,"homepage":"https://mqt.readthedocs.io/projects/core","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/munich-quantum-toolkit.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/contributing.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":".github/SECURITY.md","support":".github/support.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-01-02T08:54:03.000Z","updated_at":"2025-05-12T02:32:15.000Z","dependencies_parsed_at":"2023-07-16T04:47:51.762Z","dependency_job_id":"2e07b666-f750-4be7-aeff-1759e1b1e96b","html_url":"https://github.com/munich-quantum-toolkit/core","commit_stats":null,"previous_names":["cda-tum/qfr","munich-quantum-toolkit/core","cda-tum/mqt-core"],"tags_count":50,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/munich-quantum-toolkit%2Fcore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/munich-quantum-toolkit%2Fcore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/munich-quantum-toolkit%2Fcore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/munich-quantum-toolkit%2Fcore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/munich-quantum-toolkit","download_url":"https://codeload.github.com/munich-quantum-toolkit/core/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254535769,"owners_count":22087400,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mqt","quantum-computing","quantum-intermediate-representation","tum"],"created_at":"2025-05-16T13:13:02.238Z","updated_at":"2025-05-16T13:13:02.822Z","avatar_url":"https://github.com/munich-quantum-toolkit.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![PyPI](https://img.shields.io/pypi/v/mqt.core?logo=pypi\u0026style=flat-square)](https://pypi.org/project/mqt.core/)\n![OS](https://img.shields.io/badge/os-linux%20%7C%20macos%20%7C%20windows-blue?style=flat-square)\n[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://opensource.org/licenses/MIT)\n[![DOI](https://img.shields.io/badge/JOSS-10.21105/joss.07478-blue.svg?style=flat-square)](https://doi.org/10.21105/joss.07478)\n[![CI](https://img.shields.io/github/actions/workflow/status/munich-quantum-toolkit/core/ci.yml?branch=main\u0026style=flat-square\u0026logo=github\u0026label=ci)](https://github.com/munich-quantum-toolkit/core/actions/workflows/ci.yml)\n[![CD](https://img.shields.io/github/actions/workflow/status/munich-quantum-toolkit/core/cd.yml?style=flat-square\u0026logo=github\u0026label=cd)](https://github.com/munich-quantum-toolkit/core/actions/workflows/cd.yml)\n[![Documentation](https://img.shields.io/readthedocs/mqt-core?logo=readthedocs\u0026style=flat-square)](https://mqt.readthedocs.io/projects/core)\n[![codecov](https://img.shields.io/codecov/c/github/munich-quantum-toolkit/core?style=flat-square\u0026logo=codecov)](https://codecov.io/gh/munich-quantum-toolkit/core)\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://mqt.readthedocs.io\"\u003e\n   \u003cpicture\u003e\n     \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://raw.githubusercontent.com/munich-quantum-toolkit/.github/refs/heads/main/docs/_static/mqt-banner-dark.svg\" width=\"90%\"\u003e\n     \u003cimg src=\"https://raw.githubusercontent.com/munich-quantum-toolkit/.github/refs/heads/main/docs/_static/mqt-banner-light.svg\" width=\"90%\" alt=\"MQT Banner\"\u003e\n   \u003c/picture\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n# MQT Core - The Backbone of the Munich Quantum Toolkit (MQT)\n\nMQT Core is an open-source C++17 and Python library for quantum computing that forms the backbone of the quantum software tools developed as part of the [_Munich Quantum Toolkit (MQT)_](https://mqt.readthedocs.io) [^1].\nTo this end, it consists of multiple components that are used throughout the MQT, including a fully fledged intermediate representation (IR) for quantum computations, a state-of-the-art decision diagram (DD) package for quantum computing, and a dedicated ZX-diagram package for working with the ZX-calculus.\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://mqt.readthedocs.io/projects/core\"\u003e\n  \u003cimg width=30% src=\"https://img.shields.io/badge/documentation-blue?style=for-the-badge\u0026logo=read%20the%20docs\" alt=\"Documentation\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\nIf you want to cite MQT Core, please use the following BibTeX entry:\n\n```bibtex\n@article{burgholzer2025MQTCore,\n    title     = {{{MQT Core}}: {{The}} Backbone of the {{Munich Quantum Toolkit (MQT)}}},\n    author    = {Lukas Burgholzer and Yannick Stade and Tom Peham and Robert Wille},\n    year      = {2025},\n    journal   = {Journal of Open Source Software},\n    publisher = {The Open Journal},\n    volume    = {10},\n    number    = {108},\n    pages     = {7478},\n    doi       = {10.21105/joss.07478},\n    url       = {https://doi.org/10.21105/joss.07478},\n}\n```\n\nIf you have any questions, feel free to create a [discussion](https://github.com/munich-quantum-toolkit/core/discussions) or an [issue](https://github.com/munich-quantum-toolkit/core/issues) on [GitHub](https://github.com/munich-quantum-toolkit/core).\n\n## Getting Started\n\n`mqt.core` is available via [PyPI](https://pypi.org/project/mqt.core/) for all major operating systems and supports Python 3.9 to 3.13.\n\n```console\n(.venv) $ pip install mqt.core\n```\n\nThe following code gives an example on the usage:\n\n```python3\nfrom mqt.core import QuantumComputation\n\nqc = QuantumComputation(2, 2)\nqc.h(0)\nqc.cx(0, 1)\nqc.measure(range(2), range(2))\n\nprint(qc)\n```\n\n**Detailed documentation and examples are available at [ReadTheDocs](https://mqt.readthedocs.io/projects/core).**\n\n## System Requirements\n\nBuilding (and running) is continuously tested under Linux, MacOS, and Windows using the [latest available system versions for GitHub Actions](https://github.com/actions/runner-images).\nHowever, the implementation should be compatible with any current C++ compiler supporting C++17 and a minimum CMake version of 3.24.\n\nMQT Core relies on some external dependencies:\n\n- [nlohmann/json](https://github.com/nlohmann/json): A JSON library for modern C++.\n- [boost/multiprecision](https://github.com/boostorg/multiprecision): A library for multiprecision arithmetic (used in the ZX package).\n- [google/googletest](https://github.com/google/googletest): A testing framework for C++ (only used in tests).\n- [pybind/pybind11_json](https://github.com/pybind/pybind11_json): Using nlohmann::json with pybind11 (only used for creating the Python bindings).\n\nCMake will automatically look for installed versions of these libraries. If it does not find them, they will be fetched automatically at configure time via the [FetchContent](https://cmake.org/cmake/help/latest/module/FetchContent.html) module (check out the documentation for more information on how to customize this behavior).\n\nIt is recommended (although not required) to have [GraphViz](https://www.graphviz.org) installed for visualization purposes.\n\nIf you want to use the ZX library, it is recommended (although not strictly necessary) to have [GMP](https://gmplib.org/) installed in your system.\n\n[^1]: The _[Munich Quantum Toolkit (MQT)](https://mqt.readthedocs.io)_ is a collection of software tools for quantum computing developed by the [Chair for Design Automation](https://www.cda.cit.tum.de/) at the [Technical University of Munich](https://www.tum.de/) as well as the [Munich Quantum Software Company (MQSC)](https://munichquantum.software). Among others, it is part of the [Munich Quantum Software Stack (MQSS)](https://www.munich-quantum-valley.de/research/research-areas/mqss) ecosystem, which is being developed as part of the [Munich Quantum Valley (MQV)](https://www.munich-quantum-valley.de) initiative.\n\n---\n\n## Acknowledgements\n\nThe Munich Quantum Toolkit has been supported by the European\nResearch Council (ERC) under the European Union's Horizon 2020 research and innovation program (grant agreement\nNo. 101001318), the Bavarian State Ministry for Science and Arts through the Distinguished Professorship Program, as well as the\nMunich Quantum Valley, which is supported by the Bavarian state government with funds from the Hightech Agenda Bayern Plus.\n\n\u003cp align=\"center\"\u003e\n  \u003cpicture\u003e\n    \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://raw.githubusercontent.com/munich-quantum-toolkit/.github/refs/heads/main/docs/_static/mqt-funding-footer-dark.svg\" width=\"90%\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/munich-quantum-toolkit/.github/refs/heads/main/docs/_static/mqt-funding-footer-light.svg\" width=\"90%\" alt=\"MQT Funding Footer\"\u003e\n  \u003c/picture\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmunich-quantum-toolkit%2Fcore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmunich-quantum-toolkit%2Fcore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmunich-quantum-toolkit%2Fcore/lists"}