-
Notifications
You must be signed in to change notification settings - Fork 17
feat(qsystem): add RNG.random_advance()
#1295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Part of quantinuum-dev/hugrverse#175 depends on: - CQCL/tket2#1170
RNG.random_advance
RNG.random_advanceRNG.random_advance()
|
| Branch | feat-random_advance |
| Testbed | Linux |
🚨 2 Alerts
| Benchmark | Measure Units | View | Benchmark Result (Result Δ%) | Upper Boundary (Limit %) |
|---|---|---|---|---|
| tests/benchmarks/test_big_array.py::test_big_array_compile | hugr_nodes nodes x 1e3 | 📈 plot 🚷 threshold 🚨 alert (🔔) | 6.59 x 1e3(+32.64%)Baseline: 4.97 x 1e3 | 5.02 x 1e3 (131.33%) |
| tests/benchmarks/test_big_array.py::test_big_array_compile | hugr_bytes bytes x 1e3 | 📈 plot 🚷 threshold 🚨 alert (🔔) | 135.90 x 1e3(+4.99%)Baseline: 129.44 x 1e3 | 130.74 x 1e3 (103.95%) |
Click to view all benchmark results
| Benchmark | hugr_bytes | Benchmark Result bytes x 1e3 (Result Δ%) | Upper Boundary bytes x 1e3 (Limit %) | hugr_nodes | Benchmark Result nodes (Result Δ%) | Upper Boundary nodes (Limit %) |
|---|---|---|---|---|---|---|
| tests/benchmarks/test_big_array.py::test_big_array_compile | 📈 view plot 🚷 view threshold 🚨 view alert (🔔) | 135.90 x 1e3(+4.99%)Baseline: 129.44 x 1e3 | 130.74 x 1e3 (103.95%) | 📈 view plot 🚷 view threshold 🚨 view alert (🔔) | 6,590.00(+32.64%)Baseline: 4,968.39 | 5,018.07 (131.33%) |
| tests/benchmarks/test_ctrl_flow.py::test_many_ctrl_flow_compile | 📈 view plot 🚷 view threshold | 19.77 x 1e3(-9.60%)Baseline: 21.86 x 1e3 | 22.08 x 1e3 (89.51%) | 📈 view plot 🚷 view threshold | 606.00(-11.94%)Baseline: 688.17 | 695.05 (87.19%) |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1295 +/- ##
=======================================
Coverage 93.44% 93.44%
=======================================
Files 123 123
Lines 11432 11435 +3
=======================================
+ Hits 10683 10686 +3
Misses 749 749 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. It would be nice if the rng test could be an execution test as well as validation (i.e. to check the number returned after stepping back is the same as the last one). I think this just involves pointing the hugr-qis compiler dependency also at the branch?
e207380 to
a0b78f9
Compare
This comment was marked as resolved.
This comment was marked as resolved.
Done. |
|
Probably best to make a new selene-hugr-qis-compiler release instead of trying to add LLVM deps to the CI. |
|
@ss2165 do we need any more work on this PR? Or is it ready for approval? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 can be merged when the tket2 repo releases are made
|
Now, we wait until the following is merged |
| "selene-hugr-qis-compiler~=0.2.8", | ||
| "numpy~=2.0", | ||
| "selene-hugr-qis-compiler~=0.2.8", | ||
| "selene-sim~=0.2.3", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just sorting
🤖 I have created a release *beep* *boop* --- ## [0.21.6](guppylang-v0.21.5...guppylang-v0.21.6) (2025-10-29) ### Features * implement str() for PartialVector ([d85efc9](d85efc9)), closes [#1225](#1225) * **qsystem:** add `RNG.random_advance()` ([#1295](#1295)) ([f6271a2](f6271a2)) * Use `borrow_array` instead of `value_array` for array lowering ([#1166](#1166)) ([f9ef42b](f9ef42b)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: Seyon Sivarajah <[email protected]>
Part of https://github.com/quantinuum-dev/hugrverse/issues/175
depends on:
random_advanceplatform call tket2#1170borrow_arrayinstead ofvalue_arrayfor array lowering #1166