IonQ multi-circuit squash rejects batches that omit gateset
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
閱讀 qbraid/runtime/ionq/device.py 第 138 行附近,這裡第一個 circuit 使用 DEFAULT_GATESET,但迴圈回退到 DEFAULT_FORMAT;將兩者對齊到 DEFAULT_GATESET 就是修正。用 issue 中的兩 dict ionq.circuit.v0 snippet 重現,然後檢查 runtime 測試套件下既有的 IonQ device 測試是否有 batch-squash 覆蓋,並為沒有 gateset 的多 circuit 輸入新增一個案例。完成意味著 batch 被 squash 成單一 qis 多 circuit 輸入,且測試套件通過。
由索引模型根據 Issue 內容生成。
描述
Problem
IonQDevice._squash_multicircuit_input (qbraid/runtime/ionq/device.py:138 on main) gives a missing gateset a different default for the first circuit than for the rest:
input_gateset = batch_input[0].get("gateset", DEFAULT_GATESET) # "qis"
...
if run_input.get("gateset", DEFAULT_FORMAT) != input_gateset: # "ionq.circuit.v0"
So any batch of two or more ionq.circuit.v0 dicts that omit the optional gateset key raises ValueError: All run_inputs must have the same value for key 'gateset'.:
c = {"qubits": 1, "circuit": [{"gate": "h", "target": 0}]}
IonQDevice._squash_multicircuit_input([c, dict(c)]) # ValueError
Expected
A missing gateset defaults to DEFAULT_GATESET for every circuit, so the batch squashes into one qis multi-circuit input. qbraid-runtime-api works around this by setting gateset: "qis" itself (qBraid/qbraid-runtime-api#573).
- 主要語言
- Python
- 星號
- 117
- 分支
- 66
- 平均合併
- 1 天 10 小時
- 30 天內合併 PR
- 22
環境準備
在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
qBraid/qBraid 的其他 Issue
-
Test order: test_run_forbidden_kwarg leaves Mock registered as a program type可能已有人在做 @VanshajPoonia 於 3 天前認領。 未關閉bug 🐛 testing 🧪
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 1 天內回覆
-
enhancement ✨ results 📋
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆
-
Pasqal: a {"sequence_builder": ...} payload sent as a string reaches Pasqal still wrapped可能已有人在做 @ryanhill1 於 22 天前認領。 未關閉bug 🐛
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 1 天內回覆
-
bug 🐛 transpiler 🚊
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆
相似的 Issue
-
docs(contributing): the two things that silently block a PR可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉available documentation good first issue
難度 1/5 1-3 小時 新手友好度 95/100
Nixitov/Riptide-Native#944 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 88/100
JTHCode/secretguard#24 ·
維護者通常 1 天內回覆
-
area: middleware documentation good first issue
難度 2/5 1-3 小時 新手友好度 88/100
-
enhancement good first issue
難度 2/5 1-3 小時 新手友好度 88/100
維護者通常 1 天內回覆
-
good first issue
難度 1/5 1 小時以內 新手友好度 95/100
omarelshamy25x/shamy-hijri#63 ·
維護者通常 1 天內回覆