Commit 145beff
Add unit test for QSimSimulator.get_seed (#1027)
Added a new test case `test_get_seed` to
`qsimcirq_tests/qsimcirq_test.py` to verify:
- The returned seed is within the expected [0, 2^31 - 1) range.
- The simulator is deterministic when initialized with a fixed seed.
- Subsequent calls to `get_seed` return different values.
---------
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>1 parent fd73593 commit 145beff
1 file changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2196 | 2196 | | |
2197 | 2197 | | |
2198 | 2198 | | |
| 2199 | + | |
| 2200 | + | |
| 2201 | + | |
| 2202 | + | |
| 2203 | + | |
| 2204 | + | |
| 2205 | + | |
| 2206 | + | |
| 2207 | + | |
| 2208 | + | |
| 2209 | + | |
| 2210 | + | |
| 2211 | + | |
| 2212 | + | |
| 2213 | + | |
| 2214 | + | |
| 2215 | + | |
| 2216 | + | |
0 commit comments