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

Lower Tk2Op::Measure and Tk2Op::DestructiveMeasure to HSeries operations #693

Closed
ss2165 opened this issue Nov 13, 2024 · 0 comments · Fixed by #702
Closed

Lower Tk2Op::Measure and Tk2Op::DestructiveMeasure to HSeries operations #693

ss2165 opened this issue Nov 13, 2024 · 0 comments · Fixed by #702
Assignees

Comments

@ss2165
Copy link
Member

ss2165 commented Nov 13, 2024

Following on from #691 and #692
The new projective and and destructive measurements need to be lowered to hseries as:

T2 HSeries
Measure b<-MeasureReset; if b then X;
Discard Discard

Tracked by: https://github.com/CQCL-DEV/hugrverse/issues/77

@ss2165 ss2165 self-assigned this Nov 27, 2024
github-merge-queue bot pushed a commit that referenced this issue Dec 2, 2024
Closes #691 Closes #692 Closes #693

- Add TryQAlloc and MeasureFree to "tket2.quantum"
- Lower new ops to "tket2.hseries"
- Add MeasureReset to "tket2.hseries"

BREAKING CHANGE: hseries qalloc op replaced with fallible TryQalloc

---------

Co-authored-by: Alec Edgington <54802828+cqc-alec@users.noreply.github.com>
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 a pull request may close this issue.

1 participant