Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

✨ Full Support of Classically-Controlled Operations is Missing

Aperta
#168 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
cpp
Ambito
devtools

Direzione di ricerca

Inizia leggendo DDSimDebug.cpp e CodePreprocessor.cpp per tracciare come vengono analizzate ed eseguite passo passo le operazioni IfElse di OpenQASM. Implementa il supporto per le condizioni di confronto elencate, i sottoinsiemi o bit classici e i corpi con più istruzioni, quindi verifica che gli esempi OpenQASM forniti funzionino tramite il debugger.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

c++ enhancement help wanted
Problem Statement

IfElse Operations in OpenQASM can be based on more than just equality conditions.
The underlying MQT Core framework already supports all of the different types of IFElse Operations, such as different comparison conditions and checks that only use subsets of classical registers or single classical bits.

Furthermore, we currently only allow IfElse Operations that contain only a single instruction in the "then" block. This makes tracking the current operation easier, but obviously does not match the full OpenQASM standard. We should therefore implement support for multi-instruction bodies accordingly.

The following are some code examples that should work in standard OpenQASM but are not allowed/parsed correctly by the debugger:


qreg q[3];
creg c[3];

...

if (c == 0) {
  x q[0];
}

This only works without the if body:

if (c == 0) x q[0];

qreg q[3];
creg c[3];

...

if (c == 0) {
  x q[0];
}

This is not supported by the Debugger's parser at all.


if (c > 0) x q[0];

The debugger only supports equality conditions for if blocks, but the simulation backend supports other conditions, too, so this should be a straightforward enhancement.


Proposed Solution

In the DDSimDebug.cpp backend and the CodePreprocessor.cpp, support for the corresponding operation types should be added when stepping through the code.

Lingua principale
C++
Stelle
21
Fork
8
Merge medio
5h 17m
PR unite (30g)
21

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di munich-quantum-toolkit/debugger

Tutte le issue di munich-quantum-toolkit/debugger

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.