Skip to content

Conversation

@qartik
Copy link
Member

@qartik qartik commented Oct 10, 2025

@qartik qartik changed the title feat(qsystem): add RNG.random_advance feat(qsystem): add RNG.random_advance Oct 10, 2025
@qartik qartik changed the title feat(qsystem): add RNG.random_advance feat(qsystem): add RNG.random_advance() Oct 10, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Oct 10, 2025

🐰 Bencher Report

Branchfeat-random_advance
TestbedLinux
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
microseconds (µs)
(Result Δ%)
Upper Boundary
microseconds (µs)
(Limit %)
tests/benchmarks/test_big_array.py::test_big_array_check📈 view plot
🚷 view threshold
661,190.68 µs
(-13.87%)Baseline: 767,660.82 µs
806,043.86 µs
(82.03%)
tests/benchmarks/test_big_array.py::test_big_array_compile📈 view plot
🚷 view threshold
1,535,463.51 µs
(-50.92%)Baseline: 3,128,784.69 µs
3,285,223.92 µs
(46.74%)
tests/benchmarks/test_big_array.py::test_big_array_executable📈 view plot
🚷 view threshold
7,294,042.80 µs
(-19.77%)Baseline: 9,091,601.91 µs
9,546,182.01 µs
(76.41%)
tests/benchmarks/test_ctrl_flow.py::test_many_ctrl_flow_check📈 view plot
🚷 view threshold
47,349.23 µs
(-30.86%)Baseline: 68,486.61 µs
71,910.94 µs
(65.84%)
tests/benchmarks/test_ctrl_flow.py::test_many_ctrl_flow_compile📈 view plot
🚷 view threshold
84,095.27 µs
(-16.48%)Baseline: 100,683.10 µs
105,717.25 µs
(79.55%)
tests/benchmarks/test_ctrl_flow.py::test_many_ctrl_flow_executable📈 view plot
🚷 view threshold
577,971.26 µs
(-26.07%)Baseline: 781,764.01 µs
820,852.21 µs
(70.41%)
tests/benchmarks/test_prelude.py::test_import_guppy📈 view plot
🚷 view threshold
24.14 µs
(-9.34%)Baseline: 26.62 µs
27.95 µs
(86.35%)
🐰 View full continuous benchmarking report in Bencher

@github-actions
Copy link
Contributor

github-actions bot commented Oct 10, 2025

🐰 Bencher Report

Branchfeat-random_advance
TestbedLinux

🚨 2 Alerts

BenchmarkMeasure
Units
ViewBenchmark Result
(Result Δ%)
Upper Boundary
(Limit %)
tests/benchmarks/test_big_array.py::test_big_array_compilehugr_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_compilehugr_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
Benchmarkhugr_bytesBenchmark Result
bytes x 1e3
(Result Δ%)
Upper Boundary
bytes x 1e3
(Limit %)
hugr_nodesBenchmark 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%)
🐰 View full continuous benchmarking report in Bencher

@qartik qartik marked this pull request as ready for review October 10, 2025 22:33
@qartik qartik requested a review from a team as a code owner October 10, 2025 22:33
@qartik qartik requested a review from tatiana-s October 10, 2025 22:33
@codecov-commenter
Copy link

codecov-commenter commented Oct 10, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.44%. Comparing base (f9ef42b) to head (36aed85).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@qartik qartik added the wait to merge This PR to be merged after all dependencies are ready label Oct 10, 2025
Copy link
Member

@ss2165 ss2165 left a 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?

@qartik qartik force-pushed the feat-random_advance branch from e207380 to a0b78f9 Compare October 14, 2025 13:46
@qartik

This comment was marked as resolved.

@qartik
Copy link
Member Author

qartik commented Oct 14, 2025

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).

Done.

@qartik
Copy link
Member Author

qartik commented Oct 14, 2025

Probably best to make a new selene-hugr-qis-compiler release instead of trying to add LLVM deps to the CI.

@qartik qartik self-assigned this Oct 14, 2025
@qartik
Copy link
Member Author

qartik commented Oct 17, 2025

@ss2165 do we need any more work on this PR? Or is it ready for approval?

Copy link
Member

@ss2165 ss2165 left a 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

@qartik
Copy link
Member Author

qartik commented Oct 21, 2025

Now, we wait until the following is merged

@qartik qartik removed the wait to merge This PR to be merged after all dependencies are ready label Oct 21, 2025
"selene-hugr-qis-compiler~=0.2.8",
"numpy~=2.0",
"selene-hugr-qis-compiler~=0.2.8",
"selene-sim~=0.2.3",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just sorting

@qartik qartik enabled auto-merge October 21, 2025 15:22
@qartik qartik added this pull request to the merge queue Oct 21, 2025
Merged via the queue into main with commit f6271a2 Oct 21, 2025
8 of 9 checks passed
@qartik qartik deleted the feat-random_advance branch October 21, 2025 15:26
github-merge-queue bot pushed a commit that referenced this pull request Oct 30, 2025
🤖 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants