✨ Full Support of Classically-Controlled Operations is Missing
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
首先阅读 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 分钟
- 30 天内合并 PR
- 21
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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 一周以上 新手友好度 35/100
munich-quantum-toolkit/debugger#467 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 48/100
munich-quantum-toolkit/debugger#465 ·
维护者通常 1 天内回复
-
dependencies
难度 5/5 一周以上 新手友好度 10/100
munich-quantum-toolkit/debugger#55 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
查看 munich-quantum-toolkit/debugger 的全部 Issue
相似的 Issue
-
Mac mini M6 (16 GB): Q2_0 streaming works - measured 11.7->27.2 tok/s + arena fix for sub-32 GB Macs未关闭
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
champion good first issue remake source/qq
难度 2/5 1-3 小时 新手友好度 65/100
metasequoiaime/msime-windows#1025 ·
维护者通常 1 天内回复
-
backlog bug
难度 2/5 1-3 小时 新手友好度 75/100
EchoTools/nevr-runtime#653 ·
维护者通常 1 天内回复
-
`--fail-require-skip` never fires: run_tests.py searches stdout, but the unittest binary writes the skip summary to stderr可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
InfiniTimeOrg/InfiniTime#2492 ·