Make seeded runs reproducible across releases and say how they depend on the backend
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 55/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Domain
- backend, documentation, testing
Research direction
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.
Written by the indexing model from the issue text.
Description
What you want to do
run(seed=42) is documented as giving "repeatable counts", but:
StdRngdoes not guarantee the same random stream acrossrandversions, 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
StdRngwith an explicitly versioned generator such asrand_chacha::ChaCha8Rngor
ChaCha20Rng, and add a test that pins the exact counts for a fixed seed, so a change is caught. - Update the README,
rundocstrings 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).
- Dominant language
- Rust
- Stars
- 1
- Forks
- 0
- Avg merge
- 12m
- Merged PRs (30d)
- 4
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from kaiwave/qsengine
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 55/100
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 55/100
All issues in kaiwave/qsengine
Similar issues
-
bug order-flow studies ui
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
userFRM/egui-charts#2417 ·
Maintainers usually reply within 1 day
-
In a plain-text message, Font, Font Size, Font Color and Text Highlight Color stay livePossibly taken @ragelfundionctrumnar claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
UCS-Care-Group/mailcraft#862 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
smoltcp-rs/smoltcp#1243 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 4 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day