Make seeded runs reproducible across releases and say how they depend on the backend

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python, rust

調査の方向性

Start by locating the run implementation and its StdRng usage, then check the README, run docstrings, and the FAQ entry named in the issue. Read how backend="auto" selects its probability precision and inspect the existing seeded-run tests. Done means the generator is explicitly versioned, a fixed-seed test pins exact counts, and all three documentation locations describe reproducibility by engine version and backend.

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

説明

enhancement
What you want to do

run(seed=42) is documented as giving "repeatable counts", but:

  • StdRng does not guarantee the same random stream across rand versions, so counts may change
    after a dependency update;
  • with backend="auto", a machine with a GPU and one without sample from different probabilities
    (f32 vs f64), so the same seed can give different counts.
Implementation notes
  • Replace StdRng with an explicitly versioned generator such as rand_chacha::ChaCha8Rng or
    ChaCha20Rng, and add a test that pins the exact counts for a fixed seed, so a change is caught.
  • Update the README, run docstrings and the FAQ entry "Will the same seed give the same counts?"
What it could look like
No API change. The docs say: "the same seed gives the same counts with the same qsengine
version and backend".
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 を短くまとめたダイジェスト。