autoqasm/openqasm3 verbatim/pragma support
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start from the reproducer in the issue: the bell_state example using aq.verbatim() and to_ir(), which currently drops the pragma braket verbatim block during OpenQASM 3 to QIR translation. The payload does not name the source files, so locate the translation code by searching for the verbatim or pragma handling. Done means either the pragma survives translation with a test covering it, or a documented finding on why QIR cannot carry it.
索引モデルが issue の本文から書いたものです。
説明
Feature Description
In autoqasm, you use the aq.verbatim() context to instruct the compiler to avoid modifying anything inside the block. For example:
@aq.main
def bell_state():
with aq.verbatim():
ins.h("$0")
ins.cnot("$0", "$1")
return ins.measure(["$0", "$1"])
print(bell_state.build().to_ir())
This program now targets physical qubits, and the gates will not be modified by the compiler. And the ir looks like this:
OPENQASM 3.0;
output bit[2] return_value;
pragma braket verbatim
box {
h $0;
cnot $0, $1;
}
bit[2] __bit_0__ = "00";
__bit_0__[0] = measure $0;
__bit_0__[1] = measure $1;
return_value = __bit_0__;
To support aq.verbatim(), we need support for openqasm3 pragma, which we are unsure if QIR supports or not. Either find a way to support pragma in the openqasm3 to qir translation or determine that is not possible.
- 主要言語
- Python
- スター
- 29
- フォーク
- 33
- 平均マージ
- 2日 4時間
- マージ済み PR(30日)
- 15
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
qBraid/pyqasm のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
メンテナーはふだん 1 日以内に返信
-
enhancement error-handling program-validation
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
Move the QASM 2 printer and its branch pre-processing out of qasm2.py対応中かも @danielgaskins が 7 日前に担当しました。 オープンenhancement qasm2
難易度 4/5 3〜5日 初心者へのやさしさ 22/100
qBraid/pyqasm#447 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] dumps() emits extern calls without a semicolon, producing unparsable QASM対応中かも @Jah-yee が 15 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 25/100
qBraid/pyqasm#438 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Parse failures raise ValidationError with an empty message; the ANTLR diagnostic is lost対応中かも @tonycoder-hub が 9 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 22/100
qBraid/pyqasm#436 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
[Bug]: `hermes plugins update` clones an entire monorepo twice - `subdir` is resolved but dropped at both catalog-update call sites対応中かも @HootRock が今日担当しました。 オープンcomp/cli P2 type/perf
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
NousResearch/hermes-agent#142417 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
bug enhancement python
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
DewaldOosthuizen/tech-cheat-sheets-and-notes#392 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
bug p2
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
Restore postgresql_vm_test_charm actions.yaml change (removed in canonical/postgresql-operator#2054)オープン
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
canonical/postgresql-single-kernel-library#390 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信