[Performance] Resource counting for a bloq.adjoint() needs a bloq decomposition even when my_static_cost or build_call_graph is implemented for the bloq
メンテナーはふだん 3 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- python
調査の方向性
Read the Bloq APIs for build_call_graph, my_static_cost, and adjoint(), then trace how bloq.adjoint().call_graph() and qubit counting currently obtain their results. Define and check the intended behavior for adjoints, including the measurement-based uncomputing caveat; the issue also notes controlled Bloqs as a related case. Done means the supported behavior is decided and implemented with coverage for call graphs and static cost.
索引モデルが issue の本文から書いたものです。
説明
Using the call_graph example (but it applies similarly to qubit count/my_static_cost):
If one defines a Bloq with a build_call_graph, then calls bloq.adjoint().call_graph(), the current behaviour in Qualtran is to call for the bloq.adjoint() decomposition, which can, especially when working with big circuit, lead to performance issue.
However with most Bloq, the call_graph of bloq.ajdoint() is simply the "adjoint of the original bloq.call_graph()" ie, the original bloq.call_graph() with every element replace by its adjoint.
Do you think it is possible to get bloq.adjoint() call_graph to be the adjoint of the call_graph by default or via an optional argument ?
This could obviously raise issue in situation where the adjoint is very different (for example when doing measurement based uncomputing), which is why it should probably remain optional.
The same problem arise when using my_static_cost, for example when estimating qubit count, (and in this case, I believe the qubit count of bloq.adjoint() should always be the same as the bloq).
There is a similar issue when using bloq.controlled(), however this one is probably more complex.
Currently the solution I am using is to create a wrapper bloq for the adjoint version, but it does involve a lot of verbose which would be nice to avoid.
Let me know what you think.
- 主要言語
- Python
- スター
- 397
- フォーク
- 127
- 平均マージ
- 2日 19時間
- マージ済み PR(30日)
- 4
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
quantumlib/Qualtran のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
quantumlib/Qualtran#2007 ·
メンテナーはふだん 3 日以内に返信
-
Addition call_graph inconsistent with decomposition for registers with unequal bitsizes再び着手できるかも @rupasri118 が 56 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンkind/bug-report
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
quantumlib/Qualtran#1818 · コメント 2 件 ·
メンテナーはふだん 3 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 75/100
quantumlib/Qualtran#2008 ·
メンテナーはふだん 3 日以内に返信
-
kickmix: `Circuit.reaction_depth()` materialises every op (≈ 135–170 B/op transient), limiting verifiable circuit size対応中かも @manwithacat が 27 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
quantumlib/Qualtran#1993 ·
メンテナーはふだん 3 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
quantumlib/Qualtran#1991 ·
メンテナーはふだん 3 日以内に返信
quantumlib/Qualtran の issue をすべて見る
似ている issue
-
bug game: 0100FF500E34A000 game: 0400FF500E34A001 mac packing
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 2 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
jxxghp/MoviePilot#7576 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
jbaruch/software-factory#266 ·
メンテナーはふだん 1 日以内に返信
-
cron: raise a distinct error when next_fire finds no match in its search bound (from #813 item 5)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信