docs: add notebook on optimization of Guppy programs#1287
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1287 +/- ##
==========================================
- Coverage 79.73% 79.61% -0.13%
==========================================
Files 160 160
Lines 20623 20589 -34
Branches 19657 19623 -34
==========================================
- Hits 16443 16391 -52
- Misses 3200 3220 +20
+ Partials 980 978 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
d8d2ebd to
cc448b1
Compare
CalMacCQ
commented
Dec 8, 2025
| requires-python = ">=3.10" | ||
| resolution-markers = [ | ||
| "python_full_version >= '3.11'", | ||
| "python_full_version >= '3.14'", |
Contributor
Author
There was a problem hiding this comment.
I think this should not appear here. Maybe I messed something up in my local env
aborgna-q
approved these changes
Dec 10, 2025
Comment on lines
+31
to
+32
| " \"tket==0.13\" \\\n", | ||
| " \"numpy>=2\"\n", |
Collaborator
There was a problem hiding this comment.
We're making a patch release
Suggested change
| " \"tket==0.13\" \\\n", | |
| " \"numpy>=2\"\n", | |
| " \"tket==0.12.13\" \\\n" |
Also, I don't think we need numpy here?
github-merge-queue bot
pushed a commit
that referenced
this pull request
Dec 10, 2025
🤖 I have created a release *beep* *boop* --- ## [0.12.13](tket-py-v0.12.12...tket-py-v0.12.13) (2025-12-10) ### Features * Allow running arbitrary serializable pytket passes on hugrs ([#1266](#1266)) ([24875e0](24875e0)) * do constant folding by default in NormalizeGuppy ([#1309](#1309)) ([3838c49](3838c49)) * implement `ComposablePass` for normalize Guppy pass ([#1286](#1286)) ([d72d84d](d72d84d)) * implement `ComposeablePass` interface for any serializable pytket pass. ([#1269](#1269)) ([71cb1f2](71cb1f2)) ### Bug Fixes * update incomplete API docs for passes module ([#1308](#1308)) ([0276ba2](0276ba2)) * update incorrect version info in notebook ([#1312](#1312)) ([af160ed](af160ed)) * Use qsystem extensions on Tk2Circuit.from_bytes/str ([#1296](#1296)) ([df9f52a](df9f52a)) ### Documentation * add notebook on optimization of Guppy programs ([#1287](#1287)) ([e82f959](e82f959)) --- 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: Agustín Borgna <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #1284
Found a couple bugs whilst making this. Agustin has now fixed most of them.
The examples here are super trivial at the moment but I demonstrate
NormalizeGuppy,RemoveRedundanciesandSquashRzPhasedX.The example using
SquashRzPhasedXisn't quite working yet. It should simplify to a single Rz gate but this isn't working yet due to an issue with order edges. Should be fixed once we have the transformation in Quantinuum/hugr#2739 is part ofNormalizeGuppy.Note I moved the
examplesdirectory to be part of the docs directory so that I could include the example in the docs site more easily.