Skip to main content

Scalable simulation and characterization for open systems, noisy circuits, and realistic hardware

Project description

PyPI OS License: MIT CI CD Documentation codecov

MQT YAQS Banner

MQT YAQS — Scalable simulation and characterization for open systems, noisy circuits, and realistic hardware

MQT YAQS (pronounced "yaks" like the animals) is a Python library designed for scalable, computationally efficient simulation and characterization of open quantum dynamics, noisy quantum circuits, and hardware-realistic device models. YAQS uses state-of-the-art techniques in these areas such as parallelized trajectories, tensor network compression, and problem-size-appropriate backends wherever possible (see Cite This). It is part of the Munich Quantum Toolkit (MQT).

Documentation

Key Features

  • Analog simulation: Large-scale open-system and unitary time evolution using parallelized quantum trajectories when a noise model is attached [1] (trajectory guidance [4]).
  • Digital circuit simulation: Noisy circuits at scale, final and mid-circuit observables, shot-based readout, and OpenQASM 2 inputs [3] (pip install mqt-yaqs[qasm3] for OpenQASM 3).
  • Equivalence checking: Scalable comparison of quantum circuits [2].
  • Process characterization: Quantify non-Markovian memory in multi-time quantum processes, how much temporal history a process retains, with exact reference checks where needed (guide).
  • Process tensor surrogates: Train a causal Transformer surrogate for fast prediction of non-Markovian response to local interventions and measurement over time (guide).
  • Noise model characterization: Fit Markovian Lindblad jump rates from observable dynamics (guide).
  • Hardware-oriented modeling: Realistic noise models including Gaussian and other strength distributions, plus hardware dynamics such as transmon–resonator systems, and heterogeneous site dimensions (examples).
  • Multiple backends: Monte Carlo wavefunction and master equation evolution are available for analog simulation on smaller systems, alongside the scalable MPS trajectory path.

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 YAQS a reality!

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.yaqs is available via PyPI.

(.venv) $ pip install mqt.yaqs

Simulation

Analog simulation guide

Noisy analog Hamiltonian simulation

from mqt.yaqs import AnalogSimParams, Hamiltonian, NoiseModel, Observable, Simulator, State

sim = Simulator(show_progress=False)
state = State(length=3, initial="zeros")
H = Hamiltonian.ising(length=3, J=1.0, g=0.5)
noise = NoiseModel([{"name": "lowering", "sites": [i], "strength": 0.05} for i in range(3)])
params = AnalogSimParams(
    observables=[Observable("z", sites=0)],
    elapsed_time=0.5,
    dt=0.1,
    preset="fast",
    num_traj=8,
)
print(sim.run(state, H, params, noise).expectation_values[0][-1])

Strong simulation guide

Noisy digital circuit simulation

from qiskit.circuit import QuantumCircuit

from mqt.yaqs import NoiseModel, Observable, Simulator, State, StrongSimParams

circuit = QuantumCircuit(3)
circuit.h(0)
circuit.cx(0, 1)
circuit.cx(1, 2)
noise = NoiseModel([{"name": "lowering", "sites": [i], "strength": 0.05} for i in range(3)])
params = StrongSimParams(observables=[Observable("z", sites=0)], preset="fast", num_traj=8)
result = Simulator(show_progress=False).run(State(3, initial="zeros"), circuit, params, noise)
print(result.expectation_values[0])

Characterization

Environmental memory guide

Environmental memory characterization

from mqt.yaqs import AnalogSimParams, Hamiltonian, MemoryCharacterizer

ham = Hamiltonian.ising(length=3, J=1.0, g=0.5)
params = AnalogSimParams(dt=0.1)
result = MemoryCharacterizer(show_progress=False).characterize(
    ham,
    params,
    num_interventions=4,
    cut=2,
    n_pasts=4,
    n_futures=4,
)
print(result.summary())

Noise characterization guide

Noise model characterization

import numpy as np

from mqt.yaqs import AnalogSimParams, Hamiltonian, NoiseCharacterizer, NoiseModel, Observable, State

n = 2
ham = Hamiltonian.ising(length=n, J=1.0, g=2.0)
state = State(n, initial="zeros")
observables = [Observable("z", sites=s) for s in range(n)]
params = AnalogSimParams(observables=observables, elapsed_time=0.5, dt=0.1, sample_timesteps=True)
reference = NoiseModel([{"name": "pauli_z", "sites": [s], "strength": 0.1} for s in range(n)])
guess = NoiseModel([{"name": "pauli_z", "sites": [s], "strength": 0.3} for s in range(n)])
result = NoiseCharacterizer(show_progress=False).characterize(
    ham,
    params,
    init_state=state,
    init_guess=guess,
    observables=observables,
    reference_model=reference,
    x_low=np.zeros(n),
    x_up=np.full(n, 0.5),
    max_iter=30,
    popsize=6,
    seed=0,
)
print(result.optimal_model)

Documentation: Quickstart · Analog simulation · Strong simulation · Environmental memory · Noise characterization · full guide

System Requirements

MQT YAQS can be installed on all major operating systems with all officially supported Python versions. Building (and running) is continuously tested under Linux, macOS, and Windows using the latest available system versions for GitHub Actions.

Cite This

Please cite the work that best fits your use case.

Peer-Reviewed Research

When citing the underlying methods and research, please reference the most relevant peer-reviewed publications from the list below:

[1] A. Sander, M. Fröhlich, M. Eigel, J. Eisert, P. Gelß, M. Hintermüller, R. M. Milbradt, R. Wille, C. B. Mendl. Large-scale stochastic simulation of open quantum systems. Nature Communications 16, 11074 (2025).

[2] A. Sander, L. Burgholzer, and R. Wille. Equivalence checking of quantum circuits via intermediary matrix product operator. Phys. Rev. Research 7, 023261 (2025).

[3] A. Sander, M. Fröhlich, M. Ali, M. Eigel, J. Eisert, M. Hintermüller, C. B. Mendl, R. M. Milbradt, R. Wille. Quantum circuit simulation with a local time-dependent variational principle. arXiv:2508.10096 (2025).

[4] A. Sander, S. Cichy, M. Eigel, J. Eisert, M. Fröhlich, T. Peham, R. Wille. Computational regimes in matrix-product-state-based quantum trajectory simulations. arXiv:2606.13779 (2026).

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}}
}

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

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_yaqs-0.6.0.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mqt_yaqs-0.6.0-py3-none-any.whl (286.1 kB view details)

Uploaded Python 3

File details

Details for the file mqt_yaqs-0.6.0.tar.gz.

File metadata

  • Download URL: mqt_yaqs-0.6.0.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for mqt_yaqs-0.6.0.tar.gz
Algorithm Hash digest
SHA256 252d0afb7b2bd5f83c9ef6bcbf86c16b9fbf56d60d96de3ba646ae92c84c9be5
MD5 1a867afeca9af939a9a8b5e26fa4867d
BLAKE2b-256 c7e342fea5556a7c65bca33029862b14b2924d94868919ee35a3c9a7e34db2b1

See more details on using hashes here.

Provenance

The following attestation bundles were made for mqt_yaqs-0.6.0.tar.gz:

Publisher: cd.yml on munich-quantum-toolkit/yaqs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mqt_yaqs-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: mqt_yaqs-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 286.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for mqt_yaqs-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f2e9845e44386eed8694581003080340756e283579021d34820903280141a60c
MD5 ec2f5170c36b5e79f5f6b9f9650cb93e
BLAKE2b-256 301000781818f35feb82e70e59e9f9338b677a180f93b6ec40780d06a7e042a2

See more details on using hashes here.

Provenance

The following attestation bundles were made for mqt_yaqs-0.6.0-py3-none-any.whl:

Publisher: cd.yml on munich-quantum-toolkit/yaqs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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