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

Add DestructiveMeasure operation to standard set #691

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

Add DestructiveMeasure operation to standard set #691

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

Comments

@ss2165
Copy link
Member

ss2165 commented Nov 13, 2024

Measure currently returns a qubit, but in some cases subsequent operations on a measured qubit are not valid, reflect this with a new operation with signature qubit -> bool.

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