Skip to content
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

chore: update hugr dependency #192

Merged
merged 1 commit into from
Oct 20, 2023
Merged

chore: update hugr dependency #192

merged 1 commit into from
Oct 20, 2023

Conversation

aborgna-q
Copy link
Collaborator

No description provided.

@aborgna-q aborgna-q requested a review from acl-cqc October 19, 2023 10:02
@aborgna-q aborgna-q requested review from cqc-alec and removed request for acl-cqc October 20, 2023 08:17
@aborgna-q aborgna-q added this pull request to the merge queue Oct 20, 2023
Merged via the queue into main with commit 603f8a3 Oct 20, 2023
7 checks passed
@aborgna-q aborgna-q deleted the chore/update-hugr branch October 20, 2023 08:34
github-merge-queue bot pushed a commit that referenced this pull request Oct 20, 2023
Computes the cost of the circuit before its hash, so we can now drop it
immediately if we know it won't fit into the priority queue.

My test of barenco_tof_10 (10s timeout) went from 30ms average:


![image](https://github.com/CQCL/tket2/assets/121866228/8a6e5f3d-10ea-4504-8b3f-4d5afea0f6cc)

<details>
  <summary>Detailed timings</summary>
  
| | # matches | matching | rewriting | hashing | costs | enqueing
| --- | --- | --- | --- | --- | --- | --- |
count | 60.000000 | 60.000000 | 60.000000 | 60.000000 | 60.0 | 60.000000
mean |116.916667| 124.800000 | 18.883333 |29.850000 | 0.0 | 4.050000
std | 44.293433 | 25.392378 | 11.225111 | 9.719498 | 0.0 | 1.254483
min | 85.000000 | 102.000000 |11.000000 | 21.000000 |0.0 | 2.000000
25% | 99.000000 |114.000000 |15.000000 | 25.000000 | 0.0 | 3.000000
50% | 109.500000 |118.000000 | 17.000000| 28.000000 | 0.0 | 4.000000
75% | 118.500000 |127.000000 | 19.000000 | 30.000000 | 0.0 | 4.000000
max | 389.000000 | 280.000000| 95.000000 | 88.000000 | 0.0 | 8.000000
  
  All times in ms.
</details>

To 5ms average:


![image](https://github.com/CQCL/tket2/assets/121866228/af99c4a4-02c0-47f4-9e18-42e52e742b00)

<details>
  <summary>Detailed timings</summary>
  
| | # matches | matching | rewriting | hashing | costs | enqueing
| --- | --- | --- | --- | --- | --- | --- |
count | 70.000000 | 70.000000| 70.000000 |70.000000 | 70.0 | 70.000000
mean |112.342857 | 124.371429 | 18.642857 | 5.014286 | 0.0 | 0.685714
std | 42.014796 | 13.990858 | 11.317597| 11.005259 | 0.0 | 1.620009
min | 77.000000 | 108.000000 | 12.000000 | 0.000000 | 0.0 | 0.000000
25% | 93.250000| 116.250000 | 15.000000 |0.000000 | 0.0| 0.000000
50% | 109.000000 | 119.000000 | 16.000000 | 0.000000 | 0.0| 0.000000
75% | 116.000000| 126.750000 | 19.000000 | 2.000000 | 0.0| 0.000000
max | 389.000000 |180.000000 | 101.000000 |60.000000 | 0.0 | 8.000000
  
  All times in ms.
</details>

It improved running times by 15% in this case.

~Blocked by #192. Ignore the first commit in the meantime.~
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.

2 participants