Fold long circuit drawings

オープン
#19 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
rust

調査の方向性

Start by locating _drawer.py and reading the shortcut: note mentioned in the issue, then trace how print(qc) and qc.draw render circuit operations. The issue proposes terminal-width folding and packing non-overlapping gates into columns; done means long drawings wrap and gates on separate qubits share columns, with fold=None disabling folding.

索引モデルが issue の本文から書いたものです。

説明

enhancement
What you want to do

print(qc) draws one column per operation and never wraps, so a circuit with a hundred gates is
one line hundreds of characters wide. _drawer.py notes this as a shortcut:.

Implementation notes

Also pack gates on qubits that don't overlap into the same column, which shortens most drawings a lot.

What it could look like
print(qc)                 # folds at the terminal width
qc.draw(fold=80)          # explicit width; fold=None for no folding
Contributing
  • I would like to open a pull request for this (see CONTRIBUTING.md).
主要言語
Rust
スター
1
フォーク
0
平均マージ
12分
マージ済み PR(30日)
4

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

kaiwave/qsengine のほかの issue

kaiwave/qsengine の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。