Measure the CPU/GPU crossover on each machine

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

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

評価

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

調査の方向性

Start with the shortcut: logic in src/lib.rs and trace how backend="auto" chooses CPU or GPU. Read the environment variable and setter paths first; the issue suggests adding a threshold setting before calibration. Done means the threshold can be set by environment variable or setter, and CPU is chosen on ties; calibration is a possible follow-up.

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

説明

enhancement
What you want to do

backend="auto" switches to the GPU at 14 qubits (and 20 for circuits that measure part-way), values
measured on one Ryzen 5 5500 + RX 6600 (src/lib.rs, marked shortcut:). On other machines the
best crossover may be a few qubits away, so "auto" picks the slower backend in that range.

Implementation notes

Start with the environment variable and setter, which are the cheapest. Calibration can follow.
Keep the CPU on a tie, for its 64-bit precision.

What it could look like
qsengine.calibrate()                    # times both backends, saves the crossover
qsengine.set_gpu_threshold(16)          # or set it by hand
# or the environment variable QSENGINE_GPU_MIN_QUBITS=16
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 を短くまとめたダイジェスト。