munich-quantum-toolkit / munich-quantum-toolkit/bench

✨ QIR support on mapped level

Open
#437 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature medium mqt.bench python
Dominant language
Python
Stars
131
Forks
44
Avg merge
2h 3m
Merged PRs (30d)
36

Description

What's the problem this feature will solve?

It would be great to additionally offer circuits on the mapped level as QIR in addition to QASM. At that level, it should also be guaranteed that the respective circuit can be represented in QIR. The same might not be true for higher levels in MQT Bench.

One immediate advantage of adding this is the ability to test QIR-based frameworks and tools.

Describe the solution you'd like

The mqt-bench Python package as well as the CLI should be able to generate QIR code.
Possible tools for making this possible are

Given how we will be exporting to OpenQASM 3 soon anyway, we might opt to simply rely on the qBraid solution to further translate the QASM file to QIR. Although I am slightly afraid that this process might not be fully lossless, I believe it should be fine at the mapped level.

We could think about extending this to

  • the native-gates level (should be more or less easily possible)
  • the target-independent level (might be possible for some of the programs, but probably not all. For example, multi-controlled Toffoli gates)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the mqt-bench Python package and CLI entry points, then compare the QIR conversion options listed in the issue, especially qBraid's QASM3-to-QIR path. Done means mapped-level circuits can be generated as QIR through both interfaces and their representability is guaranteed.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.