OpenQASM import and export
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
調査の方向性
Start with src/circuit.rs, especially Label and how instructions retain names and angles; inspect the circuit API for import and export entry points. The issue outlines OpenQASM 2 and 3 edge cases, unsupported import statements, and unitary decomposition, so first map the supported gates and conditions. Done means circuits can be imported from and exported to the described QASM versions with clear errors for unsupported cases.
索引モデルが issue の本文から書いたものです。
説明
What you want to do
Move circuits between qsengine and Qiskit, other simulators, or hardware. Today there is no way
in or out except rebuilding the circuit gate by gate.
Implementation notes
- Each instruction already keeps its name and angles (
Labelinsrc/circuit.rs, described as
kept "for drawing and later for export"). - OpenQASM 2 limits:
if (c == v)compares the whole register, but qsengine conditions on any subset of bits.
Export conditions only when they cover the whole register; otherwise raise and point to version 3.p/cpareu1/cu1inqelib1.inc.
unitarygates have no name in QASM. Export them asU(θ,φ,λ)from a ZYZ decomposition
(record the global phase asgphasein QASM 3). Controlledunitarygates need a controlled-U
decomposition, or should raise.- Import: parse the subset qsengine supports, and give a clear error naming the first unsupported
statement (customgatedefinitions, loops and so on).
What it could look like
qc = qsengine.QuantumCircuit.from_qasm(open("bell.qasm").read())
print(qc.to_qasm()) # OpenQASM 3 by default
print(qc.to_qasm(version=2))
Contributing
- I would like to open a pull request for this (see CONTRIBUTING.md).
- 主要言語
- Rust
- スター
- 1
- フォーク
- 0
- 平均マージ
- 12分
- マージ済み PR(30日)
- 4
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
kaiwave/qsengine のほかの issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
bug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
kaiwave/qsengine の issue をすべて見る
似ている issue
-
bug order-flow studies ui
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
userFRM/egui-charts#2417 ·
メンテナーはふだん 1 日以内に返信
-
In a plain-text message, Font, Font Size, Font Color and Text Highlight Color stay live対応中かも @ragelfundionctrumnar が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
UCS-Care-Group/mailcraft#862 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
smoltcp-rs/smoltcp#1243 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 4 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信