✨ Full Support of Classically-Controlled Operations is Missing
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
まず DDSimDebug.cpp と CodePreprocessor.cpp を読み、OpenQASM の IfElse 操作がどのように解析され、ステップ実行されるかを追跡します。記載されている比較条件、古典レジスタのサブセットまたはビット、複数命令の本体への対応を実装し、その後、提供されている OpenQASM の例がデバッガー経由で動作することを確認します。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- C++
- スター
- 21
- フォーク
- 8
- 平均マージ
- 5時間 17分
- マージ済み PR(30日)
- 21
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
munich-quantum-toolkit/debugger のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 84/100
munich-quantum-toolkit/debugger#469 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 66/100
munich-quantum-toolkit/debugger#468 ·
メンテナーはふだん 1 日以内に返信
-
✨ Improve CLI UX: line editing, function-key shortcuts, and help bar対応中かも @rturrado が 32 日前に担当しました。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
munich-quantum-toolkit/debugger#467 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
munich-quantum-toolkit/debugger#465 ·
メンテナーはふだん 1 日以内に返信
-
Dependency Dashboardオープンdependencies
難易度 5/5 1週間以上 初心者へのやさしさ 10/100
munich-quantum-toolkit/debugger#55 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
munich-quantum-toolkit/debugger の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
accessibility good first issue hacktoberfest help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
OpenChemistry/avogadrolibs#3184 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Tracktion/tracktion_engine#475 ·
メンテナーはふだん 1 日以内に返信
-
CB name typo in LMオープン
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
orbiternassp/NASSP#1701 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
redis/memtier_benchmark#732 ·
メンテナーはふだん 1 日以内に返信